How to Install MantisBT on Debian Latest

MantisBT is an open source issue tracker that is widely used for bug tracking, project management, and software development. In this tutorial, we will guide you through the process of installing MantisBT on Debian Latest.

Prerequisites

Before getting started, you need to make sure that your Debian instance is up to date and has the latest packages installed.

You also need to have a web server installed on your system.

Step 1: Install Apache, PHP and MySQL/MariaDB

sudo apt update
sudo apt install apache2 php mariadb-server php-mysql

Step 2: Create a MySQL/MariaDB Database for MantisBT

sudo mysql -u root -p

Enter your password when prompted.

CREATE DATABASE mantisbt;
GRANT ALL PRIVILEGES ON mantisbt.* TO 'mantisuser'@'localhost' IDENTIFIED BY 'mantispassword';
FLUSH PRIVILEGES;
EXIT;

Step 3: Download MantisBT

wget https://github.com/mantisbt/mantisbt/releases/download/release-2.22.1/mantisbt-2.22.1.tar.gz

Step 4: Extract MantisBT and Move it to the Web Server Root Directory

tar xvzf mantisbt-2.22.1.tar.gz
sudo mv mantisbt-2.22.1 /var/www/html/mantisbt
sudo chown -R www-data:www-data /var/www/html/mantisbt/

Step 5: Configure MantisBT

Copy the config/config_inc.php.sample file to config/config_inc.php.

cp /var/www/html/mantisbt/config/config_inc.php.sample /var/www/html/mantisbt/config/config_inc.php

Edit the config/config_inc.php file.

sudo nano /var/www/html/mantisbt/config/config_inc.php

Make the following changes to the file.

$g_hostname      = 'localhost';
$g_db_type       = 'mysqli';
$g_database_name = 'mantisbt';
$g_db_username   = 'mantisuser';
$g_db_password   = 'mantispassword';

Save and close the file.

Step 6: Access MantisBT from a Web Browser

Open a web browser and enter the following URL in the address bar.

http://your_server_IP/mantisbt/

You should see the MantisBT login page.

Conclusion

Congratulation! You have successfully installed MantisBT on Debian Latest. You can now use it to track software issues, manage projects, and collaborate with your team.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!