This is my first blog so please dont curse me to the core.Im just writing this for my interest and knowledge as i hat noting down in a book.Any other person who is interested to go on is alwayz welcome.I am very new to rails, n i love experimenting.Given i can start blabbering. So lets start with our procedures
This blog basically deals with installation procedures from scratch.As i have gone through lot of sites , i didnt find one place which specifies about RUNNING RAILS ON APACHE ON LINUX as whole complete package may this can help u.
To run rails on apache server u may need the following installations to be done.If you have the knowledge that you have done these installations then you can skip them
1 Installations
List of installations are:
1)Ruby Installation
2)Ruby Gems Installation
3)RAILS Installation
4)Apache Installation
5)FastCGI Installtion
6)ModFASTCGI Installation
7)fastcgigem installation
Before you start anything , a prerequisite before starting is that your box or machine should be connected to internet, otherwise installing gems will be difficult(But not impossible!!!).
1.1 Ruby Installation
You can install the latest version of the ruby from the source forge and follow the steps below.
- wget http://xyz.csail.mit.edu/ruby/ruby-1.8.5.tar.gz
- tar -zxvf ruby-1.8.5.tar.gz
- cd ruby-1.8.5
- ./configure
- make
- make test
- make install
- cd ..
2 Ruby Gems Installation
You can install the latest version of the ruby gems from the source forge and follow the below given steps to install ruby gems on the machine
- wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz
- tar -zxvf
- rubygems-0.9.0.tgz
- cd rubygems-0.9.0
- ruby setup.rb
- cd ..
3 RAILS Installation
You can install the latest version of the rails by following the below
- gem install rails
- :
- Install required dependency rake? [Yn] y
- Install required dependency activesupport? [Yn] y
- Install required dependency activerecord? [Yn] y
- Install required dependency actionpack? [Yn] y
- Install required dependency actionmailer? [Yn] y
- Install required dependency actionwebservice? [Yn] y
You can install the latest version of the httpd from the source forge and following the below given steps to install ruby gems on the machine
- wget http://mirrors.ccs.neu.edu/Apache/dist/httpd/httpd-2.2.3.tar.gz
- tar -zxvf httpd-2.2.3.tar.gz
- cd httpd-2.2.3
- ./configure --enable-rewrite --enable-cgi --enable-so
- make
- make install
- cd ..
5 Fast CGI Installation
You can install the latest version of the fcgi from the source forge.fcgi installer and following the below given steps to install fastcgi on the machine
- wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz
- tar -zxvf fcgi-2.4.0.tar.gz
- cd fcgi-2.4.0
- ./configure
- make
- make install
6 mod_fcgi Installation
You can install the latest version of the mod_fcgi from the source forgeand following the below given steps to install fastcgi on the machine
- 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
7 fcgi gem Installation
You can install the latest version of the fcgi gem by following the below
- gem install fcgi
No comments:
Post a Comment