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. That is why today I will show you how to install Mantis Bug tracker on Debian 10.
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 LAMP on Debian 10
The application has an interface that is accessible from the web. Therefore, we will have to have a working LAMP server. Remember that this software stack is made up of several elements.
To do this, read our tutorial to install LAMP.
Once you have finished, you can continue with this tutorial.
Creating the database for Mantis Bug tracker
With the LAMP stack running, you need to create a new database for Mantis Bug Tracker. This is because the application needs a database manager to store all the data that is generated as it is used.
Then, you have to access the MariaDB console and create the database and the new user. So let’s go for it.
:~$ sudo mysql -u root -p
> CREATE DATABASE mantisdb;
> GRANT ALL PRIVILEGES ON mantisdb.* TO 'mantisuser'@'localhost' IDENTIFIED BY 'mantispss';
> FLUSH PRIVILEGES;
Now, we need to download Mantis.
Install Mantis Bug Tracker on Debian 10 (I)
At the time of writing this tutorial, the latest stable version is 2.22.1. So that is the version we will download.
:~$ wget https://sourceforge.net/projects/mantisbt/files/mantis-stable/2.22.1/mantisbt-2.22.1.zip
Then, decompress it using unzip. If unzip is no installed, you can install it using this command:
:~$ sudo apt install unzip
So, decompress the file.
:~$ unzip mantisbt-2.22.1.zip
The next step is to move the generated folder to
/srv/ and change its execution permissions and owner.
:~$ sudo mv mantisbt-2.22.1/ /srv/
:~$ sudo chown -R www-data:www-data /srv/mantisbt-2.22.1/
:~$ sudo chown -R 755 /srv/mantisbt-2.22.1/
For Mantis to run smoothly, it is a good idea to create a new Apache virtual host. So, create a new file for it and add the following:
:~$ sudo nano /etc/apache2/sites-enabled/mantis.conf
DirectoryIndex index.php index.html
Require all granted
Options MultiViews FollowSymlinks
Of course, replace ServerName with the one you want.
Now we can complete the installation from the web interface.
Install Mantis Bug Tracker on Debian 10 (II)
Open your favorite web browser, and go to your server. You will see this:
As you can see, the image shows all the requirements to install Mantis Bug Tracker. In this case, our Debian 10 meets all of them.
Then, we need to type the MariaDB credentials.
If everything went well, at the bottom of the page you will see the following message.
Click on the Continue link and you will see the login page.
Log in with the user administrator and the password root. The first time you log in you will be asked to either disable this account or simply change the password.
Once you change it and log in again with your password, you will see the dashboard.
So, enjoy 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 Debian 10. Everything has been simple and fast.