Hi, folks. In this post, I will help you to install Mantis Bug Tracker on Ubuntu 20.04
If you are a developer you know that bugs are always present in the process of building a program. Especially if we work as a team on certain projects. Therefore, it is necessary to have software that can distribute the workflow of the project or simply track these problems.
A Mantis Bug Tracker is an open-source application that is used to test automated solutions, keeping a historical record of alterations and managing work teams remotely. On the other hand, Mantis Bug Tracker allows the team to report errors and organize who can take care of them. Users are able to get started in minutes and start managing their projects while collaborating with their teammates and clients effectively. So, let us start.
Install Mantis Bug Tracker on Ubuntu 20.04
1.- Install LAMP on Ubuntu 20.04
The way to install and configure Mantis Bug Tracker is from a powerful web interface. Therefore, a web server that meets these requirements is required.
For this case we will use Apache as the webserver. Besides, Mantis Bug Tracker requires a database manager. In this case, I will choose MariaDB because it is fast, easy, and perfectly compatible with the system and the program.
In short, a LAMP server is needed.
Also, you need to install the following PHP modules.
php7.4-mbstring php7.4-xmlrpc php7.4-soap php7.4-gd php7.4-xml php7.4-intl php7.4-mysql php7.4-cli php7.4-ldap php7.4-zip php7.4-curl php php-cli php-fpm php-pear php-bcmath
Now, we will be able to continue without problems.
2.- Creating the new database for Mantis Bug Tracker
Mantis is an application that generates a lot of data that has to be saved somewhere. For this, it requires a database manager and therefore a database.
So, it has to be created. To do this, open the MariaDB shell.
:~$ sudo mysql -u root -p
Then create a new database for Mantis.
> CREATE DATABASE mantisdb;
Now, create a new MariaDB user for Mantis.
> GRANT ALL PRIVILEGES ON mantisdb.* TO 'mantisuser'@'localhost' IDENTIFIED BY 'mantispss';
Refresh user permissions:
> FLUSH PRIVILEGES;
And exit the console
Now we can continue.
3.- Download and configure Mantis Bug Tracker
Now we can download the Mantis Bug Tracker package. To do this, download the
unzip package that we will use to decompress the file.
:~$ sudo apt install unzip
Then go to the
/tmp/ folder and from there with the help of the wget command perform the download.
:~$ cd /tmp/ :~$ wget -c https://sourceforge.net/projects/mantisbt/files/mantis-stable/2.24.1/mantisbt-2.24.1.zip --2020-05-22 21:03:43-- https://sourceforge.net/projects/mantisbt/files/mantis-stable/2.24.1/mantisbt-2.24.1.zip Resolving sourceforge.net (sourceforge.net)… 126.96.36.199 Connecting to sourceforge.net (sourceforge.net)|188.8.131.52|:443… connected. HTTP request sent, awaiting response… 301 Moved Permanently Location: https://sourceforge.net/projects/mantisbt/files/mantis-stable/2.24.1/mantisbt-2.24.1.zip/ [following] --2020-05-22 21:03:44-- https://sourceforge.net/projects/mantisbt/files/mantis-stable/2.24.1/mantisbt-2.24.1.zip/ Connecting to sourceforge.net (sourceforge.net)|184.108.40.206|:443… connected. HTTP request sent, awaiting response… 302 Found Location: https://sourceforge.net/projects/mantisbt/files/mantis-stable/2.24.1/mantisbt-2.24.1.zip/download [following] --2020-05-22 21:03:45-- https://sourceforge.net/projects/mantisbt/files/mantis-stable/2.24.1/mantisbt-2.24.1.zip/download Connecting to sourceforge.net (sourceforge.net)|220.127.116.11|:443… connected. HTTP request sent, awaiting response… 302 Found Location: https://downloads.sourceforge.net/project/mantisbt/mantis-stable/2.24.1/mantisbt-2.24.1.zip?r=&ts=1590181426&use_mirror=pilotfiber [following] --2020-05-22 21:03:47-- https://downloads.sourceforge.net/project/mantisbt/mantis-stable/2.24.1/mantisbt-2.24.1.zip?r=&ts=1590181426&use_mirror=pilotfiber Resolving downloads.sourceforge.net (downloads.sourceforge.net)… 18.104.22.168 Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|22.214.171.124|:443… connected. HTTP request sent, awaiting response… 302 Found Location: https://pilotfiber.dl.sourceforge.net/project/mantisbt/mantis-stable/2.24.1/mantisbt-2.24.1.zip [following] --2020-05-22 21:03:48-- https://pilotfiber.dl.sourceforge.net/project/mantisbt/mantis-stable/2.24.1/mantisbt-2.24.1.zip Resolving pilotfiber.dl.sourceforge.net (pilotfiber.dl.sourceforge.net)… 126.96.36.199 Connecting to pilotfiber.dl.sourceforge.net (pilotfiber.dl.sourceforge.net)|188.8.131.52|:443… connected. HTTP request sent, awaiting response… 206 Partial Content Length: 16319836 (16M), 7996764 (7.6M) remaining [application/octet-stream] Saving to: ‘mantisbt-2.24.1.zip’ mantisbt-2.24.1.zip 100%[+++++++++++++++++++++++++++++++++++++++++++==========================================>] 15.56M 58.5KB/s in 47s 2020-05-22 21:04:37 (165 KB/s) - ‘mantisbt-2.24.1.zip’ saved [16319836/16319836]
Then decompress the file.
:~$ unzip mantisbt-2.24.1.zip
Then, move the folder to the Apache root directory.
:~$ sudo mv mantisbt-2.24.1/ /var/www/html/mantisbt-2.24.1/
Make Apache the owner of the folder:
:~$ sudo chown -R www-data:www-data /var/www/html/mantisbt-2.24.1/
And finally, assign the correct permissions so it can run smoothly.
:~$ sudo chmod -R 755 /var/www/html/mantisbt-2.24.1/
The next step is to create a new Virtualhost for Apache to manage the Mantis bug tracker correctly.
So, create an Apache configuration file:
:~$ sudo nano /etc/apache2/sites-enabled/mantis.conf
And adds the following content
<VirtualHost *:80> ServerAdmin firstname.lastname@example.org DocumentRoot "/var/www/html/mantisbt-2.24.1" ServerName bt.osradar.lan ServerAlias www.bt.osradar.lan ErrorLog "/var/log/apache2/mantisbt-error_log" TransferLog "/var/log/apache2/mantisbt-access_log" <Directory "/var/www/html/mantisbt-2.24.1"> DirectoryIndex index.php index.html Options FollowSymLinks AllowOverride None Require all granted Options MultiViews FollowSymlinks </Directory> </VirtualHost>
Of course, replace ServerName with yours and then save the changes and close the file.
Then, enable the rewrite module and restart Apache.
:~$ sudo a2enmod rewrite :~$ sudo systemctl restart apache2
Now you have to complete the installation through the web interface.
4.- Install Mantis Bug Tracker on Ubuntu 20.04
Open your web browser and go to
http://your-server and you will see the following screen:
There will be a small scan on the server looking for the requirements. If everything appears good it means that it is in the system. Below, you will have to enter the credentials of the database we just created.
Then, it will start the installation. And if everything went well, at the bottom, you’ll see the following message. There you will have the link for the login screen.
In the login screen introduce the default credentials that are User: administrator Password: root
Then you’ll see the dashboard.
So, Mantis Bug Tracker is ready. All that’s left is for you to take advantage of it and use it.
Mantis Bug Tracker is one of the best applications for monitoring and reporting bugs in a professional environment. So it becomes necessary in many software development organizations. Today, we have learned how to install it on Ubuntu 20.04. Everything has been simple and fast.
So, please share this post and join Our Telegram Channel