2012-04-27 106 views
0

我們的一個新客戶的託管並行的Plesk系統上,我需要笨安裝到一個子域爲我的項目。爲此,我需要將文件放入Web根目錄之上的目錄,但唯一的問題是,Plesk阻止訪問除/ private,/ httpdocs之外的所有基本目錄中的腳本&/httpsdocs。我已經上傳我的應用程序&系統文件/私有的,但不斷收到以下錯誤:Plesk服務器的open_basedir的阻止

Warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/var/www/vhosts/example.com/private/system) is not within the allowed path(s): (/var/www/vhosts/example.com/httpdocs:/tmp) in /var/www/vhosts/example.com/httpdocs/sub-domains/dms/index.php on line 143

Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/var/www/vhosts/example.com/private/system/) is not within the allowed path(s): (/var/www/vhosts/example.com/httpdocs:/tmp) in /var/www/vhosts/example.com/httpdocs/sub-domains/dms/index.php on line 152 Your system folder path does not appear to be set correctly. Please open the following file and correct this: index.php

我不能上傳到/ conf目錄文件,所以我不能把一個vhost.conf文件在那裏並使用該工作。有任何想法嗎?

回答

0

該解決方案將取決於在Plesk的版本,你的客戶託管在和他們是否共享的主機帳戶或VPS /專用主機(即自己要的Plesk管理員權限)。

如果版本爲10.4,並且他們具有管理員訪問Plesk的權限,或者他們在共享託管帳戶中獲得PHP設置管理權限 - 單擊站點名稱並打開「PHP設置」選項卡,然後爲「 open_basedir的」屬性

對於早期版本或不PHP設置管理權限授予的情況下,你有權要求他們的託管服務提供商爲vhost.conf的調整。

另外,如果是這樣的Plesk 10+,你可以把網站的自定義文件夾。因此,您在「dir1/dir2」中創建一個網站,並將其放在應該位於docroot之上的「dir1 /」文件中。