Monday, September 30, 2013

Upgrade Redmine from 2.0.3 to 2.3.3, ruby 1.9.1 to 2.0

1.First backup everything:

1.1 backup database
1.2 backup redmine folder
1.3 backup /usr/local/ if you installed ruby manually.

2.Stop httpd service:

service httpd stop

3.Upgrade Rails version to 3.2.13

4.Remove ruby 1.9.1

rm -rf /usr/local/lib/ruby/1.9.1/
rm -rf /usr/local/lib/ruby/gems/1.9.1/
rm -rf /usr/local/include/ruby-1.9.1/

5.Install ruby 2.0

tar -xzvf ruby-2.0.0-p247.tar.gz
cd ruby-2.0.0-p247
make install
ruby -v
which ruby

6.Copy redmine config file to New stable 2.3.3

tar -xzvf redmine-2.3.3.tar.gz

cp /var/lib/redmine/config/database.yml ./config/database.yml
cp /var/lib/redmine/config/configuration.yml.example ./config/configuration.yml
cp /var/lib/redmine/files/* ./files/
rm ./files/

7.Copy plugins (version >= 2.0)

cp -r /var/lib/redmine/plugins/ ./plugins/

8.Re-compile passenger:

gem install passenger --no-rdoc --no-ri

9.Configure Apache mode: /etc/httpd/conf.d/passenger.conf

# Passenger Basic Setting
LoadModule passenger_module /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.19/buildout/apache2/
PassengerRoot /usr/local/lib/ruby/gems/2.0.0/gems/passenger-4.0.19
PassengerDefaultRuby /usr/local/bin/ruby

10.Re-check redmine for Apache: /etc/httpd/conf.d/redmine.conf

ServerName localhost
DocumentRoot "/var/www/redmine-2.3.3/public/"

# This relaxes Apache security settings.
AllowOverride all
# MultiViews must be turned off.
Options -MultiViews

ErrorLog logs/redmine-error_log
CustomLog logs/redmine-access_log common

11.clear the cache and the existing sessions:

rake tmp:cache:clear
rake tmp:sessions:clear

12.ReStart httpd service:

service httpd start

13.Check the error log

cat /var/log/httpd/redmine-error_log

14.Check daily backup tasks


  1. Link exchange is nothing else however it is only placing the
    other person's blog link on your page at appropriate place and other person will also do similar in support of you.

  2. Nice weblog right here! Also your web site quite a bit up fast!
    What web host are you using? Can I get your associate hyperlink
    on your host? I desire my site loaded up as fast as yours lol

  3. Hello there, just became aware of your blog through Google, and found that it's really informative.
    I'm going to watch out for brussels. I'll be grateful if you continue this in
    future. Many people will be benefited from your writing.

  4. Thanks there. This blog hosting on

  5. Have you ever thought about publishing an ebook or guest authoring on other blogs?
    I have a blog based upon on the same information you discuss and would really
    like to have you share some stories/information. I know
    my audience would value your work. If you're even remotely interested, feel
    free to shoot me an e mail.

  6. I every time emailed this web site post page to all my friends, because if like to read it afterward my friends will