October 22, 2017

Installing Redmine & Subversion on CentOS 5.5

In this CentOS 5.5 tutorial we will be installing Redmine and Subversion with LDAP authentication on a CentOS 5.5 i386 server. The assumption is that you have a basic to medium understanding of Apache and MySQL but if you follow this tutorial you should be able to complete the task successfully. A bit on the software that we’ll be using:

Redmine is a flexible project management web application. Written using Ruby on Rails framework, it is cross-platform and cross-database. An online demo can be found here:

Subversion is a free/open-source version control system. That is, Subversion manages files and directories, and the changes made to them, over time. This allows you to recover older versions of your data, or examine the history of how your data changed.

Preliminary Note:
I am using a CentOS 5.5 i386 base installation in this tutorial.

* svn.how2centos.com (IP CentOS 5.5 i386 base installation
* ldap.how2centos.com (IP CentOS 5.5 i386 base installation
* redmine.how2centos.com (IP CentOS 5.5 i386 base installation

Lets begin by installing the framework required by the Redmine, Subversion and LDAP platform.

Next a couple of Ruby Gems

Now lets add the software to startup and start MySQL and Apache.

Configure Thin

(application-name) = redmine
(rails-app-root-path) = /opt/redmine
(number-of-threads) = 3
(environment) = production

Download, install and configure the Redmine framework.

Configure Apache and add a Redmine config file

NameVirtualHost *:80

Setup Redmine to email

Start thin and Redmine

Create a Subversion repository and start the SVN deamon

Add a Subversion Apache configuration file

Restart Apache for changes to take effect

Browse to newly setup Redmine and Subversion setup


  • Didi

    Just as a little note, I is quite dangerous to install epel and rpmfoge without the priorities plugin. As these might get into the way of each other and render your system useless.

    Have you thought about adding this to the centos-wiki? Just drop a mail to the ML.

    Cheers Didi

  • How2CentOS

    Thanks for the heads up Didi!

    For those of you that don't know about the priorities plug-in install it like so:
    # yum install yum-priorities

  • Judd

    thin config -C /etc/thin/redmine.yml -c /opt/redmine –servers 3 -e production

    is wrong. ‘-servers’ switch is really ‘-s’

    rmagick is never built or installed in these instructions.

  • Judd
  • Anonymous

    Using the ‘–servers’ switch is not wrong

    # thin –help

    Cluster options:
    -s, –servers NUM Number of servers to start

    RMagick (to enable Gantt export to png image) wasn’t installed in this How To because it’s an optional extra.

  • shams

    I’ve follow your guide

    [Wed Sep 08 23:52:25 2010] [error] (EAI 2)Name or service not known: Could not resolve host name *:80=”” — ignoring!
    Syntax error on line 21 of /etc/httpd/conf.d/svn.conf:
    directive requires additional arguments

  • shams

    I manage to follow the guide until Restart Apache for changes to take effect
    # Service httpd restart

    end up with the below error

    Starting httpd: [Wed Sep 08 23:52:25 2010] [warn] module dav_svn_module is already loaded, skipping
    [Wed Sep 08 23:52:25 2010] [warn] module authz_svn_module is already loaded, skipping
    [Wed Sep 08 23:52:25 2010] [error] (EAI 2)Name or service not known: Could not resolve host name *:80=”” — ignoring!
    Syntax error on line 21 of /etc/httpd/conf.d/svn.conf:
    directive requires additional arguments

    could anyone help me on this. Thank you.

  • Anonymous

    Apologies there was a typo in the configuration. I have updated the config, please try again.

  • lauro


    on /opt/redmine/config/database.yml

    1 production:
    2 adapter: mysql
    3 database: redmine
    4 host: redmine
    5 username: redmine
    6 password: redmine
    7 encoding: utf8

    Is it correct to use host=redmine ? It should not be localhost or the hostname ?

  • Luke Strickland

    localhost or where ever your databases are.

  • Madhoo

    It was of great help but faced issues when tried with latest Redmine version. Please modify it based on the latest version of Redmine. Will try to consolidate the changes i had to do and post.

  • GrannySmith9929

    Many thanks guys for an excellent post.

    Hi Madhoo! I’m having some probs also trying to install the latest Redmine version (1.1.2) which the documentation says needs ruby 1.8.6, 1.8.7 | Rails 2.3.11 | Rack 1.1.0.

    I had to revert to Rack 1.0.1 and Gems 1.4.2 in order for the “RAILS_ENV=production rake db:migrate” command to work – but not sure if that messed up other things as a result, because when I browse to redmine.mydomain.com, there’s no index so I just get a “403 error – forbidden to access /” page.

    Did you get any joy getting latest Redmine to install?

  • GrannySmith9929

    Small comment for above:

    “Service httpd restart” –> should be “service httpd restart”

    I had to manually create the folders before this command would work: “svnadmin create /opt/svn/repo”