Failed to write cache file
zjsxwc opened this issue · comments
After i use bin/console make:controller
create a new controller, i failed to see the page from browser:
IOException
Failed to write file "/var/www/symfony/var/cache/dev/srcDevDebugProjectContainer.xml".
it seems not the permissions problem, because i can use file_put_contents("/var/www/symfony/var/cache/dev/srcDevDebugProjectContainer.xml", "xxxx")
to write the file.
how to fix this problem?
i switch to use this symfony docker project( https://github.com/maxpou/docker-symfony ).