How to install Redmine with passenger on Ubuntu 10.10

$ sudo apt-get install redmine redmine-mysql subversion
$ sudo ln -s /usr/share/redmine/public /var/www/redmine
$ sudo apt-get install ruby1.8-dev
$ sudo gem install passenger
$ sudo /var/lib/gems/1.8/bin/passenger-install-apache2-module
$ sudo apt-get install build-essential libcurl4-openssl-dev
libssl-dev apache2-prefork-dev libapr1-dev libaprutil1-dev

The Apache 2 module was successfully installed.
Please edit your Apache configuration file, and add these lines:

   LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-
   PassengerRoot /var/lib/gems/1.8/gems/passenger-3.0.2
   PassengerRuby /usr/bin/ruby1.8

After you restart Apache, you are ready to deploy any number of Ruby on Rails
applications on Apache, without any further Ruby on Rails-specific
Virtual Host
To serve the Rails application, we need to create a virtual host:

sudo nano /etc/apache2/sites-available/testapp
Although already mentioned, one of the exciting things about mod_rails is that you don’t need any special settings in the virtual host configuration.

The contents can be as simple as this:

DocumentRoot /home/demo/public_html/testapp/public
Of course, you can add custom log file locations and other settings but the main thing to understand is the lack of proxy and port settings.

Once done, we can enable the new site:

sudo a2ensite testapp

This entry was posted in Ubuntu. Bookmark the permalink.

Leave a Reply