title: PERMISSION DENIED on FEDORA 20, APACHE
body: <p>Last week I installed Fedora 20 on my computer, create a web server (LAMP) and change the Document Root to my Dropbox folder. </p>
  
  <p>From </p>
  
  <blockquote>
    <p>/var/www/html</p>
  </blockquote>
  
  <p>to </p>
  
  <blockquote>
    <p>/home/ivnbrv/Dropbox</p>
  </blockquote>
  
  <p>At the start I found some problems with SELinux, googling I discovered that was solved in this way. </p>
  
  <pre><code>$ chcon-R-u system_u-t httpd_sys_content_t /home/ivnbrv/Dropbox 
  </code></pre>
  
  <p>Then changing the owner of this directory which was set in </p>
  
  <blockquote>
    <p>/etc/httpd/conf/httpd.conf</p>
  </blockquote>
  
  <pre><code>User ivnbrv 
  Group apache
  
  
  
  $ chown-R ivnbrv.apache /home/ivnbrv/Dropbox 
  </code></pre>
  
  <p>Now when I try to upload a file using PHP </p>
  
  <blockquote>
    <p>move_uploaded_file ()</p>
  </blockquote>
  
  <p>I see this error </p>
  
  <blockquote>
    <p>PHP Warning: move_uploaded_file (/
    home/ivnbrv/Dropbox/Site/files/public/noticia/img/large/2010201.jpg):
    failed to open stream: Permission denied in / home / ivnbrv / Dropbox
    / Site / upload.php on line 113</p>
  </blockquote>
  
  <p>What can i do to make this work???</p>