Ruby in Apache using Passenger (Remine Example)

Our community redmine application at UBC Okanagan has become quite popular and Mongrel just wasn't cutting it anymore.  So, I have decided to move the configuration to work under Apache.  Getting apache to run is a super easy task and the examples I am giving here should work under openSUSE and SLE without issue.

The first thing you need to do, if you haven't done so already, is have a working apache server up and running that supports virtual hosts.  Next we need to install passenger

# gem install passenger
# passenger-install-apache2-module

Follow the information on the screen and make sure that you copy and paste the module information required for apache into /etc/apache2/conf.d/passenger.conf

You can also paste the the vhost information provided into your vhost file.

Wasn't that easy.  Now if you were running Redmine under mongrel you will need to go and change the ownership of the redmine files (see the redmine installation guide if you only want to change the required folders)  to the webuser

# chown -R wwwrun:www /srv/redmine

Leave a Reply