-1

私のウェブサイトでは、次のエラーが表示されます。

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

Web サイト (ISP Config) では、次のエラーが表示されます。

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 

どうすれば修正できますか?

4

1 に答える 1

0

最初の問題は、権限外のファイルを含めているようです。所有していないフォルダーからファイルを取得することはありますか?

2 番目のエラーは、.htaccess を更新することで修正できます。

php_value date.timezone 'Europe/London'

タイムゾーンをヨーロッパ/ロンドンに置き換えます。ここでサポートされているタイムゾーンを見つけてください: http://php.net/manual/en/timezones.php

于 2012-04-27T05:57:08.507 に答える