Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 486761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:32:10+00:00 2026-05-13T01:32:10+00:00

I recently setup a new ubuntu machine, with wordpress, spawn-fcgi and nginx. Every morning,

  • 0

I recently setup a new ubuntu machine, with wordpress, spawn-fcgi and nginx.

Every morning, I’d try to see my blog and I got a 502 error Bad Gateway error.

I tried finding some kind of log of why php-cgi died but couldn’t find anything.

I run spawn-fcgi like so:

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 did the following test:

ran the spawn-fcgi command, then sieged it.

After around 480 connections, spawn-fcgi died and I started getting 502 errors.

Any idea why this would happen, where I could find some kind of logs?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T01:32:11+00:00Added an answer on May 13, 2026 at 1:32 am

    This might not be real fix, but setting

    PHP_FCGI_MAX_REQUESTS=400
    

    environment variable will force php to kill itself after 400 requests and being re-executed, so the problem won’t appear.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently got a new dedicated MySQL machine. Now it's running fine, but sometimes
I recently switched to a new setup that is reporting PHP Notices; my code
Starting recently, some of my new web pages (XHTML 1.1) are setup to do
I've recently set up a WordPress blog and it's removing the www from all
I have recently setup XAMPP 1.7.3 and ZendFramework 1.10.4 on a new computer and
I have just recently setup a new development environment and ever since I have
I've recently begun to setup OpenPGM on a threesome of virtual linux machine with
I have recently setup a new development PC, which is 64 bit and has
I've recently setup my Ubuntu web server with exim4 so my PHP website applications
I recently setup a new web server and I'm getting undefined variable error. If

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.