My Symfony 2 website has recently been giving me problems when I try to clear the cache. I type the following command in the terminal:
php app/console cache:clea
in Symfony3 folders with cache moved from app to var, so the command will be:
$ rm -rf var/cache/*
$ rm -rf var/logs/*
$ sudo chmod +a "www-data allow delete,write,append,file_inherit,directory_inherit" var/cache var/logs
$ sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" var/cache var/logs