Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-15 Thread miguelmclara
unable to bind listening socket f

Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-15 Thread darshan.choudhary
darshan.choudhary Wrote: --- > Did everything you mentioned above but still it is showing after I > run/etc/init.d/php-fpm start > > -bash: /etc/init.d/php-fpm: No such file or directory I somehow managed to install fpm and now it is not startin

Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-15 Thread darshan.choudhary
Did everything you mentioned above but still it is showing after I run/etc/init.d/php-fpm start -bash: /etc/init.d/php-fpm: No such file or directory Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239181,239213#msg-239213 ___ nginx mailing l

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-15 Thread darshan.choudhary
I am using php 5.3.3 and trying to install php-fpm and on research i came to know that php-fpm come bundled wirh 5.3.3 but still not able to find it. http://trainingjunction.in/phpinfo.php where am i going wrong? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239181,239211#msg-239211

Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-15 Thread darshan.choudhary
I am using php 5.3.3 but still not able to find php-fpm in it!! http://trainingjunction.in/phpinfo.php where am i going wrong? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239181,239210#msg-239210 ___ nginx mailing list nginx@nginx.org h

Re: Nginx giving 502 Bad Gateway in random intervals

2013-05-14 Thread Miguel Clara
I would suggest using php-fpm, its very easy to setup, in fact its integrated to recent releases of PHP (5.4++) On Tue, May 14, 2013 at 11:46 PM, d3f3kt wrote: > 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,

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 darshan.choudhary
this is something that i do whenever this happens. and error goes away. but it happens again. about 3-4 times a day. is there a way to solve this permanently? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,239181,239194#msg-239194 ___ 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 darshan.choudhary
Hi, Thanks for the help. It seems I don't have a www.conf in my nginx folder. This might sound naive but I am not able to find www.conf file. Upon search, I got to know that it should be in opt folder. But there is nothing in it. I have a nginx running on fcgi and Debian Squeeze. Posted at Ngin

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

Nginx giving 502 Bad Gateway in random intervals

2013-05-14 Thread darshan.choudhary
I am getting a 502 Bad Gateway on my server after any random intervals. If i run the following code the server starts working again: /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 I have tried every possible way available on the