这个问题已经被问过好几次了,但没有一个解决方案能解决我的问题。
我在 Mac OSX Lion 上运行 Apache。此http://localhost/Symfony/web/config.php
URL 引发 2 个主要问题:
Change the permissions of the "app/cache/" directory so that the web server can write into it.
Change the permissions of the "app/logs/" directory so that the web server can write into it.
按照“设置权限”下的指南:
rm -rf app/cache/*
rm -rf app/logs/*
sudo chmod +a "_www allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
这并不能解决问题,所以我尝试了:
sudo chmod -R 777 app/cache
那也行不通。任何想法如何解决这一问题?