title: No write permissions in /var/www/html
body: <p>I am trying to run GLPi application on my Oracle Linux 7.0 where is only root user. </p>
  
  <p>I have installed Apache, PHP and MySQL. But when I run application with GLPi in <code>/var/www/html/glpi</code> on <a href="http://example.com/gpli/" rel="nofollow noreferrer">http://example.com/gpli/</a>. I get this errors after selecting language and accepting terms of licence.</p>
  
  <p><a href="https://i.stack.imgur.com/v9aRw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v9aRw.png" alt="Here you can see problem I am talking about"></a></p>
  
  <p><em>Here you can see problem I am talking about.</em></p>
  
  <p>I tried change user and group to apache with <code>chown -R apache:apache /var/www/html/gpli</code> and grant <em>full</em> access with <code>chmod -R a+rwx /var/www/html/gpli</code>, but it doesn't help at all.</p>
  
  <p>I think there is simple solution but I tried read some manuals and it doesn't help at all. Can you help me figure it out? Thank you. </p>
  
  <p><strong>SOLUTION:</strong> </p>
  
  <p>Problem was with SELinux I don't know there is something like that. I had to disable enforcing in <code>/etc/sysconfig/selinux</code>. After that everything was ok. </p>
  
  <p>After disabling SELinux I run this commands:</p>
  
  <pre><code>chmod 755 files &amp;&amp; chown apache /[PATH_TO_GLPI]/files
  find /[PATH_TO_GLPI]/files -type d -exec chown apache {} \;
  find /[PATH_TO_GLPI]/files -type d -exec chmod 755 {} \;
  chmod 755 config &amp;&amp; chown apache /[PATH_TO_GLPI]/config
  </code></pre>