Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-15 Thread d3f3kt
Add those lines to yout /etc/apt/sources.list #php deb http://packages.dotdeb.org squeeze all deb-src http://packages.dotdeb.org squeeze all than run apt-get update apt-get upgrade apt-get install php5-fpm Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239181,239212#msg-239212 _

Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-14 Thread d3f3kt
Use this command with the "-C 6" and than you should be happy Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239181,239204#msg-239204 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-14 Thread d3f3kt
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 127.0.0.1 -p 9000 -u www-data -g www-data -f /usr/bin/php5-cgi -P /var/run/fastcgi-php.pid -C 6 The number after -C is the amount of children. Posted at Nginx Forum: http

Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-14 Thread d3f3kt
Increase the pm.max_children, pm.start_servers, pm.min_spare_servers and pm.max_spare_servers in the www.conf this should help Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239181,239182#msg-239182 ___ nginx mailing list nginx@nginx.org http