In this tutorial, we will show you how to install Redmine on Ubuntu 18.04 LTS. 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 Redmine on an Ubuntu 18.04 (Bionic Beaver) server.
Install Redmine on Ubuntu 18.04 LTS Bionic Beaver
Step 1. First, make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.
MySQL needs to be configured so that Redmine can store data, so we will install MySQL server:
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:
Install Ruby using following command:
Passenger is a fast and lightweight web application server for Ruby, Node.js and Python that can be integrated with Apache and Nginx. We will install Passenger as an Nginx module:
Next, import the repository GPG key and enable the Phusionpassenger repository:
sudoadd-apt-repository'deb https://oss-binaries.phusionpassenger.com/apt/passenger bionic main'
Once the repository is enabled, update the packages list and install the Passenger Nginx module with:
First, download the latest version of Redmine, at the moment of writing this article it is version 4:
sudocurl-Lhttp://www.redmine.org/releases/redmine-4.0.1.tar.gz -o /tmp/redmine.tar.gz
Make the following changes to the database.yml file:
Add the following content:
Install the Ruby dependencies and migrate the database:
Generate the secret token using the following command:
Then, set the correct permissions by issuing following chown command:
Open your text editor and create the following Nginx vhost file:
# Redirect HTTP -> HTTPS
# Redirect WWW -> NON WWW
# SSL parameters
# log files
Enable the server block by creating a symbolic link to the sites-enabled directory:
Restart the web server for the changes to take effect:
Redmine will be available on HTTP port 80 by default. Open your favourite browser and navigate to http://mydomain.com and complete the required 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.
Congratulations! You have successfully installed Redmine. Thanks for using this tutorial for installing Redmine project management web app on Ubuntu 18.04 LTS (Bionic Beaver) system. For additional help or useful information, we recommend you to check the official Redmine web site.