Symfony2 - no setfacl deployment cache

I am trying to deploy my first Symfony2 application.

A blank screen when trying to access it.

Check log:

$ sudo tail -f /var/log/apache2/error.log 

[...] Throw a "RuntimeException" exception with the message "Could not write cache file [...]

Trying to put good cache and log rights

 $ sudo chmod +a "www-data allow delete,write,[...]" app/cache app/logs 

chmod: invalid mode: `+ a '

Trying with setfacl

 $ sudo setfacl -R -mu:www-data:rwx -mu:`whoami`:rwx app/cache app/logs 

setfacl: app / cache: operation not supported
setfacl: app / logs: operation not supported

I believe my partition is not set using acl or something like that.

Can't I just use cache and www logs logs? data?

+8
debugging caching symfony deployment
source share
2 answers

Since you do not have to develop on the deployment server, simply give the entire application to www-data user:

 sudo chown -R www-data:www-data /path/to/the/root/of/your/app 
+6
source share

To use setfacl, you first need to install the acl utilities:

 # Provided Apt can be used for package management $ sudo apt-get install acl 

Then remount the disk partition containing your symfony2 project:

 # Remount the partition containing your Symfony2 application # eg we could remount the root (/) partition $ sudo mount -o remount,acl / # # we could also remount the /var partition in our app lives in /var/www $ sudo mount -o remount,acl /var # 

http://symfony.com/doc/2.0/book/installation.html#configuration-and-setup https://help.ubuntu.com/community/FilePermissionsACLs

+10
source share

All Articles