1. Install Ruby
Quote:
cd /usr/src
wget ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.6.tar.gz
tar -xzvf ruby-1.8.6.tar.gz
cd ruby-1.8.6/
./configure
|
__________________________________________________ __________________
Edit defines.h if you need. (Normally, this step won't be needed.)
Remove comment mark(#) before the module names from ext/Setup (or
add module names if not present), if you want to link modules
statically.
If you don't want to compile non static extension modules
(probably on architectures which does not allow dynamic loading),
remove comment mark from the line "#option nodynamic" in
ext/Setup. ---)
__________________________________________________ ____________________
Quote:
make
make test
make install
|
2. Install rubygems
3. Install Rails
Quote:
gem install rails --include-dependencies
rails /usr/local/rails
|
4. Htaccess and Apache config
Open /usr/local/rails/public/.htaccess
Add
just above the RewriteRules
Open httpd.conf and add the following Alias:
Quote:
|
Alias /rails /usr/local/rails/public
|
Restart http
Access using
http://ipaddress/rails/
Please substitute ipaddress by server's ip.
If everything went correctly, you will see the ruby o rails Getting Started page..