Answer the question
In order to leave comments, you need to log in
How to fix connect() to unix: /var/run/php-fpm/php-fpm.sock failed?
Setting up php pools In nginx logs
2017/02/25 17:23:41 [crit] 10722#10722: *7 connect() to unix:/var/run/php-fpm/php-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: xx.xx.xx.xx, server: xn----7sb4afhojdd8iq.xn--p1ai, request: "POST /handler_promotion.php HTTP/1.1", upstream: "fastcgi:/ /unix:/var/run/php-fpm/php-fpm.sock:", host: "xn----7sb4afhojdd8iqa.xn--p1ai", referrer: " xn----7sb4afhojdd8iqa.xn--p1ai "
etc/nginx/sites-available/sprf.conf listen = unix:/var/run/php-fpm/php-fpm.sock
etc/php5/fpm/pool.d/php-fpm-sprf.conf listen unix:/var/run/php-fpm/php-fpm.sock
How to fix?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question