title: Apache PHP cannot write file at any permission level
body: <p>I really need an Apache server to run PHP to be able to write files <em>in one directory</em>.  However, after hours of streaming commands over SSH into the server - nothing has shown <em>any</em> sign of helping <em>at all</em>.</p>
  
  <p>I have copied over the code from the Apache file and run it under root in order to verify that the code works; there is no question of this.  The problem, however, is that an executing PHP file cannot, under any under <em>any</em> circumstances, write to a file.</p>
  
  <p>I've looked at <a href="https://stackoverflow.com/questions/20157150/i-cannot-grant-apache-permissions-to-write-to-a-file-what-am-i-doing-wrong">this</a>, I've looked at <a href="https://stackoverflow.com/questions/5165183/apache-permissions-php-file-create-mkdir-fail">this</a>, nothing whatsoever is even vaguely useful.  </p>
  
  <p>The script (<code>whoami</code>) runs as Apache.  Apache owns the file that it is trying to write to.  Apahce owns the folder it is trying to write to. (Think: <code>apache:apache</code>).  Permissions are <code>750</code>.  Only <code>root</code> can write to the file.  I even tried <code>root:apache</code>.  No dice.</p>
  
  <p>This project is dead in the water until this starts to work I'll gladly listen to literally anything literally anyone says at this point.</p>
  
  <p>Thanks for any help!</p>