title: Best practice: Files/Folders permission/owner in symfony2
body: <p>The symfony2's kernel needs to write in the cache ( as the http user ). I also need to read/write into the folder for these reasons:</p>
  
  <ol>
  <li>The IDE needs to read/write/create in document root</li>
  <li>In shell my user should be able to generate bundles and clear the cache </li>
  <li>My user should be able to manipulate the .git folder ( by staging and commits )</li>
  <li>I am pushing to the remote/production server and this should be done by my user</li>
  </ol>
  
  <p>What is the best practice for setting the ownership and permissions to document root and files under it?</p>
  
  <p>Thank you</p>