How to Install MantisBT on Linux Mint Latest

MantisBT is an open source issue tracking system used to track and manage bugs and issues in software projects. This tutorial explains how to install MantisBT on Linux Mint latest version.

Prerequisites

Step 1: Download MantisBT

  1. Download the latest stable version of MantisBT from the official website www.mantisbt.org or use the following command to download it via terminal.

    wget https://github.com/mantisbt/mantisbt/releases/download/release-2.25.2/mantisbt-2.25.2.tar.gz
    
  2. Extract the downloaded file using the following command:

    tar -xvzf mantisbt-2.25.2.tar.gz
    
  3. Move the extracted mantisbt-2.25.2 directory to the Apache web server root directory /var/www/html/

    sudo mv mantisbt-2.25.2 /var/www/html/
    

Step 2: Create a Database for MantisBT

  1. Log in to MySQL server and create a new database and user for MantisBT:
    mysql -u root -p
    CREATE DATABASE mantisbt;
    CREATE USER 'mantisbtuser'@'localhost' IDENTIFIED BY 'password';
    GRANT ALL PRIVILEGES ON mantisbt.* TO 'mantisbtuser'@'localhost';
    FLUSH PRIVILEGES;
    exit
    

Step 3: Configure MantisBT

  1. Rename the config files and edit them as follows:

    cd /var/www/html/mantisbt-2.25.2
    mv config_inc.php.sample config_inc.php
    vi config_inc.php
    
  2. Change the database details with your own database credentials:

    $g_db_type      = 'mysqli';
    $g_hostname     = 'localhost';
    $g_database_name = 'mantisbt';
    $g_db_username  = 'mantisbtuser';
    $g_db_password  = 'password';
    
  3. Save and exit the file.

Step 4: Set Permissions

  1. Set the owner and permissions of the MantisBT directory as follows:
    sudo chown -R www-data:www-data /var/www/html/mantisbt-2.25.2
    sudo chmod -R 755 /var/www/html/mantisbt-2.25.2
    

Step 5: Access MantisBT

  1. Open your browser and enter the URL: http://localhost/mantisbt-2.25.2/

  2. The MantisBT installer will start. Follow the prompts to complete the installation process.

  3. Once the installation process is complete, you will be directed to the MantisBT login screen. Use the default administrator credentials to log in: username: administrator, and password: root

  4. Change the administrator password and email address as required.

Conclusion

In this tutorial, you have learned how to install MantisBT on Linux Mint latest version. You can now start using MantisBT to track and manage bugs and issues in your software projects.

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!