Skip to content

Installing MantisBT

mhabrnal edited this page Jan 20, 2015 · 1 revision

Installing MantisBT

Fedora 21

Server Software Requirements installing

Mantis Bug Tracker requires webserver, PHP and Database. In this case were used Apache webserver, MySQL database and operating system Fedora 21.

Apache can be installed as follows

sudo yum install httpd

to start Apache type follows

sudo systemctl start httpd

MySQL can be installed as follows

sudo yum install mysql mysql-server

and start it by command

sudo systemctl start mysqld

PHP can be installed as follows

sudo yum install php php-mysql

CentOS-7

install LAMP

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-centos-7

Installing MantisBT

  1. Download MantisBt from the official web site http://www.mantisbt.org/download.php
  2. Copy the downloaded file to the /var/www/html/

3. Extract the file as follows

tar -xzf mantisbt-1.2.x.tar.gz

4. You can rename the folder to something simlier. For example

mv mantisbt-1.2.x mantisbt

5. From your web browser execute the installation scrips as follows (where localhost is your server address)

http://localhost/mantisbt/admin/install.php
  1. Follow the instructions of the install script (For more details see MantisBT manual http://www.mantisbt.org/manual/admin.install.new.html)
  2. Once it is installed, you can log to the mantisBT as administrator (Username: 'administrator' Password: 'root')

note: In case, there is MantisBT timezone warning, you have to specify date.timezone in the /etc/php.ini file. For example for Prague we modify section [date] in php.ini as follows

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Europe/Prague"

To apply the changes, you must restart apache. You can do this as follows

sudo systemctl restart httpd

See list of supported timezones: http://php.net/manual/en/timezones.php

MantisBT SOAP API

To ensure correct functionality of SOAP API you must install php extension php-soap, for example as follows

sudo yum install php-soap

After this install is necessary to restart apache server as follows

sudo systemctl restart httpd

This prevents MantisBT error 'Error Type: SYSTEM NOTICE'

SOAP API documentation

https://bugs.centos.org/api/soap/mantisconnect.php?wsdl

Python SOAP API example using suds:

from suds.client import Client
url = "https://bugs.centos.org/api/soap/mantisconnect.php?wsdl"
client = Client(url)
bug_id = 1234
result = client.service.mc_issue_get("username", "password", bug_id)