简体   繁体   中英

drupal php: problem with hosting a new drupal site

I am a newbie to drupal. I try to host it on a free hosting (german) kilue.de.(apache, mysql5.0) To test what I have done locally , on the site : 1- I create the database using phpmyadmin 2 -I copied what I have under /var/ww using FTP

Once I launch my site using given uurl , I have this message :

* 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.

Can anyone help me to find out what is the problem?

Your web host does not allow you to access the default Drupal temporary file location, /tmp .

You can go to admin/settings/file-system and change the temporary file location to something you do have access to. I'd create a folder called tmp in your user directory and target that location instead. You may need to set permissions via CHMOD on it so the webserver can write to it.

In your particular case try setting it to

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

It must be a folder your open_basedir setting permits.

似乎有一个有效的open_basedir限制。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM