Server Installation For Ruby From Scratch on UBUNTU

September 7, 2009 at 6:01 am Leave a comment

To make your vps live for your first rails applicatio is really a cakewalks for me. I am writing here some of my experience which i faced and i learned while doing so.

First There are some do’s and dont do’s. You will get all the to do on a various blogs. The common of them are

1) Choose your flavor of os and VPS.

2) Connect to your vps and install mysql-client ,passenger , ruby, ruby gems and rails

One thing that i learned from my exp. is that to compile your rubygems rather than instaling it from apt-get. It gives some eroors later.

run the command as root:

sudo apt-get update
apt-get -y install build-essential zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev sqlite3 libsqlite3-dev
for Rmagick:
apt-get -y install libmagick9-dev
Ruby Install
apt-get -y install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 irb1.8 libreadline-ruby1.8 libruby1.8 libopenssl-ruby
Some standare ruby gems( you include all your gems needed for the app)
gem install rake nokogiri hpricot builder cheat daemons json uuid rmagick sqlite3-ruby fastthread rack
mysql :
sudo apt-get install mysql-server mysql-client libmysqlclient15-dev
3) Install your apache
echo “deb http://apt.brightbox.net hardy main” > /etc/apt/sources.list.d/brightbox.list
wget -q -O – http://apt.brightbox.net/release.asc | apt-key add –
apt-get update
apt-get -y install libapache2-mod-passenger
4) configure your apache with passenger in the apache conf and restart your apache server
http://www.modrails.com/documentation/Users%20guide.html

If everything is configured correctly you will see your app running.

For further study : http://ariejan.net/2007/06/20/rails-production-server-setup-and-deployment-on-ubuntudebian/
http://www.rubyinside.com/how-to-install-a-ruby-18-stack-on-ubuntu-810-from-scratch-1566.html

Entry filed under: RoR, Uncategorized. Tags: , , , , , , , , , , , .

Time estimates: failure or success Rotating Ruby on Rails Log Files Using Logrotate

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed


Calendar

September 2009
M T W T F S S
« Aug   Nov »
 123456
78910111213
14151617181920
21222324252627
282930  

Most Recent Posts


%d bloggers like this: