Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
尝试安装 SymfonyCMF 时,我不断收到有关 app/cache 和 app/logs 权限的错误。我将这些文件夹的权限设置为 0777,但我仍然收到此错误。如何让 Symfony 看到权限设置正确?
要为 Symfony 设置正确的权限,请在项目目录中以 root 身份运行这两个命令。这里,“user”是你的 Linux 用户名。还。假设 apache 以进程名 apache 运行。在 Ubuntu 中,您将不得不使用 www-data 而不是 apache。
setfacl -R -m u:apache:rwx -m u:user:rwx app/cache app/logs setfacl -dR -m u:apache:rwx -m u:user:rwx app/cache app/logs