Another successful Passenger deployment

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:

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

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.