This morning, as a result of a hardware failure on my home server, I decided to move my Redmine devtracker to my Linode host.I used:
- Ubuntu Server 8.04 AMD64
- Apache2-prefork 2.2.8
- Passenger 2.0.1
- Ruby Enterprise Edition 1.8.6-20080624
- Redmine 0.7 stable (SVN r1547)
My apache vhost is as follows:
<VirtualHost *:80> ServerName dev.shanesveller.com DocumentRoot /var/rails/redmine-0.7/public <Directory "/var/rails/redmine-0.7/public"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> # Custom log file locations # ErrorLog /var/rails/redmine/log/error.log # CustomLog /var/rails/redmine/log/access.log combined </VirtualHost>
The passage in the middle is there because my CSS styles and images were missing. This is explained in the User’s Guide.
This allows me to serve my Wordpress blog and my Redmine tracker and use about 260MB of RAM. If you take off the buffers and cache memory, it’s actually more like 110MB.
To enable Passenger and RubyEE in Apache, I used the following file in /etc/apache2/conf.d/passenger:
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.0.1/ext/apache2/mod_passenger.so PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.0.1 RailsRuby /opt/ruby-enterprise/bin/ruby
The relevant Ubuntu packages are:
apache2 apache2-prefork-dev apache2-mpm-prefork build-essential ruby1.8-dev ruby ri rake irb rdoc libmysqlclient15-dev libopenssl-ruby