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.