mod_python OS functions help?

Gerhard Häring gerhard at bigfoot.de
Tue May 28 19:27:30 EDT 2002


tariss wrote in comp.lang.python:
> I've just recently set up mod_python/apache on my Win2K box. I have a
> very simple script which is used to execute a "make" which then builds
> a VC++ project. The script works when executed via the command line
> but not when initiated via web page and run as a mod_python script.
> When run via mod_python there are no errors generated and all other
> non-os related functions seem to work as expected, but the os related
> ones such as the exec* functions seem to be ignored.
> 
> I'm guessing there is some sort of "sandbox" security issue going on
> here that may be an apache issue. Does anyone have any ideas what to
> do about this?

I'm only guessing, but have you started Apache as a service?

AFAIK stdin/stdout doesn't work for services. Maybe try running Apache
as an application and see if it makes a difference.

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    OpenPGP public key id AD24C930
public key fingerprint: 3FCC 8700 3012 0A9E B0C9  3667 814B 9CAA AD24 C930
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))



More information about the Python-list mailing list