Installation Redmine

Installation Passenger apache module:

$ sudo apt-get install libapache2-mod-passenger

The package with Ubuntu 10.04 is stuck in the 0.9.x branch and Ubuntu 12.04 is stuck in the 1.3.x branch.
A PPA exists that has the latest branch here: https://launchpad.net/~ondrej/+archive/redmine
To install redmine using the PPA:

sudo add-apt-repository ppa:ondrej/redmine
sudo apt-get update
sudo apt-get install redmine redmine-mysql

Konfiguration

Symlink /usr/share/redmine/public to your desired web-accessible location. E.g.:

sudo ln -s /usr/share/redmine/public /var/www/redmine

By default, passenger runs as ‘nobody’, so you’ll need to fix that. In

/etc/apache2/mods-available/passenger.conf

add:

PassengerDefaultUser www-data

Rechte auf Redmine korrekt setzen

sudo chown -R www-data /usr/share/redmine

Datei redmine im Verzeichnis

/etc/apache2/sites-available/

erstellen:

NameVirtualHost *
<VirtualHost *>
        ServerName redmine.intelli.ch
        ServerAdmin ralph@intelli.ch
        DocumentRoot /mnt/WebData/redmine/public
        ErrorLog /var/log/apache2/redmine-error_log
        CustomLog /var/log/apache2/redmine-access_log combined
        RailsEnv production
        RailsBaseURI /redmine
        PassengerResolveSymlinksInDocumentRoot on        
        <Directory /mnt/WebData/redmine>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>

Enable passenger:

sudo a2enmod passenger

Restart apache2

sudo service apache2 restart