13 C
Texas
angeloma
Senior Writer and partner

How to install Mantis Bug Tracker on Debian 10?

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

- Advertisement -

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.

How to install LAMP on Debian 10?

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;
> exit;
1.- Creating the new database for Mantis Bug Tracker
1.- Creating the new database for Mantis Bug Tracker

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
2.- Download and install Mantis Bug Tracker on Debian 10
2.- Download and install Mantis Bug Tracker on Debian 10

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/
3.- Set the permission to the folder
3.- Set the permission to the folder

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
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/srv/mantisbt-2.22.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 "/srv/mantisbt-2.22.1">
DirectoryIndex index.php index.html
Options FollowSymLinks
AllowOverride None
Require all granted
Options MultiViews FollowSymlinks
</Directory>
</VirtualHost>
4.- Creating a new virtual host for Mantis
4.- Creating a new virtual host for Mantis

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:

5.- install Mantis Bug Tracker on Debian 10
5.- install Mantis Bug Tracker on Debian 10

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.

6.- MariaDB credentials
6.- MariaDB credentials

If everything went well, at the bottom of the page you will see the following message.

7.- Mantis Bug Tracker installed
7.- Mantis Bug Tracker installed

Click on the Continue link and you will see the login page.

8.- Mantis log in page
8.- Mantis log in 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.

9.- Change the default password of the administrator account
9.- Change the default password of the administrator account

Once you change it and log in again with your password, you will see the dashboard.

10.- Mantis Bug Tracker on Debian 10
10.- Mantis Bug Tracker on Debian 10

So, enjoy it.

Conclusion

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.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
Subscribe
"The best Linux newsletter on the web"

LEAVE A REPLY

Please enter your comment!
Please enter your name here



Latest article