Installing of Mantis Bug Tracker
Mantis BT is an open source tool for event management. The tool is written in PHP and relies on a database to work. The database recommended for implementation of Mantis is mysql.
Requirements
- The tools making up Mantis BT are native to a software suite widely used in Web development called LAMP (Linux-Apache-MySQL-Php)
- Linux is the OS that will host the Mantis.
- Apache is the front-end Web server to receive HTTP requests.
- Mysql is a tool recommended DBMS to host the database of Mantis.
- Php is the tool of interpretation of PHP language allowing the use of dynamic web pages.
Configuring Mysql
Configure Mysql to create a database and an authorized user on this database. In our case the database is called "mantisdb" and the user name "mantis".
- Creating= the database
- Connect to the MySQL console:
create database mantisdb;
- Creating the user account
grant all on mantisdb.* to 'mantis'@'localhost' identified by 'password';
Installing Mantis
You must download the archive containing
MantisBT. Unpack the archive in the web directory of your webserver (eg / var / www)
Go to this
page via your web browser to continue the installation:
Put the values shown in the
screenshot and click on install/upgrade database
Mantis is now installed
You can use the following URL:
Configure Mantis
Configuring mantis is donee through the config_inc.php configuration file
The file contains the following lines:
<?php
// Configuration of database
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'mantisdb';
$g_db_username = 'mantis';
$g_db_password = 'mantis';
// Setting up the mail
$g_phpMailer_method='2';
$g_smtp_host='server.address.smtp';
// Configure email addresses system
$g_administrator_email='administrator@netapsys.com';
$g_webmaster_email=$g_administrator_email;
$g_from_email='no-reply-mantis@netapsys.com';
// Setting the language and date format
$g_default_language='english';
$g_short_date_format='d-m-Y';
$g_normal_date_format='d-m-Y H:i';
$g_complete_date_format='d-m-Y H:i';
// Customizing Mantis
$g_window_title='Mantis Netapsys';
?>
Notes: Thanks to wjaouadi for this tip.