Skip to content

Instantly share code, notes, and snippets.

Created Mar 15, 2010
Embed
What would you like to do?
Ubuntu 9.10 Karmic on Slicehost
======= setup the server =========
http://articles.slicehost.com/2007/11/6/ubuntu-gutsy-setup-page-1
http://articles.slicehost.com/2007/11/6/ubuntu-gutsy-setup-page-2
===== install git ===================
install git-core -y
===== install ruby and rubygems ========
http://jah.pl/articles/ruby-and-rails-on-ubuntu-9-10-karmic-koala.html
install ruby rubygems libssl-dev libreadline-dev zlib1g-dev libsqlite3-dev curl
sudo gem install rvm
/var/lib/gems/1.8/bin/rvm-install
nano ./.bashrc
rvm install 1.9.1
rvm use 1.9.1 --default
ruby -v
gem -v
===== install sqlite3 ============
gem install sqlite3-ruby
irb
require 'sqlite3'
exit
===== install rails 3 beta ============
from http://gist.github.com/296055
rvm gemset create rails3b
rvm gemset use rails3b
curl -L http://rvm.beginrescueend.com/gemsets/rails3.gems -o rails3.gems
rvm gemset import rails3.gems
rails -v
======== Install Nokogiri: =============
$ install libxml2-dev libxslt-dev
$ sudo gem install nokogiri
===== install apache ============
http://articles.slicehost.com/2008/12/11/ubuntu-intrepid-installing-apache-and-php5
leave out the php stuff.
install apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert
sudo nano /etc/apache2/apache2.conf
ServerName scottnj1
sudo apache2ctl graceful
sudo a2dissite default
sudo a2ensite default
sudo a2enmod rewrite
sudo /etc/init.d/apache2 reload
===== install mod_rails/passenger ============
http://rvm.beginrescueend.com/integration/passenger/
rvm 1.9.1 --passenger
rvm 1.9.1
gem install passenger
rvmsudo passenger-install-apache2-module
install apache2-prefork-dev
rvmsudo passenger-install-apache2-module
sudo nano /etc/apache2/apache2.conf
rvm website has this so i put this at the bottom of my config
PassengerRuby /home/scott/.rvm/bin/passenger_ruby
passenger install says this, do i need any of this???
LoadModule passenger_module /home/scott/.rvm/gems/ruby-1.9.1-p378/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
PassengerRoot /home/scott/.rvm/gems/ruby-1.9.1-p378/gems/passenger-2.2.11
PassengerRuby /home/scott/.rvm/rubies/ruby-1.9.1-p378/bin/ruby
so far this works, but i haven't tested it much???
LoadModule passenger_module /home/scott/.rvm/gems/ruby-1.9.1-p378/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
PassengerRoot /home/scott/.rvm/gems/ruby-1.9.1-p378/gems/passenger-2.2.11
PassengerRuby /home/scott/.rvm/bin/passenger_ruby
====== try it out ========
rvm gemset use rails3b
mkdir ~/public_html
cd ~/public_html
rails app1
sudo nano /etc/apache2/sites-available/app1
<VirtualHost *:80>
ServerName scfinder.com
ServerAlias www.scfinder.com
DocumentRoot /home/scott/public_html/app1/public
</VirtualHost>
sudo a2ensite app1
sudo /etc/init.d/apache2 restart
touch /home/demo/public_html/testapp/tmp/restart.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment