2012-04-27 53 views
-1

open_basedir的限制,在我的网站上显示以下错误:PHP错误:警告:要求()[function.require]:实际上

Warning: require() [function.require]: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/clients/client2/web3/web:/var/www/clients/client2/web3/tmp:/var/www/zkus.eu/web:/srv/www/zkus.eu/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client2/web3/web/admin/login.php on line 4 

Warning: include() [function.include]: open_basedir restriction in effect. File() is not within the allowed path(s): (/var/www/clients/client2/web3/web:/var/www/clients/client2/web3/tmp:/var/www/zkus.eu/web:/srv/www/zkus.eu/web:/usr/share/php5:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin) in /var/www/clients/client2/web3/web/libs/smarty/libs/sysplugins/smarty_internal_templatebase.php on line 161 

在网站(ISP配置)显示以下错误:

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /usr/local/ispconfig/interface/lib/classes/session.inc.php on line 90 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /usr/local/ispconfig/interface/lib/classes/session.inc.php on line 111 Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /usr/local/ispconfig/interface/lib/classes/session.inc.php on line 112 Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /usr/local/ispconfig/interface/lib/classes/session.inc.php on line 113 

我该如何解决它?

+5

第一步:阅读它说的内容。 – 2012-04-27 05:52:43

回答

0

第一个问题看起来像是你的权限之外包含一个文件。也许从你不拥有的文件夹抓取文件?

第二个错误可以固定的更新您的.htaccess:

php_value date.timezone 'Europe/London' 

替代欧洲/伦敦时区。在此处查找支持的时区:http://php.net/manual/en/timezones.php