После установки на главной 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/Helsinki' for 'EET/2.0/no DST' instead in /home/skazkatk/www/core/core_errors.php on line 7
И "Приносим наши извинения"
В админке тоже сверху предупреждение про таймзону, ЧПУ отключил.
Вот конфиг сайта (пока в режиме отладки он не виден для внешнего мира, там еще проблемы с ДНС):
# PHP-FPM (backend)
upstream php-fpm {
server 127.0.0.1:9000;
}
# Сервера кэширования
#upstream memcaches {
# server 127.0.0.1:11211;
#}
# Конфиг Nginx (frontend)
server {
# Защита от бага
http://forum.nginx.org/read.php?2,154025,154036 server_name_in_redirect off;
# Порт, принимаемые HOST и путь к сайту
listen 80;
server_name skazkatk.sumy.ua
*.skazkatk.sumy.ua;
set $www_folder '/home/skazkatk/';
set $root_path '$www_folder/www';
root $root_path;
index index.htm index.html index.php;
# Запросы непосредственно .php-файлов, например index.php (не кэшируются)
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $root_path/$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $root_path; # этот параметр нужен несмотря на root в секции server
fastcgi_pass php-fpm;
}
# Копия предыдущего для internal переадресации
location @phpscripts {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $root_path/$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $root_path; # этот параметр нужен несмотря на root в секции server
fastcgi_pass php-fpm;
}
# Запросы отдельных php-файлов (кэшируются)
#location /utils {
#default_type text/html;
#root $root_path;
#set $memcached_key 'nginx_$host$uri?$args';
#memcached_pass memcaches;
#error_page 404 502 504 405 = @phpscripts;
#}
# Остальные запросы также идут на PHP-FPM, если $uri не существует (через memcache)
location / {
default_type text/html;
root $root_path;
if (!-e $request_filename) {
return 404;
}
error_page 404 502 504 403 405 = @php;
}
# Веб-приложение
location @php {
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $root_path/index.php;
fastcgi_pass php-fpm;
}
# Переопеределение 502 ошибки
error_page 502 = /502.htm;
location = /502.htm {
root $www_folder;
}
# Для js, css, swf, ico и т.д.
location ~* \.(css|js|swf|ico|png|jpg|gif|jpeg)$ {
root $root_path;
access_log off;
expires 30d;
}
# Защита от просмотра .htaccess и .htpasswd файлов
location ~ /\.ht {
deny all;
}
# Защита от просмотра svn-файлов
location ~ /.svn/ {
deny all;
}
# Статус запросы (/status) и пинг(/ping) запросы от системы мониторинга
location ~ ^/(status|ping)$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
allow 127.0.0.1;
deny all;
}
}