mod_fcgid 2.0 review

by on

mod_fcgid is an Apache module that has a new process management strategy, which concentrates on reducing the number of fastcgi server

License: GPL (GNU General Public License)
File size: 0K
Developer: Qingfeng Pan
0 stars award from

mod_fcgid is an Apache module that has a new process management strategy, which concentrates on reducing the number of fastcgi server, and kick out the corrupt fastcgi server as soon as possible.

Binary compatibility to mod_fastcgi
You don't need to recompile your existing fastcgi programs, what you need to do is install the module and make it work.

Strict control on process spawn
Every request handler of Apache (It may be a process, or a thread, depending on the MPM) knows about how many existing fastcgi servers are running (with the help of share memory) , and the request handlers collaborate with each other to make sure over-spawning is not going to happen.

Simple spawning-speed control strategy
It's a score-based strategy, the score increases while a process is spawned or terminated, and decreases as time progresses;while the score is higher than the score maximum,the spawning will be held. Thus it can make a prompt response to the requests especially when the system starts up: on the other hand, prevent the failure resulted from the immediate termination of the applications.

Fastcgi server error detection
The fastcgi server does not share the same UNIX domain socket (or named pipe, in Windows), every fastcgi server has a unique path listening on. That makes it easy to kick out the corrupt fastcgi server.

Use the Apache APR library as much as possible, and split the portable and un-portable source code. All un-portable code are organized in arch directory. Now the module is tested on Linux, FreeBSD( included in FreeBSD port now), Windows 2000 and Solaris.

PHP supported
PHP is NOT recommended to work with multithreaded Apache2(worker MPM and WinNT MPM, for example), because some PHP extensions( or 3rd party library they are using) are not guaranteed thread-safe. PHP running with FastCGI mode is a solution to this problem.

Apache 2.x

What's New in This Release:
Support FastCGI Authorizer protocols now.
Add apxs compile instruction in INSTALL.txt. Thank Hans Christian Saustrup, hc at for the suggestion.
Bug fix. (Win32 only) PHP script can not create socket on Win32. Thank bbscool at for the bug report and the help.
GREAT patchs from Robert L Mathews, rob at Fix compile warnings Adds a MaxRequestsPerProcess parameter that allows mod_fcgid to exit after handling a certain number of requests Close socket before fork avoid the 1-second sleep the first time a process is spawned
Print warning log while read data error from FastCGI process.
Apply patch from Scott Lamb, Fix mod_fcgid 1.10 warnings on x86_64

mod_fcgid 2.0 keywords