/Main_Page

::You must have ninja focus to complete your mission::NinjaFocus::

Mod fastcgi

Views:

Useful for cgi web applications under Apache such as ruby or php cgi, but really there are better tools to use for these things!

You can download the source code from the following location on the Fast CGI web site http://www.fastcgi.com/dist

# cd /usr/local/src
# wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.6.tar.gz
# tar zxvf mod_fastcgi-2.4.6.tar.gz
# cd mod_fastcgi-2.4.6
# cp Makefile.AP2 Makefile

now at this point you need to edit the makefile to let it know where apache is installed, specifically you have to provide the path to the folder which contains the modules folder. By default on CentOS this is /usr/lib/httpd. The setting you need to change is "top_dir".

Edit the Makefile and set "top_dir" so it looks like this:

top_dir     = /usr/lib/httpd

Now you can continue installing mod_fastcgi

# make
# make install

mod_fastcgi is now installed but isn't yet being used by apache. Create a configuration file in /etc/httpd/conf.d that will load the module and can also be used to hold any default configuration information.

/etc/httpd/conf.d/fastcgi.conf

LoadModule fastcgo_module modules/mod_fastcgi.so

Finally test the new apache configuration and restart apache so that it loads the new module

# apachectl -t && apachectl graceful

Main Menu

Personal tools

Toolbox