In this tutorial, we will show you how to install Redmine on Ubuntu 20.04 LTS. For those of you who didn’t know, Redmine is an open-source, cross-platform, and cross-database issue tracking and web-based project management application built on top on the Ruby on Rails framework. 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 Wine on an Ubuntu 20.04 LTS (Focal Fossa) server.
Install Redmine on Ubuntu 20.04 LTS Focal Fossa
Step 1. First, make sure that all your system packages are up-to-date by running these following
apt commands in the terminal.
Step 2. Installing MariaDB on Ubuntu 20.04.
Once the system is updated, use the following commands to install MariaDB Server on Ubuntu system:
After the server is installed, the commands below can be used to stop, start and restart the database services:
Let’s confirm our installation of MariaDB server on Ubuntu 20.04:
Securing MariaDB after installation.
By default, MariaDB is not hardened. You can secure MariaDB using the
mysql_secure_installation script. you should read and below each step carefully which will set a root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:
Configure it like this:
To log into MariaDB, use the following command (note that it’s the same command you would use to log into a MariaDB database):
This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for Redmine installation:
Now we will install Passenger application server that will be used by Ruby and integration to Apache for serving Redmine on Ubuntu:
Run following commands to install Redmine on Ubuntu system:
Then, install the bundler gem:
Next, configure Apache Passenger module:
Now create a symlink to connect Redmine:
Next, create an Apache virtual host file for Redmine with the following command:
Save and close the file. Then, enable the Redmine virtual host and Apache rewrite module with the following command:
Redmine will be available on HTTP port 80 by default. Open your favourite browser and navigate to
http://myprojects.example.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 20.04 Focal Fossa system. For additional help or useful information, we recommend you to check the official Redmine website.