Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently installing Ubuntu Server 10.04 in a virtual machine and I am going to run my web app in it so I can see how it runs, etc in a 'production' environment.

What software should be installed and what is the common software/packages installed when hosting a Rails app?

In my real production environment, I am running Ubuntu Server 10.04 64bit, Apache2, PHP5, MySQL and am using Virtualmin to manage the setup on these sites, therefore I want it to imitate the real production web server as it will be deployed to that when the app is ready.

I have installed Passenger on my real production web server. I am just looking for software that I should install in my clean Ubuntu Server.

EDIT: Also is it recommended to use RVM in production?

share|improve this question

Passenger with the Apache module (since you are already running Apache). I'd use RVM to manage your Ruby VM. Use Ruby 1.9.2 if possible. There are instructions on the RVM site for using RVM with Passenger.

share|improve this answer
OK cool. I am looking to learn and use Capistrano as well. Could I run the rvm install script, run the bundle:install and rake db:migrate through the script? I ask this because virtualmin creates a new user for each domain and stores the files in /home/domain/public_html. Thanks – Dean Perry May 14 '11 at 20:17

I'm not sure I understand your question correctly, but I would try to mimic the actual production environment you're targeting.

Depending on your project, add required dependencies for your Rails app to your current stack.

As to RVM, yes. I think it's worth to add it to your setup now. It may seem as an unnecessary burden at first, but in the long run you will save yourself a lot of hassle, especially if you begin to host other Rails apps later on.

share|improve this answer
What I meant was what software should be installed to run Rails, but it doesn't matter now as I have the main setup done. And OK, I will use RVM from now on in production as well. I use it on my Mac for developing the apps and it's very useful to have the separate gemsets so they don't conflict with each other – Dean Perry May 13 '11 at 22:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.