title: Python CGIHTTPServer access denied on OS X
body: <p>I get this error while trying to trigger a Python script inside CGI from the browser;</p>
  
  <pre><code>Traceback (most recent call last):
    File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/CGIHTTPServer.py", line 251, in run_cgi
      os.execve(scriptfile, args, env)
  OSError: [Errno 13] Permission denied
  1.0.0.127.in-addr.arpa - - [20/Apr/2013 14:51:16] CGI script exit status 0x7f00
  </code></pre>
  
  <p>I'm not running the main process as root (<code>$ python-32 main.py</code>).</p>
  
  <p><a href="https://stackoverflow.com/questions/11021369/python-cgihttpserver-crashes-with-oserror-errno-13-permission-denied">This topic</a> did not seem to work for me.</p>
  
  <p>Making the script executable also didn't work (<code>$ chmod +x index.py</code>, <code>-rwxr-xr-x</code>).</p>