python cgi permision error

avenpace at gmail.com avenpace at gmail.com
Fri Mar 17 16:59:47 EST 2006


Hi

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.
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 :'(




More information about the Python-list mailing list