Python server does not excecute PHP script: permission denied
Posted
by krisvandenbergh
on Server Fault
See other posts from Server Fault
or by krisvandenbergh
Published on 2010-03-30T19:04:09Z
Indexed on
2010/03/30
19:13 UTC
Read the original article
Hit count: 444
I am trying to execute a PHP file through a Python server. However, I get the following error:
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/CGIHTTPServer.py", line 255, in run_cgi os.execve(scriptfile, args, os.environ) OSError: [Errno 13] Permission denied
The python server is running though.
What have I done so far?
- Chmod'ed recursively all directories to (chmod -R a+x) (I know this is not secure but its just for testing purposes) for both Python installation directories and my scripts.
- Tried to find out if python server is running as root through ps aux grep py
I am out of ideas. What could be going wrong else? Thanks for the feedback.
© Server Fault or respective owner