Thursday, January 12, 2012

Install mod_fcgi (Apache HTTP Server)

1. Install required libs

# yum install libtool httpd-devel apr-devel apr

2. Next, grab the latest mod_fastcgi source code, enter:

# cd /opt
# wget http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz

3. Untar tar ball, type:

# tar -zxvf mod_fastcgi-current.tar.gz
# cd mod_fastcgi-2.4.6/

4. Make a copy of Makefile.AP2, enter:

# cp Makefile.AP2 Makefile

5. Compile and install mod_fastcgi for 32 bit system, enter:

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

6. Compile and install mod_fastcgi for 64 bit system, enter:

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

No comments: