Setting up Passenger with Apache

Medical Technology, Healthcare & Government IT

Category Groups

Passenger with Apache

Passenger helps in deployment of applications developed in Ruby on Rails web framework.


Install Passenger

Set the version ruby to be used

rvm use 1.9.2

Type following command to install passenger

gem install passenger

Following command is used to compile and install passenger apache module.


During the process, it will check for the dependent products, compile and install the product, steps to configure the passenger module in apache and steps to add a virtual host for the ruby on rails web application.

Need to add the following lines to each of site configuration files in which ruby on rails web application will be used.

LoadModule passenger_module /usr/local/rvm/gems/ruby-1.9.2-p318/gems/passenger-3.0.11/ext/apache2/
PassengerRoot /usr/local/rvm/gems/ruby-1.9.2-p318/gems/passenger-3.0.11
PassengerRuby /usr/local/rvm/wrappers/ruby-1.9.2-p318/ruby
Original Link