Phusion Passenger

Phusion Passenger (informally also known as mod_rails and mod_rack) is a free module for the Apache HTTP Server and nginx for deployment of Ruby applications, including those built using the Ruby on Rails framework. It is available as a Gem package and is supported on Unix-like operating systems. Phusion Passenger also supports arbitrary Ruby web applications that follow the Rack interface.

Phusion Passenger is the “preferred deployment setup” for Ruby on Rails applications, and has been recommended by the Ruby on Rails authors. In combination with Ruby Enterprise Edition, Phusion Passenger claims that it is capable of reducing Rails’s memory consumption by 33% as well as increasing its performance.


Run following commands in terminal.

  1. Install Passenger
    $ gem install passenger

  2. Install Passenger Module for Apache
    $ passenger-install-apache2-module
    After this step press enter.

    Again press enter and install requirements mentioned by software.

  3. After installing these requirements, again run following command
    $ passenger-install-apache2-moduleThe passenger-install-apache2-module script will guide you through what you need to do to get Passenger working.

    It should tell you to copy these lines into your /etc/apache2/apache2.conf:

    LoadModule passenger_module /home/mandy/.rvm/gems/ruby-1.9.3-p327/gems/passenger3.0.18/ext/apache2/
    PassengerRoot /home/mandy/.rvm/gems/ruby-1.9.3-p327/gems/passenger-3.0.18
    PassengerRuby /home/mandy/.rvm/wrappers/ruby-1.9.3-p327/ruby

    Note: Above lines may be different in your case. Check them according to your script instructions.

    After copying, Restart Apache Server buy executing following commands in terminal.

    $ sudo a2enmod rewrite
    $ sudo service apache2 restart

    At last press ENTER and your phusion passenger is installed on your system.


Virtualbox is a tool that provides to run multiple OS’s without rebooting your system. You can install any OS using virtualbox. Its a great tool to run another OS within another OS. For example, If you have installed Ubuntu 12.04 and you want to install Ubuntu 11.10. Then you have option that you can install that alongside Ubuntu 12.04. But with this step you have to reboot each time to switch between different OS’s.

But you can install Ubuntu 11.04 within Ubuntu 12.04 using Virtualbox.

Installation steps for Virtualbox:

  • Step 1
    wget -q -O- | sudo apt-key add –
  • Step 2
    sudo sh -c ‘echo “deb precise contrib” >> /etc/apt/sources.list’
  • Step 3
    sudo apt-get update && sudo apt-get install virtualbox-4.1

Now open dashboard and type virtualbox,

then open that. It looks like below: