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
- A Linux Mint latest version
- LAMP (Linux, Apache, MySQL & PHP) stack installed and configured
- Basic knowledge of the Linux command line interface
Step 1: Download MantisBT
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.gzExtract the downloaded file using the following command:
tar -xvzf mantisbt-2.25.2.tar.gzMove the extracted
mantisbt-2.25.2directory 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
- 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
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.phpChange 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';Save and exit the file.
Step 4: Set Permissions
- 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
Open your browser and enter the URL:
http://localhost/mantisbt-2.25.2/The MantisBT installer will start. Follow the prompts to complete the installation process.
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:rootChange 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.