Welcome! Log In Create A New Profile

Advanced

Re: php-fastcgi always exits.. resulting in 502 bad gateway

António P. P. Almeida
September 22, 2011 08:34AM
On 22 Set 2011 11h44 WEST, nginx-forum@nginx.us wrote:

> Hello everyone,
>
> I'm using nginx since some days and I got a little trouble. It seems
> that after some while of working fine nginx exits the fastcgi-daemon
> and whenever I try to call a php site then, it shows me 502 Bad
> Gateway.
>
> Then I have to "/usr/bin/php-fastcgi start" and everything runs fine
> again.

> So basically my question: How do I make the php-fastcgi not exit
> itself or how do I make it automatically restart on exit? It's
> annoying that my website everytime turns to "502 Bad Gateway" to
> everyone and I don't even know about that!
>
> Can anyone help me please? :(

Use one of the many init scripts available throughout the
interwebs. Also I suggest monit for monitoring the process.

I now use php-fpm, but before I used the "regular" php-cgi with this
init script: https://github.com/perusio/php-fastcgi-debian-script and
a monit configuration for monitoring it:
https://github.com/perusio/monit-miscellaneous/blob/master/php-cgi

HTH,
--- appa

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

php-fastcgi always exits.. resulting in 502 bad gateway

Lintu September 22, 2011 06:44AM

Re: php-fastcgi always exits.. resulting in 502 bad gateway

Reinis Rozitis September 22, 2011 07:30AM

Re: php-fastcgi always exits.. resulting in 502 bad gateway

Lintu September 22, 2011 07:44AM

Re: php-fastcgi always exits.. resulting in 502 bad gateway

Edho P Arief September 22, 2011 07:56AM

Re: php-fastcgi always exits.. resulting in 502 bad gateway

Lintu September 22, 2011 08:08AM

Re: php-fastcgi always exits.. resulting in 502 bad gateway

Edho P Arief September 22, 2011 08:24AM

Re: php-fastcgi always exits.. resulting in 502 bad gateway

Edho P Arief September 22, 2011 08:26AM

Re: php-fastcgi always exits.. resulting in 502 bad gateway

Reinis Rozitis September 22, 2011 08:46AM

Re: php-fastcgi always exits.. resulting in 502 bad gateway

Lintu September 22, 2011 01:47PM

Re: php-fastcgi always exits.. resulting in 502 bad gateway

Reinis Rozitis September 22, 2011 02:20PM

Re: php-fastcgi always exits.. resulting in 502 bad gateway

Lintu September 22, 2011 04:50PM

Re: php-fastcgi always exits.. resulting in 502 bad gateway

Lintu September 22, 2011 05:03PM

Re: php-fastcgi always exits.. resulting in 502 bad gateway

jdm September 22, 2011 08:12AM

Re: php-fastcgi always exits.. resulting in 502 bad gateway

António P. P. Almeida September 22, 2011 08:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 180
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready