W
W
wbox2017-02-24 23:13:08
Nginx
wbox, 2017-02-24 23:13:08

PHP scripts are not executed. How to fix 502 nginx bad gateway error?

Why is php-fpm.sock not being created in /var/run/php-fpm/ ?
Log var/log/nginx/error.log
[ 2017-02-24 21:06:52.6165 13657/7f7eb1fba7c0 age/Ust/UstRouterMain.cpp:342 ]: Passenger UstRouter online, PID 13657
2017/02/24 21:07: 04 [crit] 13684#13684: *1 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 "
2017/02/24 21:07:23 [crit] 13684#13684: *8 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 "
[email protected] ubuntu-1404-trusty-64-minimal:/$

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wboks, 2017-02-24
@wboks

1 php5-fpm installed
2 in listen unix: /php-fpm/php-fpm.sock

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question