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.
- Install Passenger
$ gem install passenger
- Install Passenger Module for Apache
After this step press enter.
Again press enter and install requirements mentioned by software.
- 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/mod_passenger.so
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.