Redmine ubuntu11.04 installation

http://docs.oseems.com/general/web/redmine/install-in-ubuntu

  • Install packages

sudo apt-get install redmine redmine-mysql subversion apache2 mysql-server libapache2-mod-passenger

  • Configure MySQL

When installing the MySQL server package, you'll be required to set the root password.

  • Configure Redmine database

During Redmine package installation, you'll come to these configuration windows.
Select Yes to configure it with dbconfig-common
Select database backend
You'll then be presented with the a list of supported and available database backend.
Select MySQL and press enter.
Provide MySQL root access

  • You'll be asked to enter login credential to your MySQL database.

Enter MySQL root password and press enter.

  • Set Redmine database password

You'll need to configure the password for your Redmine installation.

  • Configure dispatcher
  • Add the following lines to the file /usr/share/redmine/public/dispatch.cgi

#!/usr/bin/ruby
require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT)
require "dispatcher"
ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } if defined?(Apache::RubyRun)
Dispatcher.dispatch

  • Configure file, directory and permissions

sudo mkdir /usr/share/redmine/log /usr/share/redmine/tmp
sudo chown 'username' /usr/share/redmine/log /usr/share/redmine/tmp

  • The log file need to be created or the service will not start. Run the following command to do just that.

touch /usr/share/redmine/log/production.log

  • These files needs to be given the right permission. Run the following command at the terminal to set the permission.

sudo chmod 644 /etc/redmine/default/session.yml /etc/redmine/default/database.yml