Часть php-fpm.conf
[code]
listen = /tmp/fastcgi.socket
[/code]
Часть nginx.conf
[code]
location ~ \.php$ {
fastcgi_pass unix:/tmp/fastcgi.socket;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME
/home/hello/www/$fastcgi_script_name;
include fastcgi_params;
}
[/code]
В логах php-fpm ошибок нет, в логах nginx
такая ошибка
[code]
[crit] 77665#0: *1 connect() to unix:/tmp/fastcgi.socket failed (2: No
such file or directory) while connecting to upstream, client:
xx.xx.xx.xx, server: localhost, request: "GET /index.php HTTP/1.1",
upstream: "fastcgi://unix:/tmp/fastcgi.socket:", host: "yy.yy.yy.yy"
[/code]
/tmp/fastcgi.socket создается после запуска php-fpm
с правами 0777 и владльцем www:www