title: Nginx "Permission denied" when creating a folder
body: <p>I'm using a simple php script to write / rename files.</p>
  
  <p>By default nginx installation I get "Permission denied" when I run the script.</p>
  
  <p>I tried to changed root html folder permissions from 755 to 777 and it works.</p>
  
  <p>But I think this is not the correct solution for that, so what is wrong?</p>