Install Ruby on Rails
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
Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern. Rails works with a wealth of web servers and databases. For web server, we recommend Apache or lighttpd, running either FastCGI or SCGI, or Mongrel. For database, you can use MySQL, PostgreSQL, SQLite, Oracle, SQL Server, DB2, or Firebird. Just about any operating system will do, but a ‘nix-based one for deployment is recommend.
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/7858/ruby-1.8.4.tar.gz
wget http://rubyforge.org/frs/download.php/5207/rubygems-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
0 comments:
Post a Comment