2014-10-04 59 views
0

我正在運行Nginx,我試圖安裝postfixAdmin。當我嘗試去setup.php, 它說config.inc.php丟失,雖然它在那裏,並且權限是正確的。open_basedir的限制,雖然路徑是在PHP的配置

錯誤日誌顯示我:

[error] 18493#0: *22 FastCGI sent in stderr: "PHP message: PHP Warning: is_file(): open_basedir restriction in effect. File(/usr/share/webapps/postfixAdmin/config.inc.php) is not within the allowed path(s): (/srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/) in /usr/share/webapps/postfixAdmin/common.php on line 62" while reading response header from upstream

基本上說的open_basedir被訪問/usr/share/webapps/限制我,雖然/usr/share/webapps/是在open_basedir的列表。我甚至手動添加了/usr/share/webapps/postfixAdmin,但它仍然給了我相同的錯誤。

爲什麼這樣做?

+0

你解決了嗎?我遇到了同樣的錯誤.... – 2015-03-29 01:21:37

+0

@PeterFox並非真的,沒有。它在我更新我的服務器時隨機開始工作。 – Ivan 2015-05-01 18:48:25

回答

0

請注意,php.ini:open_basedir不遵循任何sysmlinks。所以,如果你的config.ini.php通過/ etc /中的符號鏈接,你也必須指定該目錄。

相關問題