设置Apache的错误的时候了Silex的引导:无法检查htaccess文件 [英] Apache error when setting up Silex Bootstrap: unable to check htaccess file

查看:231
本文介绍了设置Apache的错误的时候了Silex的引导:无法检查htaccess文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图设置使用的Silex引导一个网站。 我把它放在我的文件夹与其他Web项目,改变了的DocumentRoot在Apache的配置。

I'm trying to set up a website using Silex Bootstrap. I've put it in my folder with other web projects and changed the DocumentRoot in the Apache config.

<Directory /folder/to/silex_projects/web>
     Options Indexes FollowSymLinks MultiViews
     AllowOverride All
     Order allow,deny
      allow from all
</Directory>

但我无法打开框架的索引页,阿帕奇给出了:

But I can't open the index page of the framework, Apache gives:

[周一12月17日21时10分五十二秒2012] [暴击] [客户127.0.0.1](13)权限被拒绝:/folder/to/silex_project/web/.htaccess pcfg_openfile:无法检查htaccess文件,确保它是可读

我chmod'ed与整个项目文件夹中文件模式一+ R -R 。在同一个文件夹中的其他项目工作正常的.thaccess文件。我怎样才能解决我的prolbem。

I've chmod'ed the whole project folder with chmod a+r -R. Other projects in the same folder are working fine with the .thaccess file. How can I solve my prolbem.

O和.htaccess文件确实存在/

O, and the .htaccess file does exists/

推荐答案

行chmod 755 -R / silex_project / 解决我的问题。我仍然不知道为什么Apache需要写权限的工作。

chmod 755 -R /silex_project/ solved my problem. I still don't know why Apache needs write permissions to work.

这篇关于设置Apache的错误的时候了Silex的引导:无法检查htaccess文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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