PDA

View Full Version : cgi script won't run in cgi-bin, but will run in another folder. What would cause?



Robert-
07-08-2007, 08:34 PM
Hi,

You guys seem very knowledgeable. Here is a real 'head scratcher' for me.

I have a script that would not run in the cgi-bin. I created a new folder and it ran in there just fine.

So, I found a "hello world" cgi script and tried it in the cgi-bin and in the new folder to make sure it wasn't something in that script.


All cgi scripts run in the cgi-bin return:

The requested URL /cgi-bin/first.pl was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I've tried everything I could find on this subject / error and have added all the examples suggested in the .htaccess file.

I know the work around is to run the script from another folder, but why won't the cgi-bin location work as it is supposed to?

Thanks in advance.