Project

General

Profile

Redmine 0.8.5, Passenger, Ubuntu9.04, Apache2.2.... a recipe

Added by John Fisher about 15 years ago

I posted here about my installation problems:
http://www.redmine.org/boards/2/topics/8655

and in addition I got "no route matches"
ActionController::RoutingError (No route matches "/plugin_assets/redmine_issues_group/stylesheets/stylesheet.css" with{:method=>:get}):
and for "/stylesheets/jstoolbar.css"
and for "/javascripts/application.js" and so on....

The goal was to use Apache without mongrel or WEBrick as there are other, non-Rails, web apps on this server.

here is my successful recipe:

starting with a 9.04 Ubuntu server, running Apache2.2 and Mysql and
Ruby in the usual way, with build tools installed, and root access:

install the Redmine app following their directions

apt-get install rubygems1.8
run "gem install rubygems-update"
run "update_rubygems" note: this will clean out your gems
run "gem install rails --VERSION=2.1.2" required by Redmine app
run "gem install mysql"
run "gem install passenger"
run "passenger-install-apache2-module" follow instructions

restart Apache

####################

heres the relevant part of my default configuration file from apache2/
sites-available:

LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/
passenger-2.2.5/ext/apache2/mod_passenger.so

<VirtualHost *:80>
ServerAdmin
ServerName redmine.example.com
DocumentRoot /var/www/redmine/public/
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.2.5
PassengerRuby /usr/bin/ruby1.8

&lt;Directory "/var/www/redmine/public/"&gt;
Options Indexes +ExecCGI FollowSymLinks
Order allow,deny
Allow from all
&lt;/Directory&gt;
ErrorLog /var/log/apache2/error.log
LogLevel debug

</VirtualHost>

#############

and heres the .htaccess file........

Options +FollowSymLinks +ExecCGI
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
RewriteEngine On

RewriteRule $ index.html [QSA]
RewriteRule ^([
.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f

ErrorDocument 500 "<h2>Application error</h2>Rails application
REDMINE failed to start properly"

##############

and here's what gem says I have:

  • LOCAL GEMS ***

actionmailer (2.3.4, 2.1.2)
actionpack (2.3.4, 2.1.2)
activerecord (2.3.4, 2.1.2)
activeresource (2.3.4, 2.1.2)
activesupport (2.3.4, 2.1.2)
fastthread (1.0.7)
mysql (2.8.1)
passenger (2.2.5)
rack (1.0.0)
rails (2.1.2)
rake (0.8.7)
rubygems-update (1.3.5)

########################

and heres what dpkg says I have for ruby:

root@dizzy:/var/www/redmine/public# dpkg -l |grep ruby
libapache-ruby1.8 1.2.6-2
libapache2-mod-ruby 1.2.6-2
libbreakpoint-ruby1.8 0.5.1-2
libbuilder-ruby1.8 2.1.2-1
libcmdparse2-ruby1.8 2.0.2-2
libdaemons-ruby1.8 1.0.10-2
liberb-ruby 4.2
libfcgi-ruby1.8 0.8.7-4.1
liblog4r-ruby1.8 1.0.5-7
libmmap-ruby1.8 0.2.6-3
libmocha-ruby1.8 0.9.0-1
libncurses-ruby1.8 1.1-3
libopenssl-ruby1.8 1.8.7.72-3ubuntu0.1
libreadline-ruby1.8 1.8.7.72-3ubuntu0.1
libredcloth-ruby1.8 3.0.99.0.svn.20060519-1
libruby 4.2
libruby1.8 1.8.7.72-3ubuntu0.1
libsqlite3-ruby1.8 1.2.4-2
libxml-simple-ruby 1.0.11-2
rake 0.8.1-3
rdoc 4.2
ruby 4.2
ruby1.8 1.8.7.72-3ubuntu0.1
ruby1.8-dev 1.8.7.72-3ubuntu0.1
ruby1.8-examples 1.8.7.72-3ubuntu0.1
rubygems-doc 1.3.1-1
rubygems1.8 1.3.1-1