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,
Re: nginx and PHP = 502 Bad Gateway : full detail
January 17, 2019 05:17PM
Fixed it by un-commenting the line

max_execution_time = 30

in /etc/php5/fpm/php.ini
Re: nginx and PHP = 502 Bad Gateway : full detail
September 20, 2021 09:45AM
Hi,

Mine is already un-commented, still have the same problem
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 178
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready