Mod fastcgi Install on Apache 2 / cPanel

From Leo's Notes
Revision as of 15:32, 31 May 2013 by Leo (talk | contribs) (Created page with " yum install httpd-devel wget http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz tar -xzf mod_fastcgi*.tar.gz cd mod_fastcgi* mv Makefile.AP2 Makefile Depending on...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This page was last edited on 31 May 2013, at 15:32.


yum install httpd-devel
wget http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz
tar -xzf mod_fastcgi*.tar.gz
cd mod_fastcgi*
mv Makefile.AP2 Makefile

Depending on where you have apache installed, you will need to define the top_dir variable. If your location is not /usr/local/apache2, you will need to do something like this:

make top_dir=/usr/local/apache
make top_dir=/usr/local/apache install

The module mod_fastcgi.so should now be in /usr/local/apache/modules/. We will now need to load the module.

vi /usr/local/apache/conf/httpd.conf

Add the following line:

LoadModule fastcgi_module modules/mod_fastcgi.so

Then restart apache

cPanel Notes

On cPanel, you will need to make sure that your changes to httpd.conf is persistent. To do so, run the following immediately after changing httpd.conf:

/usr/local/cpanel/bin/apache_conf_distiller --u

To verify that your changes are persistent, rebuild the configuration file:

 /usr/local/cpanel/bin/build_apache_conf

Then view the file again and see if your changes survived:

vi /usr/local/apache/conf/httpd.conf