python cgi permision error
david.bear at asu.edu
Sat Mar 18 00:02:20 CET 2006
avenpace at gmail.com wrote:
> I have python cgi script, but when I call it I got server internal
> error. The log in my apache is
> [Sat Mar 18 04:17:14 2006] [error] [client 127.0.0.1] (13)Permission
> denied: exec of '/srv/www/cgi-bin/helo.cgi' failed
> [Sat Mar 18 04:17:14 2006] [error] [client 127.0.0.1] Premature end of
> script headers: helo.cgi
> [Sat Mar 18 04:20:09 2006] [notice] caught SIGTERM, shutting down
> I have set the correct permision for the script(755) and the script is
> also own by apache uid.
assuming you are running this python script the standard cgi way and not
through modpython or fastcgi.
try debugging this way.
execute the python script from command line as the web user.
make sure your python script prints the standard
> I think somehow apache cannot run python to process my python cgi
> script, but I don't know what I should do anymore.
> When I run it via shell, the cgi work fine
> I also can't make my mod_python .py write anything inside my /var/www
> dir although permision already true, even if I gave /var/www permision
> recursively to 777(I know this not good idea, just for testing), still
> have permision denied stuff.
> Btw I'm using SuSE 10, Apache/2.0.54, and python 2.4
> Sighhh, there's a lot of weird thing with my apache and I can't
> understand why :'(
-- let me buy your intellectual property, I want to own your thoughts --
More information about the Python-list