W
W
wbox2017-02-25 19:39:04
PHP
wbox, 2017-02-25 19:39:04

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

1 answer(s)
Z
zeuss56, 2017-03-17
@zeuss56

Why doesn't php-fpm work over sockets or over tcp?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question