Click to See Complete Forum and Search --> : Getting Started with Apache 1.3: CGI scripts won't work


KevinReichard
07-17-2002, 12:40 PM
These talkbacks are in response to the article, Getting Started with Apache 1.3 (http://www.serverwatch.com/stypes/servers/article.php/1130981).

Simon Muller writes:
I just downloaded the Apache server, installed and configured it. Everything works except of any cgi-scripts. Every time I call a cgi-script I get this msg:

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request."

And this is in the error.log:

"(2)No such file or directory: couldn't spawn child process: e:/servers/apache-web/cgi-bin/test.cgi"

But the file and the directory exist! Do I have to configure the apache-server for using cgi-scripts? How?

Gene Marksbury responds:
You didn't mention what OS you are using, but make sure the directories have execute privledges. In Unix or Linux use the chmod, but if your on NT your administrator must make the changes.

sait responds:
i also had the same prob on win32 but i double checked the scripts path to the perl interpreter which in most cases on windows9x is #!perl/bin/perl i don't know if this will help but that is how i fixed it

Oliver responds:
Make sure that you've set the path for the interpreter!
#!/usr/bin/perl

or (for win32)

#!c:\program files\active perl\perl.exe

or something like this...

Jonathan Aibel responds:
There isn't such thing on NT as "execute privileges" for a directory. I'm on NT, and I get the same error as well and I can't figure out why.