Larry,

If the interpreter is not found it should report an Internal Server
Error 500, not 404.  404 is the file not found by webserver.


Ben,

Permissions on ~/public_html/cgi-bin should be something similar to
7x1  or ......--x  World only needs execute permissions, but doesn't
need read.

Permissions on the file should be about the same.  Execute, but don't
need read. 771 or 701

~/public_html should generally be 7x5 or ......r-x  This allows people
to read your html files, as well as enter (execute) the directory.

However if the permissions were set incorrectly you should get a 403
error - forbidden.

If the CGI module wasn't loaded in apache, but you got the filename
right, you would probably see the source of the cgi script, or your
browser would try to download it.

It is likely that you have your url wrong.

Cory



On Tue, Jul 09, 2002 at 10:33:00PM -0700, Larry Price wrote:
> the file that is not found is the interpreter
> the file specified in the 
> #!/usr/local/bin/perl
> line 
> think of it as the
> #!/path/to/interpreter
> 
> Begin to understand the power of unix
> the freedom it brings you
> and the choices it forces...
> 
> 
> On Tue, 9 Jul 2002, Benjamin Huot wrote:
> 
> > Why won't my cgi script work? - I get an error 404 - it says the file is not there 
>but I know it is there.
> > 
> > Landscapes of the Mind
> > [EMAIL PROTECTED]
> > 
> 
> -- 
> http://www.efn.org/~laprice        ( Community, Cooperation, Consensus
> http://www.opn.org                 ( Openness to serendipity, make mistakes
> http://www.efn.org/~laprice/poems  ( but learn from them.(carpe fructus ludi)

Reply via email to