Ruby on Rails is an open-source web framework. Ruby is a language, Rails is a framework. Rails is fast becoming a preferred development framework eating into PHP share
Installation:
wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz
tar -zxf mod_fastcgi-2.4.2.tar.gz
cd mod_fastcgi-2.4.2
cd /usr/local/src/
wget http://rubyforge.org/frs/download.php/7 ... 8.4.tar.gz
wget http://rubyforge.org/frs/download.php/5 ... 0.8.11.tgz
wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
wget http://www.fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz
tar -zxf fcgi-2.4.0.tar.gz
tar -zxf mod_fastcgi-2.4.2.tar.gz
tar -zxf rubygems-0.8.11.tgz
tar -zxf ruby-1.8.4.tar.gz
cd /usr/local/src/ruby-1.8.4
./configure
make
make install
cd /usr/local/src/rubygems-0.8.11
ruby setup.rb
gem install rails
cd /usr/local/src/fcgi-2.4.0
./configure
make
make install
cd /usr/local/src/mod_fastcgi-2.4.2
/usr/local/apache/bin/apxs -o mod_fastcgi.so -c *.c
/usr/local/apache/bin/apxs -i -a -n fastcgi mod_fastcgi.so
gem install fcgi
mkdir /tmp/dynamic
chmod 777 /tmp/dynamic
chown -R nobody:nobody /tmp/dynamic
Edit /usr/local/apache/conf/fastcgi.conf file in your favorite editor such vi ,pico and add following code
FastCgiIpcDir /tmp/
AddHandler fastcgi-script .fcgi
Then open /usr/local/apache/conf/httpd.conf file and add following line in end of file
Include “/usr/local/apache/conf/fastcgi.conf”
Service httpd restart

