please refer official wiki:
http://www.redmine.org/projects/redmine/wiki/RedmineInstall
1,check version
I use ubuntu12.04 to deploy redmine 2.3.0, and the corresponding rails version is 3.2.13
2,install rvm
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
source /etc/profile.d/rvm.sh
3,install ruby
rvm install 1.9.3
4,install rubygems
rvm rubygems latest
5,modify gem repository
gem sources --remove http://rubygems.org/
gem sources -a http://ruby.taobao.org/
gem sources -l
*** CURRENT SOURCES ***
http://ruby.taobao.org
# make sure only : ruby.taobao.org
6,install rails
gem install rails -v 3.2.13
7,download redmine-2.3.3.tar.gz
tar xzvf redmine-2.3.3.tar.gz
cd redmine-2.3.3
8,install mysql
apt-get install mysql-server libmysqlclient-dev
9,Create an empty database and accompanying user
CREATE DATABASE redmine CHARACTER SET utf8;
CREATE USER 'redmine'@'localhost' IDENTIFIED BY 'my_password';
GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';
10, Database connection configuration
Copy config/database.yml.example to config/database.yml and edit this file in order to configure your database settings for "production" environment
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password: my_password
11,Dependencies installation
apt-get install libxslt-dev libxml2-dev
gem install bundler
bundle install --without development test
(if too slow, you can modify redmine/Gemfile, change the first line with source 'http://ruby.taobao.org')
12,Session store secret generation
rake generate_secret_token
13,install libopenssl-ruby
apt-get install libopenssl-ruby
13,Database schema objects creation
RAILS_ENV=production rake db:migrate
14, Database default data set
RAILS_ENV=production rake redmine:load_default_data
15,File system permissions
mkdir -p tmp tmp/pdf public/plugin_assets
sudo chmod -R 755 files log tmp public/plugin_assets
16,Test the installation
ruby script/rails server webrick -e production
17,Once WEBrick has started, point your browser to http://localhost:3000/. You should now see the application welcome page