How To Install Redmine on CentOS 7

r00t January 4, 2018

Install Redmine on CentOS 7

In this tutorial we will show you how to install Redmine on your CentOS 7 server. For those of you who didn’t know, For those of you who didn’t know, Redmine is a project management web app that allows users to manage projects flexibly while offering robust monitoring tools and a broad library of plug-ins. This free and open source solution offers a substitute for paid job management tools and contains support for wikis, forums, calendars, and information visualization programs.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation the Redmine project management web app on a CentOS 7 server.

Install Redmine on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing all dependencies.

Install all dependencies that are required by Redmine:

Step 3. Installing Ruby and RVM.

Redmin requires Ruby. So, first you’ll want to install Ruby Version Manager which allows managing of multiple ruby environments:

Now we have to add it the .bashrc file so it can be automatically reload and to add it to the .bashrc file run this:

Reload the .bashrc file using this command:

Now run following command as shown below to check Ruby and RVM version:

Step 4. Installing MySQL server.

MySQL needs to be configured so that Redmine can store data, so we will install MySQL server:

Now start the mysqld service using systemctl command as shown below:

By default, MySQL is not hardened. You can secure MySQL using the mysql_secure_installation script. You should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MySQL.

Configure it like this:

Next we will need to log in to the MySQL console and create a database for the Redmine. Run the following command:

This will prompt you for a password, so enter your MySQL root password and hit Enter. Once you are logged in to your database server you need to create a database for Redmine installation:

Step 5. Installing Passenger and Nginx.

Passenger is an application server that runs your web application then communicates with the web server. We will install it and integrate it with Nginx:

You will be asked for some information, and then it will install Nginx. The default installation directory is /opt/nginx. Of course, you can change it. In it, edit conf/nginx.conf.

On line 23, paste the following content:

Save and close the file. Next, create a vhost directory for Virtual Host configuration files:

In this directory, create a redmine.conf file. The paste the following into that file:

Restart the web server for the changes to take effect:

Step 6. Installing Redmine.

First, download the latest version of Redmine, at the moment of writing this article it is version 3.4:

Next, change the current working directory and the example configuration files:

Make the following changes to the database.yml file:

Add following content:

Run following commands to change the owner to user and group nobody:

Install the bundler and gem dependencies for redmine:

Generate the secret token using the following command:

Finally, Restart the web server for the changes to take effect:

Step 7. Accessing Redmine.

Redmine will be available on HTTP port 80 by default. Open your favorite browser and navigate to and complete the required the steps to finish the installation using the default credentials (admin/admin). If you are using a firewall, please open port 80 to enable access to the control panel.

Congratulation’s! You have successfully installed Redmine. Thanks for using this tutorial for installing Redmine project management web app on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Redmine web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!
The Tags:

Leave a Comment