install redmine

From WebHostingNeeds.com
Jump to: navigation, search
mkdir /home/redmine
svn co http://redmine.rubyforge.org/svn/trunk /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

production:

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


Install RubyOnRails

http://rubyonrails.org/download

Install Ruby

cd /usr/local/src
wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.tar.gz
tar -zxvf ruby-1.8.7.tar.gz
cd ruby-1.8.7
./configure
make
make install


Install RubyGems

http://rubyforge.org/frs/?group_id=126

cd /usr/local/src
wget http://rubyforge.org/frs/download.php/55066/rubygems-1.3.2.tgz
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

http://localhost:3000


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