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</pre>$ sudo gem install fcgi</pre>LoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc/ AddHandler fastcgi-script .fcgi </IfModule></pre>
You may have mod_fastcgi.so installed in a different place. If so, use the correct path.
$ apache2ctl reload</pre>
Use apachectl if you are not using apache2
public/dispatch.fcgi change:require 'fcgi'</pre>
to
require 'rubygems' require_gem 'fcgi'</pre>
public/.htaccess change:RewriteRule ^(.*)$ /dispatch.cgi?$1 [QSA,L]</pre>
to
RewriteRule ^(.*)$ /dispatch.fcgi?$1 [QSA,L]</pre>
Credits
Thanks to Jarkko Laine
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</pre>$ sudo gem install fcgi</pre>LoadModule fastcgi_module /usr/lib/apache2/modules/mod_fastcgi.so <IfModule mod_fastcgi.c> FastCgiIpcDir /tmp/fcgi_ipc/ AddHandler fastcgi-script .fcgi </IfModule></pre>
You may have mod_fastcgi.so installed in a different place. If so, use the correct path.
$ apache2ctl reload</pre>
Use apachectl if you are not using apache2
public/dispatch.fcgi change:require 'fcgi'</pre>
to
require 'rubygems' require_gem 'fcgi'</pre>
public/.htaccess change:RewriteRule ^(.*)$ /dispatch.cgi?$1 [QSA,L]</pre>
to
RewriteRule ^(.*)$ /dispatch.fcgi?$1 [QSA,L]</pre>
Credits
Thanks to Jarkko Laine