How to install MantisBT CMS on Linuxmint 18.03

To install MantisBT CMS on Linuxmint 18.03

MantisBT is an open source issue tracker that provides a delicate balance between simplicity and power. Users are able to get started in minutes and start managing their projects while collaborating with their teammates and clients effectively.

Prerequisites

Install LAMP(Apache, MariaDB, and php7.2)
In MariaDB (create database and user and give privileges to that user )

Php installation with required following modules

add-apt-repository ppa:ondrej/php 
apt-get update 
apt-get installphp7.2php7.2-mysqlphp7.2-curlphp7.2-jsonphp7.2-cgi libapache2-mod-php7.0php7.2-
mcryptphp7.2-xmlrpcphp7.2-gdphp7.2-mbstringphp7.2 
php7.2-common php7.2-xmlrpcphp7.2-soap php7.2-xmlphp7.2-intl php7.2-cli php7.2-ldapphp7.2-zipphp7.2-
readlinephp7.2-imapphp7.2-tidyphp7.2-recodephp7.2-sqphp7.2-intl

Installation

Download a MantisBT package from the terminal using wget command

linuxhelp ~ # wget https://sourceforge.net/projects/mantisbt/files/latest/download
--2018-06-19 08:15:58--  https://sourceforge.net/projects/mantisbt/files/latest/download
Resolving sourceforge.net (sourceforge.net)... 216.105.38.13
Connecting to sourceforge.net (sourceforge.net)|216.105.38.13|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://downloads.sourceforge.net/project/mantisbt/mantis-stable/2.15.0/mantisbt-2.15.0.zip?r=& ts=1529376429& use_mirror=excellmedia [following]
--2018-06-19 08:15:59--  https://downloads.sourceforge.net/project/mantisbt/mantis-stable/2.15.0/mantisbt-2.15.0.zip?r=& ts=1529376429& use_mirror=excellmedia
Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.105.38.13
Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.105.38.13|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://excellmedia.dl.sourceforge.net/project/mantisbt/mantis-stable/2.15.0/mantisbt-2.15.0.zip [following]
--2018-06-19 08:16:00--  https://excellmedia.dl.sourceforge.net/project/mantisbt/mantis-stable/2.15.0/mantisbt-2.15.0.zip
Resolving excellmedia.dl.sourceforge.net (excellmedia.dl.sourceforge.net)... 202.153.32.19
Connecting to excellmedia.dl.sourceforge.net (excellmedia.dl.sourceforge.net)|202.153.32.19|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17799875 (17M) [application/octet-stream]
Saving to: ‘ download’ 

download                   100%[=====================================> ]  16.97M  1.03MB/s    in 26s     

2018-06-19 08:16:26 (661 KB/s) - ‘ download’  saved [17799875/17799875]

The download package is a zip file, so unzip the package as follows

linuxhelp ~ # unzip download
Archive:  download
   creating: mantisbt-2.15.0/
  inflating: mantisbt-2.15.0/manage_custom_field_update.php  
  inflating: mantisbt-2.15.0/api_token_revoke.php  
  inflating: mantisbt-2.15.0/manage_proj_cat_delete.php  
  inflating: mantisbt-2.15.0/view_all_inc.php  
  inflating: mantisbt-2.15.0/proj_doc_update.php  
  inflating: mantisbt-2.15.0/bug_report_page.php  
  inflating: mantisbt-2.15.0/view_user_page.php  
  inflating: mantisbt-2.15.0/manage_plugin_upgrade.php
.
.
.
  inflating: mantisbt-2.15.0/images/avatar.png  
  inflating: mantisbt-2.15.0/news_update.php  
  inflating: mantisbt-2.15.0/core.php  
  inflating: mantisbt-2.15.0/bug_actiongroup_update_product_build_inc.php  
  inflating: mantisbt-2.15.0/bug_actiongroup.php  
  inflating: mantisbt-2.15.0/history_inc.php  
  inflating: mantisbt-2.15.0/manage_proj_custom_field_remove.php  
  inflating: mantisbt-2.15.0/manage_proj_ver_add.php  

Rename the extracted directory.

linuxhelp ~ # ls
download  mantisbt-2.15.0
linuxhelp ~ # mv mantisbt-2.15.0/ mantisbt

Change the ownership and permission of the file as follows

linuxhelp ~ # chown -R www-data:www-data mantisbt/
linuxhelp ~ # chmod -R 775 mantisbt/

Move the extracted file into the HTML location

linuxhelp ~ # mv mantisbt/ /var/www/html/

Create a new virtual host configuration for accessing the MantisBT

linuxhelp ~ # cd /etc/apache2/sites-available/
linuxhelp sites-available # vim mantisbt.conf

< VirtualHost *:80> 
ServerName www.linuxhelp1.com
DocumentRoot /var/www/html/mantisbt/
< Directory /var/www/html/mantisbt/> 
AllowOverride All
allow from all
< /Directory> 
< /VirtualHost> 

Enable the site access

linuxhelp sites-available # a2ensite mantisbt.conf 
Enabling site mantisbt.
To activate the new configuration, you need to run:
  service apache2 reload

Enable the rewrite module

linuxhelp sites-available # a2enmod rewrite 
Enabling module rewrite.
To activate the new configuration, you need to run:
  service apache2 restart

Entry to the host file.

linuxhelp sites-available # vim /etc/hosts
< Give your ip>      < Give your domaine> 

Restart the apache2 service
linuxhelp sites-available # systemctl restart apache2.service

Now you can proceed the further installation and configuration from the browser by navigating to the following URL of http://local IP (or) domain name

Verify the php configuration and enter the Database detail


Verify the installation from here as shown below


Once the installation is done you can log in with default credential: username = Administrator: password = root


Edit the account setup if needed.

Admin control panel of MantisBT

With this, the method to install MantisBT CMS on Linuxmint 18.03 comes to an end.

Tag : Linux Mint
FAQ
Q
Can I host Mantis myself?
A
No. Mantis is a centralized engine and is always being improved upon. In order to have the latest features and security, we require you to host with us.
Q
Is there any software I have to install?
A
No. Mantis is a web based application, which means you can access it from anywhere that has a web browser and internet connection. There is no software to install or update
Q
Does MantisBT provide an XML-RPC interface?
A
No, but it provides a SOAP webservice interface. See above reference to MantisConnect project.
Q
Is there a MantisBT version for Smart Phones / PDAs?
A
Yes, checkout MantisWAP. MantisWAP provides a very light weight interface for MantisBT access through a smart phone or PDA. It is optimize for speed and minimization of consumed bandwidth.
Q
What is BBCode?
A
BBCode is a special implementation of HTML, offering great formatting control on particular objects in a post. The use of BBCode is granted by the administrator, but it can also be disabled o