Friday, December 7, 2012

Symfony 2 cache and log permissions on Ubuntu

Using the ACL, run the following in your project home directory:


sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs

More info at http://symfony.com/doc/current/book/installation.html

1 comment:

  1. This probably works in a development environment but for a more robust approach, aimed at multi-user production environments, I would advice coupling ACL with sticky-guid.

    I wrote a post about it a while back: http://vvv.tobiassjosten.net/symfony/symfony2-file-permissions-in-ubuntu/

    ReplyDelete