CGI vs mod_python

John Nagle nagle at animats.com
Tue Nov 10 18:12:35 EST 2009


ssteinerX at gmail.com wrote:
> 
> On Nov 9, 2009, at 10:18 AM, Victor Subervi wrote:
> 
>> Yes, obviously. But if CGI is enabled, it should work anyway, should 
>> it not?
> 
> Depends on what "CGI is enabled" means.
> 
> Usually, web servers are not set to just handle cgi scripts from 
> anywhere, but only from specific file system locations.  Otherwise, an 
> an anonymous upload could be executed as CGI and wreak havoc.

     If it won't work as a CGI program, which is relatively straightforward,
it probably won't work at all.

     First, write some trivial CGI program in Python and make sure the
environment works - Python loads, the Python program loads, and you
can get a response back.

     Bear in mind that most hosting services don't make much of an attempt
to support Python. Expect important libraries to be missing or obsolete.

					John Nagle



More information about the Python-list mailing list