php symfony2 安装缓存权限 [英] php symfony2 installation cache permissions
问题描述
我已经下载了 2.0.4...我无法通过权限问题的无法创建缓存目录"原因...
I've downloaded 2.0.4... I can't get pass the "can't create cache directory" cause of permissions problem...
我试过 chmod 777 -R symfony
-- 对于所有文件夹,仍然无法创建缓存目录
I've tried chmod 777 -R symfony
-- to all folders, still can't create cache dir
我试过 setfacl
但它说无法识别 -m 选项....我的系统不支持 chmod +a
I've tried setfacl
but it says unrecognized -m option....
My system does not support chmod +a
我已经完成了 chown -R myuser:apache symfony
-- 什么都没有
I've done chown -R myuser:apache symfony
-- still nothing
我在 console.php/app_dev.php/app.php
中尝试过 umask(0000)
和 umask(0002)
-- 什么都没有
I've tried umask(0000)
and umask(0002)
in console.php/app_dev.php/app.php
-- still nothing
当我将页面刷新到 http://localhost/symfony/web/app_dev.php
时,我收到一个 SElinux 警报...这是否导致了什么问题?我不确定……所有 symfony 内容都是可写的.
When I refresh the page to http://localhost/symfony/web/app_dev.php
, I get a SElinux alert... is this causing something? I'm not sure... all symfony content is word writable.
我不确定是不是我...但这让我发疯,也许我应该停止使用 symfony2.
I'm not sure if it's me... but it's driving me nuts, maybe I just should stop using symfony2.
我使用的是 Fedora 13.
I'm using Fedora 13.
推荐答案
看来您需要将 SELinux 切换到 Permissive 状态.您可以以 root 用户身份执行此操作:
It seems that you will need to switch SELinux to Permissive state. You can do so executing as root user:
setenforce 0
这篇关于php symfony2 安装缓存权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!