Apache Web-Serving with Mac OS X, Part 4
Subject:   500 error still with CGI script
Date:   2002-03-15 16:34:58
From:   bdoltens
Can someone please help me?
I can successfully run the test-cgi from my browser, but a downloaded perldiver.cgi will not run.
I desired to use /Users/bdoltens/Sites/cgi-bin as a folder for cgi scripts, so I made a
<Directory "/Users/bdoltens/Sites/cgi-bin">
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
just after the <Directory /> bit in httpd.conf. Addhandler cgi-script .cgi is uncommented. ScriptAlias is commented out.
by typing perl /Users/bdoltens/Sites/cgi-bin/perldiver.cgi in the terminal, the program runs and outputs good html. Still, the browser reports a 500 when I attempt to access the script.
i have chmoded the file as 755, or 775, and, not really understanding the specifics of chmod, i tried also "a+w," but nothing really works.
the error_log tells me two things,
(2)No such file or directory: exec of /Users/bdoltens/Sites/cgi-bin/perldiver.cgi failed
and then, premature script headers.
Thanks for listening. Great articles, even if I don't fix this it was fun using the terminal for something.

1 to 1 of 1
  1. Kevin Hemenway photo 500 error still with CGI script
    2002-03-19 14:11:37  Kevin Hemenway | O'Reilly AuthorO'Reilly Blogger [View]

1 to 1 of 1