Building mod_fastcgi on RHEL5

Apparently, I’m one of the only people who has ever built mod_fastcgi on Red Hat Enterprise Linux 5. At least after much Googling and gnashing of teeth, here’s how it’s done.

yum install httpd-devel
tar xzf mod_fastcgi-current.tar.gz
cd mod_fastcgi-
cp Makefile.AP2 Makefile

The next step will depend on your architecture:


make top_dir=/usr/lib/httpd
make top_dir=/usr/lib/httpd install


make top_dir=/usr/lib64/httpd
make top_dir=/usr/lib64/httpd install

You’ll find the module is now installed in /etc/httpd/modules. You can now add the configuration directive to load the module. I suggest adding the following to /etc/httpd/conf.d/fastcgi.conf to follow RHEL convention:

LoadModule fastcgi_module modules/

I may get around to creating an RPM for this, but that will be time permitting.

12 thoughts on “Building mod_fastcgi on RHEL5

  1. Bothwell says:

    Thanks, this worked for me on centos 5.5

  2. Justadude says:

    I just want to thank you for posting this concise How To. Worked for me on RHEL 5.7 32 bit!!!

    Thank you very much!!!

  3. SigmundFried says:

    Excellent! I just installed using this procedure on Centos 6 after pulling my hair out

    Thanks Rugmonster !

    • Geraldine says:

      That adedssres several of my concerns actually.

    • Mint is very user friendly and has a lot of perks into it whenever you download their mobile app. I’ve been a user for 3 months now and it has made me a huge fan.

    • Does she top the fried bread and syrup mix with something similar to a pudding? is the final dessert two layers, a bread one and a pudding one? if yes then that is a lebanese dessert called eish el saraya

    • cloud gaming sucks, you still need good hardware to play it, it doesn’t have any cool graphical features (NO anti aliasing, no physX, ambient occlusion.etc) and it doesn’t have? any of the new games

    • Dudo mucho que el LHC tenga algo que ver con este fenómeno, como e dicho más arriba creo que tiene más que ver con los estudios de Nicola Tesla, más bien HAARP puede tener algo que ver según mi opinión.

    • http://www./ says:

      sem duvida!Lula peida e eles publicam…nunca houve algo parecido nesse pais…foi a imprensa quem criou esse monstro, repercutindo toda e qualquer fala desse boçal…e pior, não dando o troco, como bem observasses…Lula defendeu ate essa carga tributaria absurda desse pais e não aconteceu nada!!!!

  4. acm says:

    Thanks, needed this to install Trac 0.12 on RHEL5.

  5. vaibhav says:

    Thanks awesome details.It worked at my place

Leave a Reply

Your email address will not be published. Required fields are marked *