title: Cache permissions for Symfony2 on Ubuntu14.04
body: <p>From my comprehensive search on Stack Overflow, the question is very popular, but none of the solutions apply to my case.</p>
  
  <p>The problem is with the permissions for both folders <strong>app/cache</strong> and <strong>app/logs</strong> in fresh <strong>Symfony2</strong> installation.</p>
  
  <p>I've tried the tutorial from <a href="http://symfony.com/doc/current/book/installation.html#configuration-and-setup" rel="nofollow">http://symfony.com/doc/current/book/installation.html#configuration-and-setup</a> and it didn't work for me.</p>
  
  <p>I'm running <strong>Apache 2.4.18</strong>, on <strong>Ubuntu 14.04</strong>.</p>
  
  <p>When I check the <strong>config.php</strong> file through a browser, it says that I need to change the permissions for the folders <strong>app/cache</strong> and <strong>app/logs</strong></p>
  
  <p>Status of current permissions:</p>
  
  <pre><code># l app/logs
  total 632K
  drwxrwxrwx+ 2 www-data www-data 4.0K Feb  3 09:35 ./
  drwxrwxr-x+ 7 www-data www-data 4.0K Feb  2 16:11 ../
  -rwxrwxrwx+ 1 www-data www-data 617K Feb  3 09:36 dev.log*
  -rwxrwxrwx+ 1 www-data www-data    0 Feb  2 09:51 .gitkeep*
  
  # l app/cache
  total 12K
  drwxrwxrwx+ 2 www-data www-data 4.0K Feb  3 10:02 ./
  drwxrwxr-x+ 7 www-data www-data 4.0K Feb  2 16:11 ../
  -rwxrwxrwx+ 1 www-data www-data    0 Feb  2 09:51 .gitkeep*
  
  # getfacl app/cache
  # file: app/cache
  # owner: www-data
  # group: www-data
  user::rwx
  user:root:rwx
  user:www-data:rwx
  group::r-x
  mask::rwx
  other::rwx
  default:user::rwx
  default:user:root:rwx
  default:user:www-data:rwx
  default:group::r-x
  default:mask::rwx
  default:other::r-x
  
  # getfacl app/logs
  # file: app/logs
  # owner: www-data
  # group: www-data
  user::rwx
  user:root:rwx
  user:www-data:rwx
  group::r-x
  mask::rwx
  other::rwx
  default:user::rwx
  default:user:root:rwx
  default:user:www-data:rwx
  default:group::r-x
  default:mask::rwx
  default:other::r-x
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>