Installation Environment:
Windows XP 32
Phpstudy
First, Introduction
MANTISBT is a web-based defect tracking system developed by PHP and uses open source database MySQL to form a complete open source solution, as shown in Figure 1 below. The main functions of MANTISBT can be divided into 3 parts: management, defect reporting and statistical analysis. Each part has some sub functions, the Sub function also has some specific function, its function structure, may use the diagram to describe.
Figure 1
Figure 2
Functional features of MANTISBT:
(1) Support multiple projects, multiple languages.
(1) Permissions are set flexibly, different roles have different permissions, and custom roles are supported.
(1) It is possible to establish an association or dependency between defects to manage the project more effectively.
(1) The Defect statistic analysis function is stronger, has many kinds of histogram and the pie chart, and can export the CSV file for Excel to make the further analysis.
(1) Has the custom field function, may satisfy the enterprise some special request.
(1) Defects can be moved between different projects.
(1) The homepage may publish the announcement, the project related news, facilitates the information dissemination.
(1) The individual can customize the email notification function, each user may subscribe to the related flaw status mail according to own work characteristic.
(1) can customize the software company specific defect processing process.
Compared with Bugzilla, Mantis has the following advantages:
First, the mantis relative Bugzilla has a better operating interface.
Second, installation and use are relatively simple. For general projects, Mantis is more than sufficient for defect tracking.
Second, download and install
Because Mantis is based on PHP, MySQL environment, so mantis installation is divided into two parts, the following details of the installation of Mantis itself.
First, mantis official download address for http://www.mantisbt.org/download.php, download version: Mantisbt-1.2.19.zip
Second, phpstudy official download address for http://www.phpstudy.net/a.php/198.html
1, installation
(1) The download of the Mantisbt-1.2.19.zip compression package for decompression, placed in the D:\php directory, and renamed the folder: MANTISBT
(2) The download of the Phpmyadmin-4.4.4-all-languages.zip compression package for decompression, placed in the D:\php directory, and renamed the folder: phpMyAdmin
2, configuration
(1) Install Phpstduy, run the. exe.
(2) Open the browser, enter http://localhost/phpMyAdmin, enter MySQL login username and password (root/123456), in "SQL" to execute the creation of database script: Create DATABASE Mantisdb;
or in "database": Fill in "Mantisdb", "Utf8_general_ci", click "Create", create success.
(3) Open the browser, input http://localhost/mantisbt/admin/install.php into the relevant configuration
Enter the following sequence:
MySQL (database type)
localhost (server name)
Root (user name of mantis database owner)
123456 (Mantis database owner's password)
MANTISDB (Mantis database name)
Root (MySQL database administrator user)
123456 (MySQL database administrator password)
Finally click on the "Install/upgrade Database" button, the installation began, in fact, in MySQL to create related tables and initialization of some data in the process, spent about seven or eight seconds on my computer, and then show completion information. If the word "good" is displayed on the right side of each entry, congratulations to you, you have successfully installed the MANTISBT, if some entries show is not "good", that will go back to check, most of the database is not enough permissions, the more convenient way is my above practice, Directly to the MANTISBT using the root account, there will be no permissions on the issue.
(4) See if you can open the Mantis login page (http://localhost/mantisbt/login_page.php)
(5) configuration completed Mantis has only one default system administrator User: Administrator, Password: root.
(6) You will see the login interface, the login interface has two lines of red words:
Warning:you should disable the default ' Administrator ' account or to change its password.
Warning:admin directory should be removed.
Is the security of the warning, the former said administrator this admin account password must be changed, this simple, the administrator's default password is "root", login, in my account this label to modify the following can be, When you change your password, you also need to provide an email address that is actually available.
Another warning is not difficult to solve, as it says, delete the "Admin" directory, My is "D:\php\mantisbt\admin" this directory.
Three, Chinese
By default, the language displayed is in English and now needs to be translated into Chinese and set as follows:
Modify configuration file: config_defaults_inc.php in Mantis directory
Before modification: $g _default_language = ' 中文版 ';
After modification: $g _default_language = ' chinese_simplified ';
Iv. Mail Configuration
1, modify the configuration file: In the Mantis directory config_defaults_inc.php set "Mantis Email settings" related information, including the following:
(1) The $g_administrator_email, $g _webmaster_email, $g _from_email, $g _return_path_email, etc. are set as valid mailing addresses;
(2) Set the $g_phpmailer_method value to 2, which means to send mail by SMTP;
(3) Set the $g_smtp_hosty as a valid mail server host name, such as ' mail.iflashbuy.com ';
(4) Set up a valid user account and password for $g_smtp_username and $g_smtp_passwordy to log in to the mail server.
Mantis Email Settings
$g _administrator_email= ' test@iflashbuy.com ';
$g _webmaster_email= ' test@iflashbuy.com ';
$g _from_email= ' test@iflashbuy.com ';
$g _return_path_email= ' test@iflashbuy.com ';
$g _use_phpmailer = on; # Send mail using Phpmailer
$g _phpmailer_method=2; # Phpmailer Send email in SMTP mode
$g _smtp_host= ' mail.iflashbuy.com '; # SMTP Server
$g _smtp_username = ' test@iflashbuy.com '; # Mailbox Login User Name
$g _smtp_password= ' password '; # Mailbox Login Password
Note: This example uses the company's mailbox as a successful mail server test.
You will often encounter problems that cannot be sent, but do not know how to solve them, which can be debugged in the following ways:
Enter the mail test interface, enter the test address in the browser, for example: http://localhost/mantisbt/admin/test_email.php, click Test, you can detect the cause of the send failure.
2, attach the more ideal mail settings
V. Set a password when registering a new user with the Administrator
Locate the $g in the config_defaults_inc.php file in the Mantis directory _send_reset_password
Before modification: $g _send_reset_password = on;
After modification: $g _send_reset_password = off;
Attach the settings before and after the set diagram:
Vi. Configuring LAN Access
Turn off the firewall and enter on any computer in the LAN: http://ip/mantisbt/login_page.php can be accessed successfully.
If you fail, try the following:
Add a section of code to the next line in Listen 127.0.0.1:80 listen 192.168.1.101:80
Note: 192.168.1.101 is the IP address
of the mantis server If the mail system does not want the address of the bug to be 127.0.0.1, please listen 127.0.0.1:80. Just stay Listen 192.168.1.101:80
Seven, upload the attachment configuration
1, in the Mantis directory config_defaults_inc.php files found in Mantis file Upload Settings
$g _allow_file_upload= on;
$g _file_upload_method= DISK; #上传到硬盘
$g _max_file_size=2097152; #附件大小限制为2MB
$g _allowed_files= ' Txt,jpg,jepg,gif,bmp,doc '; #允许上传的文件类型
$g _disallowed_files= ' exe,com '; #不允许上传的附件类型
$g _absolute_path_default_upload_folder= ' D:\php\mantisbt\upload '; #默认的文件上传的绝对路径
$g _preview_attachments_inline_max_size=99999; #直接显示任何小于这个字节大小的bmp, upload files in png,gif,jpg format.
2, in the MANTISBT directory to create a new directory upload (note that it is best not to use the Chinese directory name, directory name in the middle without spaces)
Eight, the solution CSV exported Chinese display is garbled
If the saved file is Administrator.csv, in which Chinese garbled solution:
1, rename administrator.csv for Administrator.txt
2, save when the choice of encoding for ASCII renamed to come over, you can
Nine, Jpgraph
In the defect analysis, we need to draw histograms, pie charts, trend charts and so on, in order to solve this problem, to install jpgraph. If you do not install the software, you can also copy the data to Excel, and then analyze. If you want to know jpgraph, you can refer to the official website http://jpgraph.net/on the relevant content. For example, JpGraph2.3.3 is installed in the D:\php\mantisbt\library directory to modify 3 places to complete the configuration.
1, config_default_inc.php for the jpgraph, that is, in the "Mantis jpgraph Addon" section, modify the following related parameters.
$g _use_jpgraph=on; #将off改为on;
$g _jpgraph_path= ' D:\php\mantisbt\library\jpgraph '; #JpGraph所在路径
$g _graph_font= ' SimSun '; #定义所用的字体, here specifies the song body
In the file, in the "Signup and Lost Passwod" section, modify the following two parameters:
$g _system_font_folder= ' c:\WINDOWS\Fonts ';
$g _font_per_captcha= ' SIMSUN.TTC ';
2, in the mantisbtmantisbt\plugins\mantisgraph\core\graph_api.php file to increase the Chinese font simsun (Arial), the code is as follows:
Function Graph_get_font () {
$t _font_map=array (
' SimSun ' =>ff_simsum, //increase the Arial map
' XXFarEastFont ') =>ff_arial,
...
}