PHP Symfony2安装缓存权限 [英] php symfony2 installation cache permissions

查看:85
本文介绍了PHP Symfony2安装缓存权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了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切换为允许"状态.您可以以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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆