Skip to content

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.

%d bloggers like this: