Welcome! Log In Create A New Profile

Advanced

nginx and PHP = 502 Bad Gateway : full detail

Posted by barlos 
nginx and PHP = 502 Bad Gateway : full detail
April 07, 2015 01:56AM
Please help.

Here is my setup.
OS: ubuntu 14.04.2 LTS
nginx : 1.6.2
php: PHP 5.6.7

I can see the web page file ok, but not the php.

I check the error log by the following command
cat /var/log/nginx/error.log

output as:
2015/04/07 11:36:32 [error] 7495#0: *1 connect() to unix:/var/run/php5-fpm.sock failed (111: Connection refused) while connecting to upstream, client: 192.168.0.252, server: _, request: "GET /info.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.0.241"

How can I fix the issue?

Sincrely,
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 100
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready