Python and Apache

David Fuess fuess1 at home.com
Mon Apr 16 15:38:19 EDT 2001


Yes, that's what I thought also, but I am able to execute

/usr/local/bin/python /home/httpd/cgi-bin/hello

and it works. Also I've checked and everything is where it's supposed
to be. "which python" returns "/usr/local/bin/python".  Interesting
though that when I attempt ./hello when CWD=/home/httpd/cgi-bin I get
the file not found error also(?). I'm wondering if the /cgi-bin/ ->
/home/httpd/cgi-bin is working correctly. The error message says that
something was not found but does no indicate what it was looking for!

Dave

On Mon, 16 Apr 2001 12:22:17 -0700, Erik Max Francis <max at alcyone.com>
wrote:

>David Fuess wrote:
>
>> I'm having a heck of a time convincing my Apache web server
>> that it's ok to run Python CGI scripts. The test script
>> "hello" does indeed exist in the proper directory and runs fine
>> under Python from the command line. But when I try to run it
>> from a browser as in http://<server>/cgi-bin/hello it fails.
>> Any ideas?
>
>The first error suggests that the file isn't where you think it is, or
>that the python interpreter isn't where you think it is.




More information about the Python-list mailing list