Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've an issue with using nginx with fastcgi. It just runs for few requests and then it hangs/dies or whatever. Nginx then just returns bad gateway (502).

This is the code I used to spawn fastcgi:


/usr/bin/spawn-fcgi -a $ADDRESS -p $PORT -P $PIDFILE -C $CHILDREN -u $FASTCGI_USER -g $FASTCGI_GROUP -f $PHP5

I'm on Debian Squeeze. Any idea what could be wrong why it happens like this? When I kill all the fastcgi processes and run this script again, everything works for few requests and hangs again..

share|improve this question

Figured out that by installing php-fpm (which is amazing) the issue was solved. Installed by following this guide.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.