Project

General

Profile

Overview

  1. Install Ruby Version Manager (RVM)
  2. Install web server modules
    • yum install -y httpd-devel libcurl-devel apr-devel apr-util-devel mod_ssl
       
  3. Install graphic design, and video editing modules
    • yum install -y ImageMagick ImageMagick-devel
       
  4. Download redmine-5.0.1 in folder of "/usr/local"
  5. Install bundler and gems defined in the Gemfile file in "/usr/local/redmine-5.0.1/" folder
    • cd /usr/local/redmine-5.0.1/
    • gem install bundler -v 2.4.22
    • gem install mysql2 -v '0.4.10' --source 'https://rubygems.org/'
    • bundle install --without development test
    • bundle exec rake generate_secret_token
       
  6. Install MYSQL server
  7. Redmine configuration
    • cd /usr/local/redmine-5.0.1/config
    • cp database.yml.example database.yml
    • vi database.yml (View and edit and save it)
    • vi environment.rb (View and edit and save it)
       
  8. Export Database and convert character set at old server
    • Export data from old server
      • mysqldump -ubitnami -p7ddb8931e3 --opt --skip-set-charset --default-character-set=latin1 bitnami_redmine > /home/etpm/redmine.sql
    • Convert the exported data from latin character set to utf8mb4 since new version of Mysql is using it
      • perl -i -pe 's/DEFAULT CHARACTER SET latin1/DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci/' /home/etpm/redmine.sql
      • perl -i -pe 's/DEFAULT CHARSET=latin1/DEFAULT CHARSET=utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC/' /home/etpm/redmine.sql
         
  9. Create Database and import data at new server
    • Login to mysql server
      • mysql -uroot -p
    • Create database and user privileges after login
      • CREATE DATABASE redmine CHARACTER SET utf8mb4;
      • CREATE USER 'redmine'@'localhost' IDENTIFIED BY '3C0$2Ol3';
      • GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost';
    • Import data
      • mysql -v -uredmine -p3C0$2Ol3 redmine < redmine.sql
    • Rebuild the table structures on new database
      • cd /usr/local/redmine-5.0.1/
      • run bundle exec rake db:migrate
      • run bin/rake redmine:plugins:migrate
         
  10. Apache configuration for Redmine
    • Copy redmine.conf to Apache conf folder (/usr/local/apache-2.4.34/conf)
    • Add the follow line in /usr/local/apache-2.4.34/conf/httpd.conf file at the end of file
      • Include conf/redmine.conf
         
  11. Create passenger_module to be used by Apache
    • gem install passenger
    • cd /usr/local/rvm/gems/ruby-2.6.6/gems/passenger-6.0.19/bin
    • ./passenger-config validate-install
    • ./passenger-install-apache2-module
    • Note : After successful, the mod_passenger.so will be gerenated at /usr/local/rvm/gems/ruby-2.6.6/gems/passenger-6.0.19/buildout/apache2/

Members

Manager: Chong-Ting

Developer: Chong-Ting