How to Install MantisBT on Windows 11

MantisBT is an open source issue tracker system which is widely used for managing software development projects. In this tutorial, we are going to explain how to install MantisBT on a Windows 11 system.

Prerequisites

Before you install MantisBT, you need to have the following software installed on your Windows 11 machine:

Step 1: Download MantisBT

First, you need to download the latest version of MantisBT from their website: https://www.mantisbt.org/download.php

Step 2: Extract MantisBT archive

Once the download is complete, extract the contents of the downloaded MantisBT archive to a directory on your system (for example, C:\mantisbt).

Step 3: Create MantisBT database

Next, you need to create a MySQL database to store the MantisBT data. To do this, open the MySQL Command Prompt and run the following command:

CREATE DATABASE mantisbt;

Step 4: Create MySQL user account

After creating the database, you need to create a MySQL user account with privileges to access the database. Run the following command in the MySQL Command Prompt:

CREATE USER 'mantisbt_user'@'localhost' IDENTIFIED BY 'password';

Replace password with a strong password for the user.

Next, grant the user access to the mantisbt database by running the following command:

GRANT ALL PRIVILEGES ON mantisbt.* TO 'mantisbt_user'@'localhost';

Step 5: Configure MantisBT

Next, you need to configure MantisBT to connect to the MySQL database. Open the config_inc.php file located in the C:\mantisbt\config directory, and update the following lines:

$g_hostname = 'localhost';
$g_db_name = 'mantisbt';
$g_db_username = 'mantisbt_user';
$g_db_password = 'password';

Replace password with the password you created for the mantisbt_user account in Step 4.

Step 6: Configure Apache HTTP server

To serve MantisBT with Apache, you need to create a new virtual host in the httpd-vhosts.conf file. Open this file located in the C:\Apache24\conf\extra directory, and add the following lines:

<VirtualHost *:80>
    ServerName mantisbt.local
    DocumentRoot "C:/mantisbt"
    <Directory "C:/mantisbt">
        AllowOverride All
        Require all granted
    </Directory>  
</VirtualHost>

Save the changes made in the httpd-vhosts.conf file.

Step 7: Add host entry

To access MantisBT in your web browser, you need to add an entry to your hosts file. Open the hosts file located in C:\Windows\System32\drivers\etc, and add the following line at the end of the file:

127.0.0.1 mantisbt.local

Save the changes made in the hosts file.

Step 8: Start Apache server

Next, start the Apache server by opening the ApacheMonitor application located in the C:\Apache24\bin directory. Click on the Start button to start the Apache server.

Step 9: Access MantisBT in web browser

Finally, open your preferred web browser and go to the URL http://mantisbt.local. You should be redirected to the MantisBT installation page. Follow the prompts to complete the installation. Once the installation is completed, you can login to the MantisBT dashboard using your chosen admin username and password.

Congratulations! You have successfully installed MantisBT on your Windows 11 machine. You are now ready to start managing your software development 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!