-->Update rubygems In some cases the your system will still be using rubygems 1.5, but you will need a later version. Check which version is installed by typing:
$ gem --version
If the version is 1.5: update rubygems
gem install rubygems-update
cd /var/lib/gems/1.8/bin
sudo ./update_rubygems
Download Redmine into /user/share/redmine directory
$ sudo svn co http://redmine.rubyforge.org/svn/branches/1.3-stable /usr/share/redmine
Create an empty MySQL database and accompanying user named redmine for example.
$ mysql -u root -p
(enter the mysql root user password)
> create database redmine character set utf8;
> create user 'redmine'@'localhost' identified by '[password]';
> grant all privileges on redmine.* to 'redmine'@'localhost' identified by '[password]';
> exit
Copy config/database.yml.example to config/database.yml and edit this file in order to configure your database settings for "production" environment.
$ sudo cp /usr/share/redmine/config/database.yml.example /usr/share/redmine/config/database.yml
$ sudo nano /usr/share/redmine/config/database.yml
Modify to the following and save (ctrl+x)
production:
adapter: mysql
socket: /var/run/mysqld/mysqld.sock
database: redmine
host: localhost
username: redmine
password: [password]
encoding: utf8
Generate a session store secret.
$ cd /usr/share/redmine
$ sudo rake generate_session_store
Create the database structure, by running the following command under the application root directory:
$ cd /usr/share/redmine
$ sudo rake db:migrate RAILS_ENV="production"
Insert default configuration data in database, by running the following command:
$ cd /usr/share/redmine
$ ruby script/server webrick -e production
Point your web browser at http://[my server ip]:3000
You should now see the application welcome page.