Redmine is commonly used as project management web application. Written with Ruby on Rails framework, it is cross-platform and cross-database.

You can install redmine from your cpanel >> ruby and rails option.

Please follow the steps for Redmine installation:

make sure that your server is having shell access enabled.

1 Login yo your cpanel with http://domain.com:2082 and create database for redmine
from database management area .

2. New database named “redmine”. This will actually result in a database named “username_redmine” , username username_admin and password .

3. You will need to give the admin user access to the redmine database. This is done in the “Add User to Database” section. Just select the “username_redmine” database in the User drop down and then “username_admin” in the Database dropdown. Then click Add to give “All Privileges” to database.


4.Now from Ruby on Rails section , Create a new Rails application by entering “redmine” into the App Name box, select “Load on boot”, and then click Create. Make a note of the path for the application, for me it was ~/rails_apps/redmine .
If the status of the added application is “Running” just Stop button to stop it.

5. Login to shell with either root if you have root access OR ssh -p [port] cpanelusername@domainname.com

6. go to directory /home/username/rails_apps/redmine/ and remove everything from that directory. Before deleting Just make sure you are in the right directory.

7. check redmine with [url=http://www.redmine.org/[/url] and use the table to figure out which version of redmine you need. Just download the latest version you need as a tar.gz archive.
OR
you can download with

wget http://rubyforge.org/frs/download.ph...e-0.8.1.tar.gz

8. copy the redmine tar.gz (redmine-0.8.1.tar.gz ) to your /rails_apps/redmine folder.

HTML Code:
cd /home/username/rails_apps/redmine/ 

cp ~/redmine-0.8.1.tar.gz ./

tar -zxvf redmine-0.8.1.tar.gz

mv * ..
cd ..
rmdir redmine-0.8.1
rm redmine-0.8.1.tar.gz
Now we need to make the changes with configuration
files a bit for Redmine to work properly. First open up the config/environment.rb file and comment out the line that says “RAILS_GEM_VERSION = ‘2.1.2′ unless defined? RAILS_GEM_VERSION” by putting a # in front of it.

HTML Code:
 vi config/environment.rb

#RAILS_GEM_VERSION = ‘2.1.2′
save and quit

copy the config/database.yml.example file to config/database.yml.

HTML Code:
#cp config/database.yml.example config/database.yml
Now we need to edit that file to user our database

HTML Code:
#vi config/database.yml

production:
  adapter: mysql
  database: username_redmine
  host: localhost
  username: username_admin
  password: qwerty
  encoding: utf8
You should only need to edit the database, username, and password lines. then save and quit

Redmine stores information in cookies, so a session store needs to be set up. This also differs if you are using a different version of Redmine, so just check the manual.
Generate a session store secret. This is required on the trunk version of Redmine at

HTML Code:
rake generate_session_store

RAILS_ENV=production rake config/initializers/session_store.rb

RAILS_ENV=production rake db:migrate
Insert default configuration data in database, by running the following command:

HTML Code:
RAILS_ENV=production rake redmine:load_default_data
You need to create a Rewrite for your Redmine install which allows you to use a directory to access your Redmine install, as opposed to having to type a url like http://www.domainname.com:12010/]

To do this, go back to the Ruby on Rails section of your cPanel page. click Create Rewrite for your redmine application.

Enter the corrent path of directory on the end of your url (if using a subdirectory) or select the proper subdomain and click Save.

Now just click Start for the redmine application and you should be up and running.

26. For the rewrite to work properly in all cases, we need to go back to the shell and make one more edit. Whichever directory you decided to have the rewrite use, whether it be for a subdomain or just a directory, there should be a .htaccess file. For me this was located at vi home/username/public_html/check/, Open that file .htaccess. and copy the last line that says


HTML Code:
RewriteRule ^/?$ “http\:\/\/127\.0\.0\.1\:12010%{REQUEST_URI}” [P,QSA,L] we change it ^/?$ to ^(.*)$.
Make sure that you have enabled port 12010 in your server firewall.