Its document management system tool

Package Requirement:-

apache:- 2.0 or above
MariaDB:-5.6 or above

Step1. Install packages

yum install curl zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel 
yum install mysql-devel ftp wget ImageMagick-devel gcc-c++ patch readline readline-devel zlib 
yum install libyaml-devel libffi-devel make bzip2 autoconf automake libtool bison subversion sqlite-devel
yum install mariadb-server

Step2. Start service

systemctl start mariadb.service

Step3. Setup database


Step4. Create database

mysql -uroot -p
MariaDB [(none)]> CREATE DATABASE redmine CHARACTER SET utf8;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON redmine.* TO 'redmine'@'localhost' IDENTIFIED BY 'redmine_password';
MariaDB [(none)]> \q

Step5. Add user and set permission

adduser -d /opt/redmine -s /bin/bash -c 'Redmine application' redmine
install -d -m 755 -o redmine -g redmine /opt/redmine

Step6. Download keys

su – redmine
curl -sSL | gpg2 --import -
curl -sSL | gpg2 --import -

Step7. Install rvm

rvm install "ruby-2.6.0"
rvm docs generate-ri

Step8. Create link

source ~/.rvm/scripts/rvm

Step9. Check version

rvm --default use ruby
ruby –version   ----Not running -- New Changes

Step10. Download redmine

cd && svn co redmine
mkdir -p ./redmine/tmp/pids ./redmine/public/plugin_assets

Step11. Setup config and database file

cp ./redmine/config/configuration.yml.example ./redmine/config/configuration.yml
cp ./redmine/config/database.yml.example ./redmine/config/database.yml
vi database.yml
   adapter: mysql2
   database: redmine
   host: localhost
   username: redmine
   password: "redmine_passwd"
   encoding: utf8

Step12. Setup gem

cd /opt/redmine/redmine
echo "gem 'puma'" >> Gemfile.local
echo "gem: --no-ri --no-rdoc" >> ~/.gemrc 
gem install bundler
bundle install --without development test postgresql sqlite

Step13. Run commads to migrate all database tables

rake generate_secret_token
RAILS_ENV=production rake db:migrate

Step14. Create file puma.rb

vim ./redmine/config/puma.rb
!/usr/bin/env puma

application_path = '/opt/redmine/redmine'
directory application_path
environment 'production'
daemonize true
pidfile "#{application_path}/tmp/pids/"
state_path "#{application_path}/tmp/pids/puma.state"
stdout_redirect "#{application_path}/log/puma.stdout.log", "#{application_path}/log/puma.stderr.log"
bind "tcp://"

Step15. Start redmine

cd /opt/redmine/redmine/ && bundle exec puma --config config/puma.rb

Step16. Access via browser


For Live Installation you may refer below youtube link:-


Please enter your comment!
Please enter your name here