502 Bad Gateway (php-fastcgi processes crashing)

Julien Vehent julien at linuxwall.info
Fri Feb 11 20:39:08 MSK 2011


 On Thu, 10 Feb 2011 05:51:06 -0500, shadowlink64 wrote:
> Our site is currently on a linux VPS with DreamHost and using nginx
> 0.8.53 as the web server and php-fcgi version 5.2.15. On occasion, 
> our
> php-fastcgi processes just suddenly crash, and our users are left 
> with a
> "502 Bad Gateway" error from nginx. The server is configured to use 
> unix
> sockets and not a TCP port.
>

 Everybody has that problem with PHP. The solution is to monitor PHP 
 with *something* (php-fpm, supervise, etc...)

 I do it with supervise:
 http://wiki.linuxwall.info/doku.php/en:ressources:dossiers:nginx:daemontools_spawnfcgi



 Julien



More information about the nginx mailing list