500 error on scripts
Posted on 2003-02-26
I have Apache 1.3.26 on RHL 7.3. Right now I am trying to get Apache to work with CGI. Currently I have:
#ScriptAlias /cgi-bin/ "/home/httpd/domain/cgi-bin"
AddHandler cgi-script .cgi .pl
Order allow, deny
Allow from All
If I go to www.domain.com/cgi-bin/script.pl I get a 500 error.
I originally tried to go to just www.domain.com/cgi-bin but I was getting a Forbidden Error. To get to be able to go to www.domain.com/cgi-bin I had to REM out ScriptAlias. I have chmod 755 my cgi-bin folder and all of its files within it. To get the scripts to run, will I need ScriptAlias not to be REMed out?
If I take out the AddHandler cgi-script .cgi .pl command it works (which I don’t know why it wouldn’t, it would treat it like a regular file.) But as expected, when I went to try the script, I got a 405 Method Not Allowed error.