2010-06-28 44 views
2

我是drupal的新手。 我試圖在一個免費託管(德國)kilue.de。(apache,mysql5.0)上承載它 要測試我在本地完成了什麼,請在站點上: 1-我使用phpmyadmin創建數據庫 2 -I複製我使用FTPdrupal php:託管一個新的drupal站點的問題

一旦我使用給出uurl推出我的網站有在/ var/WW,我有這樣的消息:

* warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/data/multiserv/users/395147/projects/730411:/var/tmp/multiserv/users/395147/projects/730411:/data/apache/users/kilu.de/agbsite) in /data/multiserv/users/395147/projects/730411/www/includes/file.inc on line 190. 
* warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/data/multiserv/users/395147/projects/730411:/var/tmp/multiserv/users/395147/projects/730411:/data/apache/users/kilu.de/agbsite) in /data/multiserv/users/395147/projects/730411/www/includes/file.inc on line 787. 
* warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (/data/multiserv/users/395147/projects/730411:/var/tmp/multiserv/users/395147/projects/730411:/data/apache/users/kilu.de/agbsite) in /data/multiserv/users/395147/projects/730411/www/includes/file.inc on line 787. 
* warning: fopen() [function.fopen]: Filename cannot be empty in /data/multiserv/users/395147/projects/730411/www/includes/file.inc on line 788. 
* The file could not be created. 
* warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/data/multiserv/users/395147/projects/730411:/var/tmp/multiserv/users/395147/projects/730411:/data/apache/users/kilu.de/agbsite) in /data/multiserv/users/395147/projects/730411/www/includes/file.inc on line 190. 
* warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/data/multiserv/users/395147/projects/730411:/var/tmp/multiserv/users/395147/projects/730411:/data/apache/users/kilu.de/agbsite) in /data/multiserv/users/395147/projects/730411/www/includes/file.inc on line 190. 
* warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/data/multiserv/users/395147/projects/730411:/var/tmp/multiserv/users/395147/projects/730411:/data/apache/users/kilu.de/agbsite) in /data/multiserv/users/395147/projects/730411/www/includes/file.inc on line 787. 
* warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (/data/multiserv/users/395147/projects/730411:/var/tmp/multiserv/users/395147/projects/730411:/data/apache/users/kilu.de/agbsite) in /data/multiserv/users/395147/projects/730411/www/includes/file.inc on line 787. 
* warning: fopen() [function.fopen]: Filename cannot be empty in /data/multiserv/users/395147/projects/730411/www/includes/file.inc on line 788. 
* The file could not be created. 
* warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/data/multiserv/users/395147/projects/730411:/var/tmp/multiserv/users/395147/projects/730411:/data/apache/users/kilu.de/agbsite) in /data/multiserv/users/395147/projects/730411/www/includes/file.inc on line 190. 

誰能幫我找出是什麼問題?

回答

0

它會出現有效的open_basedir限制。

+2

好評。沒有像說明明顯的那樣。 – Tisch 2010-08-10 14:09:17

+0

+1好commant非常感謝你對我這個答案,,,,,爲什麼-2 ?????? – 2014-04-24 03:24:09

6

您的虛擬主機不允許您訪問默認的Drupal臨時文件位置/tmp

您可以轉到admin/settings/file-system並將臨時文件位置更改爲您有權訪問的位置。我會在你的用戶目錄中創建一個名爲tmp的文件夾,並改爲定位該位置。您可能需要通過CHMOD設置權限,以便Web服務器可以寫入。

在您的特定情況下,嘗試將其設置爲

/var/tmp/multiserv/users/395147/projects/730411. 

它必須是你的open_basedir設置允許一個文件夾。

+0

@downvoter呃,小心解釋一下? – ceejayoz 2010-06-28 18:06:27

+0

我按照指示更改了我的tmp,但我仍然遇到同樣的問題。 – agb 2010-06-28 19:36:17

+0

@agb嘗試將其設置爲'/ var/tmp/multiserv/users/395147/projects/730411'。它必須是'open_basedir'設置允許的文件夾。 – ceejayoz 2010-06-28 20:01:47