相关疑难解决方法(0)

Symfony2上的权限问题

这个问题已被多次询问,但没有一个解决方案可以解决我的问题.

我在Mac OSX Lion上运行Apache.此http://localhost/Symfony/web/config.phpURL触发了两个主要问题:

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.
Run Code Online (Sandbox Code Playgroud)

按照"设置权限"下的指南进行操作:

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
Run Code Online (Sandbox Code Playgroud)

这并没有解决问题,所以我尝试了:

sudo chmod -R 777 app/cache
Run Code Online (Sandbox Code Playgroud)

这也行不通.任何想法如何解决这一问题?

permissions symfony

27
推荐指数
2
解决办法
5万
查看次数

标签 统计

permissions ×1

symfony ×1