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
wget http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz
tar xzf mod_fastcgi-current.tar.gz
cd mod_fastcgi-
cp Makefile.AP2 Makefile

The next step will depend on your architecture:

ia-32

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

ia-64

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/mod_fastcgi.so

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

7 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 !

  4. acm says:

    Thanks, needed this to install Trac 0.12 on RHEL5.

  5. vaibhav says:

    Thanks awesome details.It worked at my place

  6. Charles says:

    I read a lot of interesting articles here. Probably you spend a lot of time writing,
    i know how to save you a lot of time, there is an online tool that creates
    unique, google friendly posts in minutes, just type in google – laranitas free content
    source

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>