Symfony 3权限var / cache

时间:2016-02-27 08:37:30

标签: caching logging permissions var symfony

我正在为一个Web项目设置Symfony 3。我按照SymfonyBook安装了它。当我通过从浏览器访问web文件夹中的config.php进行测试时,我收到以下消息:

Major problems have been detected and must be fixed before continuing:
- Change the permissions of either "app/cache/" or "var/cache/" directory so that the web server can write into it.
- Change the permissions of either "app/logs/" or "var/logs/" directory so that the web server can write into it.

我已经使用setfacl设置了Symfony Book中描述的权限并检查了它们www-data是var文件夹的组所有者,缓存,日志和会话子文件夹以及文件夹和文件权限设置为775

请注意,这是Symfony 3文件结构而不是Symfony 2.

有没有人有类似的经历并设法找到解决方案?

1 个答案:

答案 0 :(得分:1)

问题。我已经在项目目录中设置了权限,但我已经使用PHPStorm将其设置为将文件复制到本地服务器,而我没有更改服务器上的权限。道歉我第一次在PHPStorm中使用此功能,因为我通常在服务目录中工作。