Note. Provided instructions are valid for older Redmine version 2.6.0 . New versions guide could be found at http://kb.cloudlinux.com/2016/12/how-to-run-redmine-with-ruby-selector/
1. In cPanel create MySQL database and add user to it. In the example given, the databace redminet_redmine was created and user redminet_redmine was added.
2. In Setup Ruby App section create an application.
App Directory is the directory where all static files will be placed (e.g. redmine).
App URI is web-interface URL (e.g. redmine web-interface will be located in YOUR_DOMAIN/redmine).
3. After the application was created, add the following modules:
bundle, i18n#0.6.11, builder#3.0.4, rails#3.2.19, mime-types#1.25.1, mocha#1.0.0, jquery-rails#3.1.2, coderay, fastercsv, request_store, rbpdf, mysql2, selenium-webdriver, rmagick, shoulda#3.3.2, ruby-openid#2.3.0, request_store#1.0.5, capybara#2.1.0, net-ldap#0.3.1, rack-openid, shoulda-matchers#1.4.1, redcarpet#2.3.0, yard, rake#10.4.2, bigdecimal.
Note: If error occurs while installing rmagic module, then you need to install ImageMagick-devel package on your server:
The installation process takes quite along time, about 7-8 minutes. When done, click Restart button to restart the application.
3.1 Alternatively, after the application was created, you can add only one module - bundle.
4. Enter the server via SSH, using your cPanel account.
Download the application http://www.redmine.org/projects/redmine/wiki/Download.
In the description given, the latest version Redmine (2.6.0) is assumed.
tar xzf redmine-2.6.0.tar.gz
Hereinafter 'redmine' is App Directory meaning which was specified while setting Ruby application.
cp -R ~/redmine-2.6.0/* ~/redmine
cp database.yml.example database.yml
Edit config/database.yml - add MySQL database connection settings to Production section.
cp -R ~/redmine/public/* ~/public_html/redmine/
cat htaccess.fcgi.example >> .htaccess
cp dispatch.fcgi.example dispatch.fcgi
Go to cd ~/redmine directory.
Add gem "bigdecimal" line into Gemfile file.
~/rubyvenv/redmine/2.1/bin/bundle install (if running the alternative installation)
RAILS_ENV=production ~/rubyvenv/redmine/2.1/bin/rake db:migrate - Database migration;
RAILS_ENV=production ~/rubyvenv/redmine/2.1/bin/rake redmine:load_default_data - Loading default data into database.