Project management: Redmine

Table of Contents

Configuration
Apache setup

Apache setup

by ross at 05:05:08 on May 30, 2013

Prepare httpd.conf

Find last LoadModule line in /usr/local/etc/apache22/httpd.conf, add:

LoadModule passenger_module /usr/local/lib/ruby/gems/1.8/gems/passenger-4.0.5/libout/apache2/mod_passenger.so
PassengerRoot /usr/local/lib/ruby/gems/1.8/gems/passenger-4.0.5
PassengerRuby /usr/local/bin/ruby18

Also make sure you have this:

LoadModule suexec_module      libexec/apache22/mod_suexec.so
LoadModule fastcgi_module     libexec/apache22/mod_fastcgi.so

<IfModule fastcgi_module>
    AddHandler fastcgi-script .fcgi
    FastCgiWrapper /usr/local/sbin/suexec
    FastCgiConfig -idle-timeout 600 -restart -pass-header Authorization
</IfModule>

Create virtual host

Create /usr/local/etc/apache22/Includes/redmine.conf:

<VirtualHost *:80>
        ServerName redmine.example.com
        ServerAdmin root@example.com
        DocumentRoot "/usr/local/www/redmine/public"

        ErrorLog "/usr/local/www/redmine/log/redmine.example.com-error.log"
        CustomLog "/usr/local/www/redmine/log/redmine.example.com-access.log" combined

        SuexecUserGroup redmine redmine
</VirtualHost>

<Directory "/usr/local/www/redmine/public">
        Options -MultiViews +FollowSymLinks +ExecCGI
        AllowOverride All
        Order Allow,Deny
        Allow from all
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ dispatch.fcgi
</Directory>

Done

Open redmine.example.com and login as admin, password admin.

Comments