How to Install MantisBT on Fedora Server Latest

MantisBT is an open-source software that helps in the management of software development projects. In this tutorial, we will learn how to install MantisBT on Fedora Server Latest.

Step 1: Update the System

Before installing any new package, it is advised to update the system with the latest packages to avoid any errors. To update the system, run the following command in your terminal:

sudo dnf update -y

Step 2: Install LAMP Stack

MantisBT requires Apache, MySQL/MariaDB, and PHP to function. To install the LAMP stack, run the following command:

sudo dnf install -y httpd mariadb-server php php-mysqlnd php-gd php-imap php-ldap php-mbstring php-xml

This command will install Apache, MySQL/MariaDB, and all the necessary PHP modules required by MantisBT.

Step 3: Configure the Database

After installing the LAMP stack, we need to create a database for MantisBT. To do this, follow the steps below:

  1. Start the MariaDB service:
sudo systemctl start mariadb
  1. Secure the MariaDB installation by running the following command:
sudo mysql_secure_installation
  1. Connect to the MariaDB server as the root user:
sudo mysql -u root -p
  1. Create a database for MantisBT:
CREATE DATABASE mantisbt_db;
  1. Create a database user and grant privileges to the user for the MantisBT database:
GRANT ALL PRIVILEGES ON mantisbt_db.* TO 'mantisbt_user'@'localhost' IDENTIFIED BY 'password';

Note: Remember to replace password with a strong password. In our case, we have used password.

  1. Flush the privileges:
FLUSH PRIVILEGES;
  1. Exit the MariaDB console:
exit;

Step 4: Download and Install MantisBT

To download and install MantisBT, follow the steps below:

  1. Download the latest version of MantisBT from the official website using the following command:
sudo wget https://downloads.sourceforge.net/project/mantisbt/mantis-stable/2.24.4/mantisbt-2.24.4.tar.gz

Note: The version number may differ from the one shown above.

  1. Extract the downloaded archive into the Apache document root directory:
sudo tar -xzf mantisbt-2.24.4.tar.gz -C /var/www/html/
  1. Change the ownership of the MantisBT directory to the Apache user:
sudo chown -R apache:apache /var/www/html/mantisbt-2.24.4

Step 5: Configure Apache for MantisBT

To configure Apache for MantisBT, follow the steps below:

  1. Create a new Apache configuration file for MantisBT:
sudo vi /etc/httpd/conf.d/mantisbt.conf
  1. Add the following configuration in the file:
<VirtualHost *:80>
    ServerAdmin admin@example.com
    DocumentRoot /var/www/html/mantisbt-2.24.4
    ServerName example.com
    ErrorLog /var/log/httpd/mantisbt_error_log
    CustomLog /var/log/httpd/mantisbt_access_log combined

    <Directory /var/www/html/mantisbt-2.24.4>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

Note: Remember to replace example.com with your server's domain name.

  1. Restart the Apache service:
sudo systemctl restart httpd

Step 6: Configure MantisBT

To complete the installation of MantisBT, follow the steps below:

  1. Open your web browser and go to http://example.com/, where example.com is your server's domain name.

  2. Follow the on-screen instructions to complete the installation.

  3. When prompted for the database details, enter the following:

  1. Once the installation is complete, delete the install.php file from the MantisBT directory:
sudo rm /var/www/html/mantisbt-2.24.4/install.php

Conclusion

In this tutorial, we learned how to install MantisBT on Fedora Server Latest. We also configured Apache and the database for MantisBT. Now you can start using MantisBT to manage 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!