我試圖設置一個使用Silex Bootstrap的網站。 我已經把它放在我的其他web項目的文件夾中,並改變了Apache配置中的DocumentRoot。設置Silex Bootstrap時出現Apache錯誤:無法檢查htaccess文件
<Directory /folder/to/silex_projects/web>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
但我無法打開框架的索引頁,阿帕奇給出:
[Mon Dec 17 21:10:52 2012] [crit] [client 127.0.0.1] (13)Permission denied: /folder/to/silex_project/web/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
我chmod'ed整個項目文件夾chmod a+r -R
。在同一文件夾中的其他項目與.htaccess
文件正常工作。
.htaccess
文件確實存在。
這確實解決了這個問題,但沒有解釋它,請參閱user1428022's anwser – loostro
只需'chmod 755 .'爲我工作,所以問題出在項目文件夾的權限 –