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 have the following problem with mod_fcgid on apache with php.

Everything runs without any errors but all my requests are processed by one php interpreter, even when I set PHP_FCGI_CHILDREN>1 and there are multiple php interpreters. FcgidMinProccessPerClass also does nothing.

I discovered this using a sleep call into a test script.

Here is my config:


exec /usr/bin/php


export PHPRC="/home/usercp/public_html/php.ini"
exec /usr/local/cpanel/cgi-sys/php5


# Fastcgi configuration for PHP5
LoadModule fcgid_module modules/
FcgidMaxRequestsPerProcess 500
FcgidMinProcessesPerClass 1
FcgidMaxProcessesPerClass 10

FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php5
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php4
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php3
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .php2
FCGIWrapper /usr/local/cpanel/cgi-sys/php5 .phtml


<Location />
AddHandler fcgid-script .php
Options +ExecCGI
FcgidWrapper /home/usercp/public_html/cgi-bin/php.fcgi .php

# Customize the next two directives for your requirements.
Order allow,deny
Allow from all
share|improve this question
How do you know all the requests are processed by one PHP interpreter? – quanta Aug 21 '12 at 10:49
i request a test.php with a sleep(10) two times and then a phpinfo page , the first last 10 sec , the second 20 and the third 21 – maazza Aug 21 '12 at 10:53
up vote 0 down vote accepted

OK , config was OK , it was just firefox that queued the requests :D no problem using wget and safari

switched to mod_fastcgi Apache mod_fastcgi

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.