Here’s a step-by-step guide for making Rails work with \FastCGI?. There’s a special version for \FastCGIOnFedora
If you are using Apache you will need mod_fcgi, and the \FastCGI Development kit; These can be obtained from http://www.fastcgi.com . You will also need ruby-fcgi.
$ wget <a href="http://fastcgi.com/dist/fcgi-2.4.0.tar.gz">http://fastcgi.com/dist/fcgi-2.4.0.tar.gz</a>
$ tar zxvf fcgi-2.4.0.tar.gz
$ cd fcgi-2.4.0
$ ./configure
$ make
$ sudo make install$ sudo gem install fcgiLoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc/
AddHandler fastcgi-script .fcgi
</IfModule>$ apache2ctl reloadpublic/dispatch.fcgi change:require 'fcgi'require 'rubygems'
require_gem 'fcgi'public/.htaccess change:RewriteRule ^(.*)$ /dispatch.cgi [QSA,L]RewriteRule ^(.*)$ /dispatch.fcgi [QSA,L]Credits
Thanks to Jarkko Laine