I recently installed a new ubuntu machine with wordpress, spawn-fcgi and nginx.
Every morning I try to see my blog and I got a Bad Gateway error with a 502 error.
I tried to find some kind of log about why php-cgi died but didn't find anything.
I run spawn-fcgi as follows:
sudo /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 just ran the following test:
ran the spawn-fcgi command and then besieged it.
After about 480 connections, spwn-fcgi died and I started getting 502 errors.
Any idea why this will happen, where can I find some kind of magazines?
source
share