Loading...

How to Install MantisBT on Ubuntu 20.04?

Simple.Predictable.Scalable

Easily deploy your favorite applications in seconds at an unbeatable price for your next projects.

Installing MantisBT on Ubuntu 20.04

MantisBT is an open-source web-based bug tracking system that helps developers, project managers, and testers collaborate in tracking and resolving software issues.

Prerequisites

Before we start, make sure you have the following:

  • An Ubuntu 20.04 server.
  • A non-root user with sudo privileges.
  • A LAMP (Linux, Apache, MySQL, PHP) stack installed on your server.

Step 1: Download and Extract MantisBT

Begin by downloading the latest version of MantisBT from the official website:

wget https://www.mantisbt.org/download.php -O mantisbt.tar.gz

Next, extract the downloaded archive:

tar xzf mantisbt.tar.gz

Step 2: Configure Apache for MantisBT

Create a new Apache virtual host file for MantisBT:

sudo nano /etc/apache2/sites-available/mantisbt.conf

Copy and paste the following configuration:

    

    ServerAdmin [email protected]
    DocumentRoot /var/www/mantisbt
    ServerName example.com

    
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    

    ErrorLog ${APACHE_LOG_DIR}/mantisbt_error.log
    CustomLog ${APACHE_LOG_DIR}/mantisbt_access.log combined

    
    

Save and close the file. Then enable the new virtual host:

sudo a2ensite mantisbt.conf

Finally, restart Apache for the changes to take effect:

sudo systemctl restart apache2

Step 3: Create a MySQL Database

Login to your MySQL server as the root user:

mysql -u root -p

Create a new database for MantisBT:

CREATE DATABASE mantisbt;

Create a new user and grant privileges to the database:

CREATE USER 'mantisuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON mantisbt.* TO 'mantisuser'@'localhost';

Flush the privileges and exit MySQL:

FLUSH PRIVILEGES;
EXIT;

Step 4: Configure MantisBT

Copy the MantisBT configuration file:

cp config/config_inc.php.sample config/config_inc.php

Edit the configuration file:

nano config/config_inc.php

Update the database configuration:

$g_hostname      = 'localhost';
$g_db_username   = 'mantisuser';
$g_db_password   = 'password';
$g_database_name = 'mantisbt';

Save and close the file.

Step 5: Finish Installation

Open your web browser and navigate to your server's domain or IP address.

You will be redirected to the MantisBT installation page. Fill in the required details such as administrator account credentials and database connection information.

Once the installation is complete, remove the "admin/install.php" file for security purposes:

sudo rm /var/www/mantisbt/admin/install.php

You can now log in to your MantisBT installation and start tracking and resolving software issues!

Refer A Friend
Get $25

1. Installing MantisBT2. MantisBT installation on Ubuntu 20.043. How to install MantisBT on Ubuntu 20.044. Step-by-step guide to install MantisBT on Ubuntu 20.045. Ubuntu 20.04 MantisBT installation process6. MantisBT setup on Ubuntu 20.047. Quick and easy MantisBT installation on Ubuntu 20.048. Ubuntu 20.04 tutorial: Installing MantisBT9. Installing the latest version of MantisBT on Ubuntu 20.0410. MantisBT installation requirements and procedure for Ubuntu 20.04

Why Customers Love Us

What our customers say about us

Ready To Get Started For Free?

Create your free account today.