简体   繁体   English

drupal php:托管新的drupal网站的问题

[英]drupal php: problem with hosting a new drupal site

I am a newbie to drupal. 我是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 我尝试将其托管在免费的托管(德语)kilue.de。(apache,mysql5.0)上,以测试我在本地执行的操作:1-我使用phpmyadmin创建数据库2-我复制了已有的内容在/ var / ww下使用FTP

Once I launch my site using given uurl , I have this message : 使用给定的uurl启动网站后,我会收到以下消息:

* 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 . 您的网络主机不允许您访问默认的Drupal临时文件位置/tmp

You can go to admin/settings/file-system and change the temporary file location to something you do have access to. 您可以转到admin/settings/file-system并将临时文件位置更改为您有权访问的位置。 I'd create a folder called tmp in your user directory and target that location instead. 我会在您的用户目录中创建一个名为tmp的文件夹,然后定位到该位置。 You may need to set permissions via CHMOD on it so the webserver can write to it. 您可能需要通过CHMOD设置权限,以便Web服务器可以对其进行写入。

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设置允许的文件夹。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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