Learn how to install Redmine on Ubuntu 20.04.

Redmine is a free and open source web-based project management and issue tracking tool. Apart from that it has features like wikis, forums, time tracking and role-base access control. It also feature project management tools such as calendar and Gantt charts to visually illustrate project milestones and deadlines.

Redmine is written using the Ruby on Rails framework, and it support multitude of back-end database such as MySQL, PostgreSQL, SQLite and Microsoft SQL Server.

Redmine will run on most Unix, Linux, macOS and Windows operating systems as long as Ruby is available on the operating system platform.

In this YouTube demo, I am installing Redmine 4.2 on Ubuntu 20.04 LTS with MariaDB (MySQL) as a back-end database. And in the Ubuntu 20.04 operating system, I am running Apache Web Server as a graphical user interface for the end user to access Redmine. For alert messaging I am using SendMail as a internetwork email routing application.

Below are the Ubuntu 20.04 SSH commands featured in this YouTube demo…

1) Update the Ubuntu OS server.
sudo apt update
sudo apt upgrade
sudo reboot

2) Install the Maria Database Server
sudo apt install mariadb-server
Confirm it is working:
sudo mysql -u root
QUIT

3) Setup redmine username in the database
sudo mysql -u root -p
CREATE DATABASE redmine CHARACTER SET utf8mb4;
GRANT ALL PRIVILEGES ON redmine.* TO ‘redmine’@’localhost’ IDENTIFIED BY ‘REDMINE_PASSSWORD’;
FLUSH PRIVILEGES;
EXIT;

4) Confirm that the redmine database user can log in to the MySQL Shell using the configured password.
mysql -u redmine -p
SHOW DATABASES;
QUIT

5) Install Apache Web Server
sudo apt install apache2 libapache2-mod-passenger

6) Instal Redmine
sudo apt install redmine redmine-mysql

7) Update and inatall Gem Bundler
sudo gem update
sudo gem install bundler

8) Configure the Apache Passenger module.
sudo nano /etc/apache2/mods-available/passenger.conf
PassengerDefaultUser www-data

9) Create a symbolic link to connect Redmine to the web document space.
sudo ln -s /usr/share/redmine/public /var/www/html/redmine

10) Create a VirtualHost file for Redmine and configure to your domain name or server.
sudo nano /etc/apache2/sites-available/redmine.conf
ServerAdmin REDMINE_PASSSWORD
DocumentRoot /var/www/html/redmine
ServerName SERVER_IP_ADDRESS
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

11) Create and set the ownership of the Gemfile.lock file so that the www-data user of apache can access it.
sudo touch /usr/share/redmine/Gemfile.lock
sudo chown www-data:www-data /usr/share/redmine/Gemfile.lock

12) Enable the Redmine website according to the configuration.
sudo a2ensite redmine.conf
sudo systemctl restart apache2.service

EMail Setup

sudo apt-get install sendmail

sudo nano /etc/redmine/default/configuration.yml
production:
email_delivery:
delivery_method: :smtp
smtp_settings:
address: localhost
port: 25
domain: test
authentication: :none
openssl_verify_mode: ‘none’

sudo systemctl restart apache2.service

redmine,#Ubuntu,

Reference