Passenger Phusion - mod for rails for Apache

If you have Apache server installed, it can be used to run Web-Trishul without using the Web-Trishul inherent webserver.

  • Download & install passenger from here
  • As instructed during the installation procedure - create a new file say trisul.load in /etc/apache2/mods-enabled & put the following lines
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3
PassengerRuby /usr/bin/ruby1.8
PassengerLogLevel 3
RailsEnv development
  • Create conf file in /etc/apache2/sites-enabled say trisul.conf & put following lines (Replace %path_to_webtrisul_directory% with the path where webtrisul directory is extracted)
Listen 3000
NameVirtualHost *:3000

<VirtualHost *:3000>
   DocumentRoot %path_to_webtrisul_directory%/public
   <Directory "%path_to_webtrisul_directory%/public">
      Options FollowSymLinks
      AllowOverride None
      Order allow,deny
      Allow from all
   </Directory>
</VirtualHost>

  • Thats it :). Restart apache2 & voila Web-Trisul is up & running.
 
install/passenger.txt · Last modified: 2008/10/21 01:19 by ashish
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki