Install mod_fcgimod_fastcgi is heavily outdated and very hard to install it is better to use mod_fcgid

wget http://fastcgi.coremail.cn/mod_fcgid.1.10.tar.gz
tar -zxvf mod_fcgid.1.10.tar.gz
cd mod_fcgid.1.10
# in Makefile set top_dir to the top path of you apache i.e. /usr/local/apache2
make
make install

If fcgid is not working for you try installing mod_fastcgi for Apache (note that this assumes you are using Apache-2.x, etc.; if you are using Apache 1.3, DSOs, etc. read the INSTALL file.

Edit your Apache configuration (with fcgid instead of fastcgi)FastCGI is severly outdated, so it is recommended that you use FCGID instead. If you use FCGID two lines in the configuration file will be different:

Troubleshooting SuggestionsMake sure that you delete any ruby session files in your /tmp directory before switching to dispatch.fcgi. If you tested with cgi, there might be some with different permission that what apache (fastcgi) can read and will cause issue.

If you want to see if fastcgi is working with ruby, try pasting the following search into test.fcgi (in your rails/public dir). You will need to make sure the file has 755 permissions (chmod 755 test.fcgi).

I don´t know why this is like this (why the dependencies in the dispatcher should be wrong) but it helped.

I’ve been bitten by two things with the Apache configuration: I had MultiViews on, and I was redirecting /some/url.html to /some/url because I don’t want file extensions in my URLs. The second rule causes endless redirect looping with standard Rails’ .htaccess, and MultiViews interferes badly with Rails’ caching. So, keep MultiViews off, and be careful with those redirects. —Matijs van ZuijlenI have yet to get Apache fcgi working Windows XP SP2. I’ve got Apache working with Rails but it’s slow as mud. I’ve downloaded all the software that I can find and put in the http.conf file the recommended Apache configuration but can’t tell if fcgi is working or not.

Does anyone have a simple step by step recipe to get Apache (v2) on Windows XP Prof running fcgi? I found a test page for Rails but it doesn’t render the link

For anyone trying to get fastcgi working after installing the gem version of the ruby fastcgi lib, I found uninstalling it, then loading the library version and building it, fixed all problems. Download from here http://raa.ruby-lang.org/project/fcgi/ read the README and build and install, and fastcgi starts working.