Код: Выделить всё
[crit] 16008#0: *3 connect() to unix:/tmp/fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 192.168.2
.113, server: mysite.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/tmp/fpm.sock:", host: "mysite.com"
Другой вопрос:
по пути /tmp/fpm.sock, этого fpm.sock у меня нет.
locate fpm.sock тоже ничего не возвращает, хотя php-fpm запущен.
Может в этом проблема, из-за чего дефолтный конфиг не работает?
Отправлено спустя 18 минут 8 секунд:
Ошибся чуток, это ошибка из лога сайта.
Вот кусок из лог нжинкса, после рестарта:
Код: Выделить всё
2015/07/07 10:02:41 [notice] 16029#0: signal 15 (SIGTERM) received, exiting
2015/07/07 10:02:41 [notice] 16031#0: exiting
2015/07/07 10:02:41 [notice] 16030#0: exiting
2015/07/07 10:02:41 [notice] 16029#0: signal 23 (SIGIO) received
2015/07/07 10:02:41 [notice] 16033#0: exiting
2015/07/07 10:02:41 [notice] 16029#0: signal 23 (SIGIO) received
2015/07/07 10:02:41 [notice] 16029#0: signal 23 (SIGIO) received
2015/07/07 10:02:41 [notice] 16029#0: signal 23 (SIGIO) received
2015/07/07 10:02:41 [notice] 16032#0: exiting
2015/07/07 10:02:41 [notice] 16031#0: exit
2015/07/07 10:02:41 [notice] 16033#0: exit
2015/07/07 10:02:41 [notice] 16030#0: exit
2015/07/07 10:02:41 [notice] 16032#0: exit
2015/07/07 10:02:41 [notice] 16029#0: signal 20 (SIGCHLD) received
2015/07/07 10:02:41 [notice] 16029#0: worker process 16033 exited with code 0
2015/07/07 10:02:41 [notice] 16029#0: worker process 16030 exited with code 0
2015/07/07 10:02:41 [notice] 16029#0: signal 20 (SIGCHLD) received
2015/07/07 10:02:41 [notice] 16029#0: worker process 16031 exited with code 0
2015/07/07 10:02:41 [notice] 16029#0: signal 20 (SIGCHLD) received
2015/07/07 10:02:41 [notice] 16029#0: worker process 16032 exited with code 0
2015/07/07 10:02:41 [notice] 16029#0: exit
2015/07/07 10:02:41 [notice] 16726#0: using the "kqueue" event method
2015/07/07 10:02:41 [notice] 16726#0: nginx/1.8.0
2015/07/07 10:02:41 [notice] 16726#0: OS: FreeBSD 10.0-RELEASE
2015/07/07 10:02:41 [notice] 16726#0: kern.osreldate: 1000510, built on 1001000
2015/07/07 10:02:41 [notice] 16726#0: hw.ncpu: 4
2015/07/07 10:02:41 [notice] 16726#0: net.inet.tcp.sendspace: 32768
2015/07/07 10:02:41 [notice] 16726#0: kern.ipc.somaxconn: 1280
2015/07/07 10:02:41 [notice] 16726#0: getrlimit(RLIMIT_NOFILE): 58239:58239
2015/07/07 10:02:41 [notice] 16727#0: start worker processes
2015/07/07 10:02:41 [notice] 16727#0: start worker process 16728
2015/07/07 10:02:41 [notice] 16727#0: start worker process 16729
2015/07/07 10:02:41 [notice] 16727#0: start worker process 16730
2015/07/07 10:02:41 [notice] 16727#0: start worker process 16731
2015/07/07 10:02:41 [notice] 16727#0: signal 23 (SIGIO) received
2015/07/07 10:02:41 [notice] 16727#0: signal 23 (SIGIO) received
2015/07/07 10:02:41 [notice] 16727#0: signal 23 (SIGIO) received
2015/07/07 10:02:41 [notice] 16727#0: signal 23 (SIGIO) received
2015/07/07 10:02:41 [notice] 16727#0: signal 23 (SIGIO) received
2015/07/07 10:02:41 [notice] 16727#0: signal 23 (SIGIO) received
Отправлено спустя 2 часа 19 минут 38 секунд:
В ходе экспериментов, удалось добиться того, чтобы ошибки не было.
Сейчас просто белый экран. Ошибок ни в нжинкс ни фпм нет.
Конфиг такой:
Код: Выделить всё
server {
listen 80;
server_name narco.dn.ua;
access_log /var/log/nginx/www.mysite.com_log;
error_log /var/log/nginx/www.mysite.com-error_log;
set $root_path '/usr/local/www/data/mysite.com';
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~* ^.+\.(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$
access_log off;
log_not_found off;
expires max;
}
location ~ \.php$ {
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location ~* /(?:uploads|files)/.*\.php$ {
deny all;
}
location ~ /\. {
deny all;
}
}
php-fpm.conf
Код: Выделить всё
user = www
group = www
listen = /tmp/php-fpm.sock
listen.owner = www
listen.group = www
listen.mode = 0660
Белый экран и в админке и в основном сайте.
Что еще можно подумать?