Hi, I am running Red Hat Enterprise 5 server with Apache 2.2.3. I have set up a website www.abcd.com
that also uses a cgi-bin directory to execute all of my .cgi and .pl scripts. I have a script called checkpath.cgi that basically when run shows you your hosting information etc...
When I run checkpath.cgi from the command line as in
server# perl checkpath.cgi it works perfectly fine.
when I run the same script by going to the Internet Explorer and typing in
I get Inernal Server Error
I verified that Apache can interpret .cgi and .pl scripts by putting a test.pl script in the cgi-bin directory and executing it. The test.pl script contains this code:
print "Content-type: text/plain\n\n";
print "It's working.\n";
I have also renamed the test.pl to test.cgi script and it works fine too.
Here is the configuration of my sites.conf which is loaded by httpd.conf file that contains the www.abcd.com
DirectoryIndex index.php index.html index.htm index.shtml
AddHandler cgi-script cgi pl
Allow from all
Does anyone know why the checkpath.cgi script is not working? Let me know if you need to see any other configuration files.