In this post , we share the working steps for installing module fastCGI 2.4.6 on Apache.2.4 series.
Installing FCGI for apache (mod_fastcgi-2.4.6.tar.gz)
# Download the mod_fastcgi module tar archive
# tar -zxvf mod_fastcgi-2.4.6.tar.gz
# cd mod_fastcgi-2.4.6
# cp Makefile.AP2 Makefile
# vi Makefile
top_dir = /usr/local/apache (Edit this to have right apache install base) as e.g.
$ make top_dir=/usr/local/apachelite
# Add an entry to apache configuration file httpd.conf to load the module
LoadModule fastcgi_module modules/mod_fastcgi.so
# make
# make install
#mkdir –p /usr/local/apachelite/logs/fastcgi/dynamic
#cd /usr/local/apachelite/logs/
#chmod –R 777 fastcgi/
Fast CGI for Apache (mod_fastcgi-SNAP-0910052141)
Download the mod_fastcgi and byte patch byte-compile-against-apache24.diff
# unzip libapache-mod-fastcgi-byte.zip
# tar -zxvf mod_fastcgi-SNAP-0910052141.tar.gz
# cd mod_fastcgi-SNAP-0910052141
# cp Makefile.AP2 Makefile
# vi Makefile
# Edit top_dir=/usr/local/apachelite/
# Save the file
# patch -p1 < byte-compile-against-apache24.diff
patching file fcgi.h
Hunk #3 succeeded at 364 (offset -11 lines).
patching file mod_fastcgi.c
Hunk #2 succeeded at 3013 (offset -5 lines).
# make top_dir=/usr/local/apachelite/
# make install top_dir=/usr/local/apachelite/
After adding the Loadmodule directives , restart the apache service and confirm fcgi service is started
A simple service check should display below service running.
fcgi- -k start