Installing apache2 mod_fastcgi

Proper production configuration with Apache2 web server of a Nagare application involves using mod_fastcgi.

Here is a brief mod_fastcgi installation howto based on a Redhat system. This should easily be ported to any other nix plateform.

First of all, you'll need some basic development tools like gcc, gcc-c++, make , autoconf, automake ...

Then you should check you've required headers packages for Apache2 installed:

yum install httpd-devel libtools (for RHEL, centos, fedora based system)
up2date install httpd-devel libtools (for older RHEL systems)

OK, now let's install mod_fastcgi:

tar xzvf mod_fastcgi-2.4.6.tar.gz
cd mod_fastcgi-2.4.6
cp Makefile.AP2 Makefile
make top_dir=/usr/lib/httpd
make top_dir=/usr/lib/httpd install



1. bertrand.croq -- 2009-08-28 13:11

Note that there is a known bug in mod_fastcgi when used with mod_deflate. This patch for mod_fastcgi is known to fix the problem.