Symfony All blank pages after cache clear
caching, php, symfony
Solution
You seem to have run `cache:clear` as root user without the `--no-warmup` flag.
Now symfony has warmed the cache after clearing it using the root account which would result in the newly created cache files being owned by your root user. Depending on your `umask` the webserver-user now might not have r+w access to these files.
Make sure your webserver-user / cgi-user has read and write access to your cache folder or give the ownership back to this user.
sudo chown webserver_user:webserver_group -R app/cache
sudo chmod 770 -R app/cache # or use acl to permit read/write to your webserver-user
Problem
I recently was making changes to my Symfony 2 site and then did a clear cache command on the site. Afterwards when I returned to the site the pages were blank. Here's the command I ran ``` app/console cache:clear --env=prod ``` I've heard that it might be related to file permissions on the cache folder, but I'm not sure. I logged in at the root level to be able to run the run the above command becuase I was getting an 'access denied' error when i was logged in at the user level. Any helped/insight would be greatly appreciated.