My post on installing RVM Multi-user on CentOS has been fairly well received, so I thought I’d do one for Ubuntu. This install was using Ubuntu Precise 12.04 LTS, RVM 1.21.11, Ruby 2.0, and Rails 4, and Phusion Passenger. First things first. This was a fresh install on AWS so let’s get up to date and install some packages needed for Apache2 / Passenger: sudo apt-get update sudo apt-get upgrade sudo ntpdate pool.ntp.org sudo apt-get install apache2-mpm-worker apache2-threaded-dev libapr1-dev libaprutil1-dev libcurl4-openssl-dev gawk g++ gcc make libc6-dev libreadline6-dev zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake libtool bison pkg-config libffi-dev With that out of the way, let’s start installing rvm.
I’ve been working a lot with nginx and Chef lately. As I work through applications I thought I’d share what I come up with - I’ll be posting a number of articles on how to configure nginx for various platforms -Phusion Passenger, Play Framework, and others. When I have the time I’ll put together the Chef cookbook, otherwise just the nginx configuration files. The first is for Passenger. I’ve written about installing Phusion Passenger before - with RVM and Apache on CentOS 6.
2013-03-23: This is an updated version of a post I wrote a little over a year ago. There have been some security issues with Rails in that time, and some updated versions of nearly all the software involved. Installing RVM Multi-user on CentOS can be a bit tricky. Here’s my documentation - mostly so I remember, but hopefully it helps someone else as well. A quick note - the people behind RVM are clear that tutorials outside their siteare not supported.