How to Install and Configure Redmine on CentOS 8 - MS TV Life.COM

How to Install and Configure Redmine on CentOS 8

How to Install and Configure Redmine on CentOS 8

Redmine is a free and open-source challenge administration and concern monitoring utility. It’s cross-platform and cross-database and constructed on high of the Ruby on Rails framework.

Redmine contains assist for a number of tasks, wikis, concern monitoring system, boards, calendars, e-mail notifications, and far more.

How to Set Up Apache Virtual Hosts on Debian 10

This tutorial explains easy methods to set up and configure the newest model of Redmine on CentOS 8. We’ll use MariaDB as a database back-end and Passenger + Apache as a Ruby utility server.

Conditions #

Guarantee that you’ve met the next conditions:

Making a MySQL database #

Redmine helps MySQL/MariaDB, Microsoft SQL Server, SQLite 3, and PostgreSQL. We’ll use MariaDB as a database back-end.

When you don’t have MariaDB or MySQL put in in your CentOS server, you’ll be able to set up it by following these directions.

Login to the MySQL shell utilizing the next command:

sudo mysql

From throughout the MySQL shell, run the next SQL statements to create a brand new database, new consumer, and grant the consumer entry to the database:

CREATE DATABASE redmine CHARACTER SET utf8;GRANT ALL ON redmine.* TO 'redmine'@'localhost' IDENTIFIED BY 'change-with-strong-password';

Be sure you change change-with-strong-password with a powerful password.

As soon as completed, exit the MySQL shell:


Putting in Passenger, Apache and Ruby #

Passenger is a quick and light-weight internet utility server for Ruby, Node.js, and Python that may be built-in with Apache and Nginx. We’ll set up Passenger as an Apache module.

Allow the EPEL repository:

sudo dnf install epel-releasesudo dnf config-manager --enable epel

As soon as the repository is enabled, replace the packages record and set up Ruby, Apache and Passenger:

sudo dnf set up httpd mod_passenger passenger passenger-devel ruby

Begin the Apache service and allow it to start out on boot:

sudo systemctl allow httpd --now

Creating New System Consumer #

Create a brand new consumer and group, with residence listing /choose/redmine that can run the Redmine occasion:

sudo useradd -m -U -r -d /choose/redmine redmine

Add the apache consumer to the redmine group and alter the /choose/redmine listing permissions in order that the Apache can entry it:

sudo usermod -a -G redmine apachesudo chmod 750 /choose/redmine

Putting in Redmine #

On the time of writing, the newest secure model of Redmine is model 4.1.0.

Earlier than persevering with with the subsequent steps, go to the Redmine download page to see if a more recent model is out there.

Set up the GCC compiler and libraries required to construct Redmine:

sudo dnf group install "Improvement Instruments"sudo dnf install zlib-devel curl-devel openssl-devel mariadb-devel ruby-devel

Be sure you are working the next steps as redmine consumer:

sudo su - redmine

1. Downloading Redmine #

Obtain the Redmine archive with curl:

curl -L -o redmine.tar.gz

As soon as the obtain is accomplished, extract the archive:

tar -xvf redmine.tar.gz

2. Configuring Redmine Database #

Copy the Redmine instance database configuration file:

cp /choose/redmine/redmine-4.1.0/config/database.yml.instance /choose/redmine/redmine-4.1.0/config/database.yml

Open the file together with your textual content editor:

nano /choose/redmine/redmine-4.1.0/config/database.yml

Seek for the manufacturing part and enter the MySQL database and consumer info we created beforehand:


  adapter: mysql2
  database: redmine
  host: localhost
  username: redmine
  password: "change-with-strong-password"
  encoding: utf8mb4

As soon as completed, save the file and exit the editor.

3. Putting in Ruby dependencies #

Switch to the redmine-4.1.0 listing and set up the Ruby dependencies:

cd ~/redmine-4.1.0gem install bundler --no-rdoc --no-ribundle install --without growth check postgresql sqlite --path vendor/bundle

4. Generate Keys and Migrate the Database #

Run the next command to generate keys and migrate the database:

bundle exec rake generate_secret_tokenRAILS_ENV=manufacturing bundle exec rake db:migrate

Configuring Apache #

Change again to your sudo consumer and create the next Apache vhost file:

exitsudo nano /and many others/httpd/conf.d/

/and many others/httpd/conf.d/

<VirtualHost *:80>
    DocumentRoot /choose/redmine/redmine-4.1.0/public

    <Listing /choose/redmine/redmine-4.1.0/public>
        Choices Indexes ExecCGI FollowSymLinks
        Require all granted
        AllowOverride all

    ErrorLog /var/log/httpd/
    CustomLog /var/log/httpd/ mixed

Don’t neglect to switch together with your Redmine area.

Restart the Apache service by typing:

sudo systemctl restart httpd

Configure Apache with SSL #

When you don’t have a trusted SSL certificates in your area, you’ll be able to generate a free Let’s Encrypt SSL certificates by following these directions.

How to Install CouchDB on Debian 10

As soon as the certificates is generated, edit the Apache configuration as follows:

sudo nano /and many others/httpd/conf.d/

/and many others/httpd/conf.d/

<VirtualHost *:80>

  Redirect everlasting /

<VirtualHost *:443>

  Protocols h2 http:/1.1

  <If "%{HTTP_HOST} == ''">
    Redirect everlasting /

  DocumentRoot /choose/redmine/redmine-4.1.0/public
  ErrorLog /var/log/httpd/
  CustomLog /var/log/httpd/ mixed

  SSLEngine On
  SSLCertificateFile /and many others/letsencrypt/reside/
  SSLCertificateKeyFile /and many others/letsencrypt/reside/

  <Listing /choose/redmine/redmine-4.1.0/public>
    Choices Indexes ExecCGI FollowSymLinks
    Require all granted
    AllowOverride all


Accessing Redmine #

Open your browser, sort your area, and assuming the set up is profitable, a display screen just like the next will seem:

The default login credentials for Redmine are:

  • Username: admin
  • Password: admin

If you log in for the primary time, you’ll be prompted to vary the password, as proven beneath:

As soon as you modify the password, you’ll be redirected to the consumer account web page.

When you can’t entry the web page, then most likely your firewall is obstructing port Apache ports.

Use the next instructions to open the mandatory port:

sudo firewall-cmd --permanent --zone=public --add-port=443/tcpsudo firewall-cmd --permanent --zone=public --add-port=80/tcpsudo firewall-cmd --reload

Conclusion #

You may have efficiently put in Redmine in your CentOS system. You need to now verify the Redmine Documentation and be taught extra about easy methods to configure and use Redmine.

How to Install Elasticsearch on Debian 10

When you hit an issue or have suggestions, depart a remark beneath.

Copy link
Powered by Social Snap