[python-win32] Problem running python cgi script
Jeff Lowery
jlowery at m2is.com
Thu Dec 9 02:27:47 CET 2004
Turned out to the file system's "Sharing and Security" settings. Bumped up
permissions a couple of notches on the wiki directory and it worked. I'll
have to experiment with knocking them back down a bit for better security.
The MoinMoin install instructions need some tweaking, perhaps.
----- Original Message -----
From: "Mark Hammond" <mhammond at skippinet.com.au>
To: "'Jeff Lowery'" <jlowery at m2is.com>; <python-win32 at python.org>
Sent: Wednesday, December 08, 2004 4:45 PM
Subject: RE: [python-win32] Problem running python cgi script
>> 4) configured the virtual directory in IIS above to run
>> "c:\python23\python.exe" -u %s %s on .cgi extensions
>
> If the path has a space in it, try adding quotes around the "%s". If the
> virtual directory is on a network share, move it to a local dir.
>
>> Added some logging statements to a log file at the top of
>> moin.cgi, just to
>> see if it was executing at all (runs fine from the command
>> line, btw).
>> Apparently not: getting a "CGI Error: The specified CGI application
>> misbehaved by not returning a complete set of HTTP headers",
>
> That sounds to me like Python is being executed, but throwing some kind of
> exception. It may be a very early error, such as the named script file
> not
> being found (hence my suggestions above), or it could be a very early
> exception in the script.
>
>> and no log is
>> generated. Funny thing is that if I remove the "-u %s %s"
>> from the cgi
>> extension setup (4), I get a timeout error instead.
>
> That sounds like Python is correctly being executed and sitting at an
> interactive prompt. It never terminates, so IIS times it out.
>
>> Looks
>> like IIS knows
>> about the CGI mapping, but is not running the python interpreter.
>
> Sounds to me more like Python *is* being executed, but failing.
>
> Mark
>
>
More information about the Python-win32
mailing list