Nginx giving 502 Bad Gateway in random intervals

d3f3kt nginx-forum at
Tue May 14 18:35:14 UTC 2013

Oh sorry, that was my fault. I thought you are using php-fpm.
If you are using fcgi than you could use 
/usr/bin/spawn-fcgi -a -p 9000 -u www-data -g www-data -f
/usr/bin/php5-cgi -P /var/run/ -C 6
The number after -C is the amount of children.

Posted at Nginx Forum:,239181,239193#msg-239193

More information about the nginx mailing list