I installed redmine 1.3.2 couple months ago following the following two posts
- http://planetcakephp.org/aggregator/items/6715-installing-redmine-on-ubuntu-1104-wnginx-and-mongrel
- http://blog.ich-wars-nicht.ch/2012/02/ubuntu-redmine-nginx-mongrel-supervisord/
I didn't go with the 1.4.x version of redmine because there is no good tutorial on how to set it up with nginx.
It runs on nginx http server. Uses mongrel to serve the redmine. Uses supervisor to restart the mongrel process in case it dies.
However, a recent update just broke it.
After digging the installing note, I figured out that the unsupported rubygems is the reason. For 1.3.x redmine, supported rubygems versions must be <= 1.7.x
Once knowing that, it was an easy fix then.
apt-get update
apt-get upgrade
apt-get install wget build-essential ruby1.8 ruby1.8-dev irb1.8 rdoc1.8 zlib1g-dev libopenssl-ruby1.8 libopenssl-ruby libzlib-ruby libssl-dev libpcre3-dev
wget http://production.cf.rubygems.org/rubygems/rubygems-1.7.2.tgz
tar -zxvf rubygems-1.7.2.tgz
cd ./rubygems-1.7.2/
ruby setup.rb
ln -s /usr/bin/gem1.8 /usr/bin/gem
Check gems by
gem list
I installed mongrel, mysql, rails, rack, rake, etc, all via gem install with versions specified. You may find the following commands handy
gem install -v=2.3.14 rails
gem install rack -v=1.1.1
gem install rake -v0.8.7
gem install mongrel
gem install mysql
On the first start, you might find out that you need to install more gems
cd /var/www/redmine
rake generate_session_store
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data
ruby script/server -e production
Remember, do not update rubygems! The code below is really bad. Since we didn't install gems via apt-get, apt-get upgrade should be OK.
gem update --system
- 作者:cail
- 版权声明:署名-非商业性使用-禁止演绎 CC BY-NC-ND 3.0
- 原文网址:http://en.dogeno.us/?p=7897
- 最后修改时间:2012年8月1日 05:53 PDT
Previous:
Weekly Tweets for 2012-04-23
Next:
Does my WordPress blog need Memcached?
One Response to “redmine 1.3.x on Ubuntu Lucid with nginx”
Leave a Reply
blog by cail
- » the Paper Link - my latest Creation for PubMed users
- » How to use ImageJ to analyze images?
- » 2shRNA - design oligos for RNAi
- » Play background music
- » about this blog
- » about me
Hot in 'How-To'
- analog - analog/digital - digital, VGA - DVI - HDMI - 74,638 views
- Ez-12 windsurfer antenna - 54,047 views
- Import custom ringtones to iPhone via iTunes (no jailbreaking required) - 47,097 views
- How to add new ringtones to iPhone - 42,510 views
- Use GParted to align partitions on a SSD hard drive for better performance - 41,009 views

Hi. Thanks for mentioning my blogpost. The old page has moved to http://blog.dbrgn.ch/2012/2/21/ubuntu-redmine-nginx-mongrel-supervisord/ though.