Angharad has asked for the wisdom of the Perl Monks concerning the following question:

Hi there
I know that this isn't strictly a perl question but this problem is driving me nuts.
I'm trying to run a simple cgi script ... it just takes information from a form and prints it out, but when I try it out I get the following error

"The requested URL /public_html/cgi-bin/test2.cgi 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 don't understand this at all as the script is clearly there and as far as I am aware, the permissions are fine. I'm definately calling the right script on the form.
Any suggestions much appreciated.

Replies are listed 'Best First'.
Re: why can't I find my cgi script?
by dorward (Curate) on Jan 26, 2006 at 11:24 UTC

    Generally speaking, the "public_html" directory is mapped to the root of your webserver (or to ~/username/). So you should be requesting /cgi-bin/test2.cgi, not /public_html/cgi-bin/test2.cgi.

    Read the error log. It will probably tell you where on the harddisk it is looking for /public_html/cgi-bin/test2.cgi.

      Thanks I'll try that.