На моем веб-сайте отображается следующая ошибка:
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 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
Как я могу это исправить?
Первая проблема выглядит так: вы включаете файл вне своих разрешений. Может быть, захватить файл из папки, которой у вас нет?
Вторая ошибка может быть исправлена с обновлением вашего .htaccess:
php_value date.timezone 'Europe/London'
Замените Европу / Лондон на ваш часовой пояс. Найдите поддерживаемый часовой пояс здесь: http://php.net/manual/en/timezones.php