title: How to give apache permission to write to home directory?
body: <p>My server is in /var/www/html I have a php script in /var/www/html/fileio_test/io_test.php </p>
  
  <pre><code>&lt;?php
  
  $logging = &lt;&lt;&lt; LOG
  This is a test
  LOG;
  
  $testfile = fopen('/home/djameson/test.txt', 'a'); 
  fwrite ($testfile, $logging);
  fclose($testfile);
  
  ?&gt;
  </code></pre>
  
  <p>When I try to run this script I get </p>
  
  <pre><code>Warning: fopen(/home/djameson/test.txt): failed to open stream: Permission denied in   /var/www/html/fileio_test/io_test.php on line 7
  
  Warning: fwrite() expects parameter 1 to be resource, boolean given in /var/www/html/fileio_test/io_test.php on line 8
  
  Warning: fclose() expects parameter 1 to be resource, boolean given in /var/www/html/fileio_test/io_test.php on line 9
  </code></pre>
  
  <p>How do I let apache write to my home directory? The server runs on fedora 20.</p>