I have tried some ways to give permission to the cache & logs folder but whenever I clear cache at that time the problem occurs like unable to write in directory.
I have tried this two ways:
- Full access to cache via the
rootuser with777permissions. - Change the owner like
www-dataas said in Symfony2 docs.
but it didn't work for me.