Welcome! Log In Create A New Profile

Advanced

PHP5-FPM 502 Bad Gateway error on virtual host

Posted by Twml 
PHP5-FPM 502 Bad Gateway error on virtual host
December 26, 2018 07:21AM
I have an iRedMail installation running php5-fpm and i setup a second website using virtual host.

The website it self works but i cant get php on the virtual host, it gives me a 502 error every time.

my virtual config is /etc/nginx/conf.d/virtual.conf
and my 2 php pools are in /etc/php5/fpm/pool.d/www.conf & /etc/php5/fpm/pool.d/www2.conf

here is my second pool file
https://prnt.sc/lzp45v

here is my virtual.conf
https://prnt.sc/lzp42d
Re: PHP5-FPM 502 Bad Gateway error on virtual host
December 26, 2018 08:12AM
Error log for Nginx says

2018/12/26 09:11:10 [error] 14345#0: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.2.1, server: mydomain.net, request: "GET /phpinfo.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000",
Re: PHP5-FPM 502 Bad Gateway error on virtual host
January 17, 2019 05:20PM
Fixed it by un-commenting the line

max_execution_time = 30

in /etc/php5/fpm/php.ini
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 120
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