Fast CGI Installation

After days of configuring and reconfiguring, I have finally gotten the sequence down for a Fast CGI installation. Please note, these instructions are specifically for a fresh install of Fedora Core 4. This is what I’ve been working with, for distribution purposes. You may generalize the instructions where applicable of course. And as always, proceed at you own risk. Here we go (Italics indicate my personal settings):

  1. Run the following command at the prompt:
`yum -y install httpd-devel`

You may also download the RPM, or if you're really adventurous, build it from the source. This installs the httpd-devel package, which is needed for this installation. Most systems may already have this installed, but a fresh default install of Fedora Core 4 does not.
  1. Download the “mod_fastcgi” package from FastCGI.com and unzip it to some directory of your choice.
  2. Perform the following commands:
`cd <em>mod_fastcgi.</em>..<br />

cp Makefile.AP2 Makefile
make top_dir=/etc/httpd
make top_dir=/etc/httpd install
chown -R apache /etc/httpd`

The FastCGI Apache module has now been built.

  * Add following lines to _/etc/httpd/conf/httpd.conf_:

    `LoadModule fastcgi_module modules/mod_fastcgi.so<br />

Alias /fcgi-bin/ /var/www/fcgi-bin/
<directory /var/www/fcgi-bin/>
SetHandler fastcgi-script
Options +ExecCGI

FastCgiConfig …. (if needed)
` Now more commands:

`mkdir <em>/var/www/fcgi-bin</em><br />

chmod -R 777 /var/www/fcgi-bin/
`

Now if you dump your FastCGI scripts to /var/www/fcgi-bin/ you should be able to access them by going to http://www.yourserver.com/fcgi-bin/script.fcgi. Now anything in italics up above you should be able to freely change without screwing up too much. Anything you don't understand consult the FastCGI documentation and the Apache Configuration documentation.

Good luck guys.