Artur Krzywanski

Apache2 + Passenger

by Artur on Dec.17, 2009, under All

Phusion Passenger™— a.k.a. mod_rails or mod_rack — makes deployment of Ruby web applications, such as those built on the revolutionary Ruby on Rails web framework, a breeze. It follows the usual Ruby on Rails conventions, such as “Don’t-Repeat-Yourself”.

Installation is fairly simple:

user@computer:$ gem install passenger

then:

user@computer:$ passenger-install-apache2-module

If you see “OpenSSL support for Ruby… not found” error message you have to add OpenSSL to Ruby

user@computer:$ cd /usr/local/src/ruby-1.8.7-p174/ext/openssl
ruby extconf.rb
make
make install

Install all other missing packages as required then add following lines to /etc/apache2/apache2.conf

LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.8/ext/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-2.2.8
PassengerRuby /usr/local/bin/ruby

Restart Apache

user@computer:$ /etc/init.d/apache2 restart

Other installation methods can be found here

Bookmark and Share

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...