How to install Mantis Bug Tracker on OpenSUSE Leap 42.3

To install Mantis Bug Tracker on OpenSUSE Leap 42.3

Mantis is a free and popular open source bug tracking system. It is written in PHP and supports all types of database server. It provides a professional dashboard to manage bugs assigned to the user. It supports powerful access control which provides per project base user access. It is very flexible, you can customize the issue fields, notifications, and workflow. This tutorial covers the installation procedure of Mantis Bug Tracker on OpenSUSE Leap 42.3.


Pre- Requisite
LAMP Stack
- Apache
- MariaDB
- PHP 7 along with the dependencies (php php-ctype php-dom php-iconv php-json php-sqlite php-tokenizer php-xmlreader php-xmlwriter)

Installation procedure

To start with the installation procedure, download the latest stable version of Mantis Bug Tracker by wget command followed by the download link.

linuxhelp:~ # wget https://nchc.dl.sourceforge.net/project/mantisbt/mantis-stable/2.7.0/mantisbt-2.7.0.zip
--2017-10-25 12:19:27--  https://nchc.dl.sourceforge.net/project/mantisbt/mantis-stable/2.7.0/mantisbt-2.7.0.zip
Resolving nchc.dl.sourceforge.net (nchc.dl.sourceforge.net)... 211.79.60.17, 2001:e10:ffff:1f02::17
Connecting to nchc.dl.sourceforge.net (nchc.dl.sourceforge.net)|211.79.60.17|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17650305 (17M) [application/octet-stream]
Saving to: ‘ mantisbt-2.7.0.zip’ 

100%[==============================================================================================================================================> ] 17,650,305   977KB/s   in 20s    

2017-10-25 12:19:48 (866 KB/s) - ‘ mantisbt-2.7.0.zip’  saved [17650305/17650305]


Extract the downloaded package in the Apache document root by running the unzip command.

linuxhelp:~ # unzip mantisbt-2.7.0.zip -d /srv/www/htdocs/
Archive:  mantisbt-2.7.0.zip
   creating: /srv/www/htdocs/mantisbt-2.7.0/
  inflating: /srv/www/htdocs/mantisbt-2.7.0/manage_custom_field_edit_page.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/javascript_translations.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/verify.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/manage_columns_inc.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/summary_page.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/bug_actiongroup_add_note_inc.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/manage_tags_page.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/bug_relationship_delete.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/excel_xml_export.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/signup_page.php  
   creating: /srv/www/htdocs/mantisbt-2.7.0/lang/
.
.
.
inflating: /srv/www/htdocs/mantisbt-2.7.0/manage_proj_user_copy.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/account_prefs_reset.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/my_view_inc.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/manage_proj_custom_field_add_existing.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/bug_relationship_graph_img.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/bug_monitor_delete.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/bugnote_stats_inc.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/manage_proj_custom_field_remove.php  
  inflating: /srv/www/htdocs/mantisbt-2.7.0/view_all_set.php  

Rename the extracted directory to mantis.

linuxhelp:/srv/www/htdocs # mv mantisbt-2.7.0 mantis

Provide the appropriate owner permission and file execution permission by executing the following command.

linuxhelp:/srv/www/htdocs # chown -R wwwrun:www /srv/www/htdocs/
linuxhelp:/srv/www/htdocs # chmod -R 775 /srv/www/htdocs/

Next create an Apache configuration file named mantis.conf using vim editor and enter the following command in the file. Save and exit the file.

linuxhelp:/srv/www/htdocs # vim /etc/apache2/conf.d/mantis.conf
< VirtualHost *:80> 
DocumentRoot " /srv/www/htdocs" 
ServerName www.linuxhelp1.com
< Directory " /srv/www/htdocs/" > 
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Require all granted
< /Directory> 
< /VirtualHost> 

Restart the Apache service.

linuxhelp:/srv/www/htdocs # systemctl restart apache

Open the Firewall configuration using vim editor and make the following changes in the file. Save and exit the file.

linuxhelp:/srv/www/htdocs # vim /etc/sysconfig/SuSEfirewall2
FW_CONFIGURATIONS_EXT=" apache" 

Switch over to the browser and enter the URL as http://yourdomain/mantis. The pre-installation checks for the Mantis Bug Tracker is shown to the user.

Enter the required details for creating the database.

The installation checks for database are shown in the screen.

The installation is complete and now click Continue option to login to Mantis.

The login page of Mantis Bug Tracker and enter the default admin details.

Enter the default password for Mantis Login.

Enter the account details and enter a new password to change from default password.

Now login again with the changed password and click Login.

The dashboard of Mantis Bug Tracker is displayed on the screen.

Thus we conclude the installation procedure of Mantis Bug Tracker on OpenSUSE Leap 42.3.

FAQ
Q
Can I host the Mantis bug tracker using the Nginx server?
A
Yes, its possible to host the Mantis Bug tracker using the Nginx server.
Q
What is the purpose of using the Mantis Bug tracker?
A
Mantis Bug Tracker is very flexible so you can customize the issue fields, notifications, and workflow.
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
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.
A
Use strings_english.txt as the basis for the new localisation file.

Consider using UTF8 encoding.