實施的項目中用到了apache,執行程序時,站點對應的錯誤日誌中顯示:
首先:apache(rpm安裝的)
[Fri Apr 19 09:28:16 2013] [crit] [client xx.xx.xx.xx] (13)Permission denied: /var/boc/bocDao/public/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
.htaccess文件確實存在,權限755,上級目錄同樣是755,用戶 屬主 apache,看上去沒什麼問題,但是執行程序就是報這個錯,後來在 apache的配置文件(httpd.conf)中發現:
DirectoryIndex index.html index.html.var 其中沒有“ index.php”,然後加上,重啓apche後就ok了!
報上述錯誤 很容易被誤導,還是需要觀測自己生產環境去調試!