title: file_put_contents failed to open stream: Permission denied
body: <p>I get this error while trying to do <code>file_put_contents()</code>.</p>
  
  <p>Apache is working as <code>apache</code> group, started with <code>sudo</code> rights. My user is in <code>apache</code> group. All dirs and files have <code>755</code> chmod.</p>
  
  <p>File exists.</p>
  
  <p>Locally it works fine, on remote CentOS server not. Why? How to debug that thing?</p>