我正在尝试设置 symfony。我正在运行 ubuntu,我安装了 apache2、phpmyadmin 和 phpstorm。我在项目的 config.php 下收到此错误:
MAJOR PROBLEMS 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. so I went to /var
我尝试了几件事:
sudo thunar
然后将所有权限更改为可写。这不起作用,之后权限发生了变化。 sudo chmod 754 /var/cache
和 sudo chmod 754 /var/log
和 sudo chmod -R 775 /var/cache
和 sudo chmod -R 775 /var/log
这也没有用最佳答案
很高兴你自己解决了。
无论如何,您都可以在这里阅读更多信息:Setting up Permissions / Symfony2
让我知道。再见!
关于php - 如何修复这个 symfony config.php 权限错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35952839/