This is a snap, here’s the short short version:
as root (or add sudo to the front of this)
apt-get install curl git-core build-essential libncurses5-dev zlib1g-dev libssl-dev libreadline-dev libcurl4-openssl-dev apache2 apache2-threaded-dev mysql-server mysql-client
System wide rvm install:
sudo bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
logout and log back in
rvm install 1.9.2
rvm use 1.9.2 --default
gem install rails passenger
passenger-install-apache2-module
Add lines from the end of that script to apache config /etc/apache2/mods-available/passenger.load
They'll look a little like this depending on current version when you run it:
LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.11
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.2-p290/ruby
Then wrap things up:
a2enmod passenger
service apache2 restart
Good admins will then set a MySQL password with
mysqladmin password new-password

