Python at my ISP

Erik Max Francis max at alcyone.com
Mon Feb 3 19:37:48 EST 2003


Peter Hansen wrote:

> Once you've solved that, the extension is mostly irrelevant.

Not true; the Web server can easily be configured to only execute CGI
scripts that end in .cgi, not .py.

> If
> the "x" bit is set, just typing the name of the script will invoke it.

Two problems here:  For it to run as CGI, it needs to be executable _by
the Web server_ (which usually runs as user nobody), so it needs either
to be world-executable or group-executable and set to the same group as
httpd.  Second, typing the name of the script won't invoke it if you're
in the same directory and type the name of the script if . is not in
your PATH, which it almost never should be.

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ In wildness is the preservation of the world.
\__/ Henry David Thoreau
    Alcyone Systems / http://www.alcyone.com/
 Alcyone Systems, San Jose, California.




More information about the Python-list mailing list