install redmine

Jump to: navigation, search
mkdir /home/redmine
svn co /home/redmine
cd /home/redmine/config
cp database.yml.example database.yml

Now create a database and user.

create database redmine character set utf8;
GRANT ALL ON *.* TO 'redmine'@'localhost' IDENTIFIED BY 'PASSWORD';

Edit database.yml and add the database details

vi database.yml

Under production


adapter: mysql 
database: redmine 
host: localhost 
username: redmine 
password: redmine

Install RubyOnRails

Install Ruby

cd /usr/local/src
tar -zxvf ruby-1.8.7.tar.gz
cd ruby-1.8.7
make install

Install RubyGems

cd /usr/local/src
tar -zxvf rubygems-1.3.2.tgz
cd rubygems-1.3.2
ruby setup.rb

Install Rails

gem install rails -v=2.2.2
gem install mysql
gem install mysql -- --with-mysql-config=/usr/bin/mysql_config

To create tables in database, run

cd /home/redmine/
rake db:migrate RAILS_ENV="production"
rake redmine:load_default_data RAILS_ENV="production"
rake config/initializers/session_store.rb

Create user redmine and set permissions

useradd --shell /sbin/nologin redmine
mkdir tmp public/plugin_assets
chown -R redmine:redmine files log tmp public/plugin_assets
chmod -R 755 files log tmp public/plugin_assets

Installation is complete now.

Start Redmine

cd /home/redmine/
ruby script/server -e production

You will be able to see redmine at


Install mongrel web server for ruby

Install mongrel

gem install mongrel

Start mongrel

cd /home/redmine/
mongrel_rails start -e production -p 3000 -d

To stop mongrel

mongrel_rails stop

To see log, run

tail -f log/mongrel.log