title: Python can't open file
body: <p>I have a PHP script that is supposed to execute a python script as user "apache" but is returning the error:</p>
  
  <p><code>/transform/anaconda/bin/python: can't open file '/transform/python_code/edit_doc_with_new_demo_info.py': [Errno 13] Permission denied</code></p>
  
  <p>Permissions for <code>edit_doc_with_new_demo_info.py</code> are <code>---xrwx--x. 1 apache PosixUsers 4077 Sep 18 12:14 edit_doc_with_new_demo_info.py</code>. The line that is calling this python script is:</p>
  
  <p><code>shell_exec('/transform/anaconda/bin/python /transform/python_code/edit_doc_with_new_demo_info.py ' . escapeshellarg($json_python_data) .' &gt;&gt; /transform/edit_subject_python.log 2&gt;&amp;1')</code></p>
  
  <p>If <code>apache</code> is the owner of the python file and the owner has execute permission how can it be unable to open the file?</p>