2009
12.17
12.17
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
You will also need to run apache2 dev package (for threaded, worker version):
user@computer:$ apt-get install apache2-threaded-dev
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
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
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
No Comment.
Add Your Comment