1. In cPanel (as a user) create MySQL database, create MySQL user and Add user to Database granting all permissions.

 

2. Create a new application with ‘Setup Ruby Application’ menu, use Ruby version 2.2. Domain root or any subdirectory can be used.

 

3. After the application created, add the following modules with the proper version for each.

bundle
bundler#1.9.9
rails#4.2.7.1

 

Click Update. It will take about 2 minutes to have them and dependent modules installed.

 

4. Install ImageMagick-devel for rmagick gem:

$yum install ImageMagick-devel

        

Deploying Redmine

 

1. Log in to server as user (ssh or su -):

$su-l-s/bin/bash redtest

 

2. Download the latest Redmine:

$wget http://www.redmine.org/releases/redmine-3.3.1.tar.gz

 

3. Unpack it and move to the chosen application directory (called redmine in our example):

$tar xfz redmine-3.3.1.tar.gz
$cp-rp redmine-3.3.1/*redmine/

 

4. Fill out database credentials that we created with cPanel:

$cd redmine
$cp config/database.yml.example config/database.yml
$vi config/database.yml

 

 

5. Activate Ruby environment:

$source~redtest/rubyvenv/redmine/2.2/bin/activate

 

 

6. Install the modules needed by Redmine:

$bundle install--without development test

 

7. Redmine stores session data in cookies by default, which requires a secret token to be generated. Do it and create database structure:

$bundle exec rake generate_secret_token
$bundle exec rake db:migrate RAILS_ENV="production"

 

First login

 

Open Redmine location URL in the browser ( http://redtest.com/red3/ in our example). Use the default administrator account to log in:

login: admin
password: admin

 

2. Change your password to a new one with the proposed form.

 

3. Go to Administration on the top, choose preferred language and load the default configuration:

 

Ця відповідь Вам допомогла? 28 Користувачі, які знайшли це корисним (81 Голосів)