2
我從來沒有遇到過這個問題。我有一個Zend項目設置在/home/ashesh/prog/php/commonfloor.com/listinSearch/並且index.php文件在..listingSearch/html /中,所以.htaccess文件也是如此。在Apache DocumentRoot的也正確設置爲/home/ashesh/prog/php/commonfloor.com/listinSearch/html/Apache2與Zend - 在錯誤的位置尋找.htaccess
(Ubuntu的11.10 I386)
每當我試着通過瀏覽器訪問127.0.0.1,它應該打開主頁,但它會拋出403 Forbidden消息,說我沒有權限訪問/在服務器上。
快速瀏覽通過的Apache2/error.log中文件顯示一些奇怪的事情:
[Fri Apr 27 11:33:22 2012] [crit] [client 127.0.0.1] (13)Permission denied: /home/ashesh/prog/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
誰能幫助?我對此非常無知,我相信這不是一個大問題。
使用ls -l .htaccess檢查.htaccess的權限並查看它是否具有適當的權限 – Satya 2012-04-27 06:14:38
看起來不像Apache正在查找正確的文檔根目錄。如果使用VHosts,你的配置如何? – Phil 2012-04-27 06:15:44
htaccess的權限:-rwxr-XR-X – Ashesh 2012-04-27 06:31:41