Building Mantis Defect Management system

Source: Internet
Author: User
Tags bind php file mantis bug phpmyadmin


What is Mantis

MANTISBT is a free popular web-based bugtracking system (Feature List). It is written in the PHP scripting language and works with MySQL, MS SQL, and PostgreSQL databases and a webserver. MANTISBT have been installed on Windows, Linux, Mac OS, OS/2, and others. Almost any web browser should is able to function as a client. It is released under the terms of the GNU general public License (GPL).


Mantis is a bug management system. The main features are as follows:

1, the system written in PHP, easy to install, do not have to install so many Perl support like Bugzilla;

2, the system is relatively simple and light pounds, easy to use;

3, excellent multi-language support, for the development of Japan and other companies are very suitable;

Interface diagram:



Online Demo Address: Http://www.futureware.biz/mantisdemo

Environment Construction and mantis installation, configuration

Because Mantis is written in PHP system, and to debug PHP program of course to use the Apache+php+mysql, and Apache+php+mysql configuration is a very troublesome thing, this does not include environmental conflict 、、、 and so on, These are also issues that cause configuration failures. But it happens that there is a package that eliminates the problems that were previously needed to be solved, and this suite is easyphp. Easyphp integrates: Apache, PHP, MySQL, PhpMyAdmin.

The above software can refer to the last reference of the article. Scope of application

This paper introduces the construction of Mantis bug management system based on Windows. software Download

Mantis Download Address: http://www.mantisbt.org/

easyphp Download Address: http://www.easyphp.org/

This article takes mantis-1.1.0a4+ EasyPHP-3.1 as the demo version and tests the pass. Installing easyphp

Installing the easyphp is simple, double-clicking on the downloaded Easyphp-3.1.exe, and then clicking Next by default will complete the installation. Of course, the License Agreement page is a must select I Access the agreement ...

Software default directory: C: "Program Files" EasyPHP3.1

Installation progress ...



Installing ...


completing!

EASYHPH successfully installed. Tick "Open help", "Launch easyphp" and click "Finish". You can see the following page:

To run successfully, double-click on the Windows tray icon to see the image below, Apache, MySQL on the right side are displayed "Started" and light green.

Known Issues
:

1, if Apache does not run properly, it may be because the default use of Apache 80 port is occupied (Apache port modification Method Please continue to read ...) );

2, if unable to find the reason, please restart the computer, it is said to restart the computer can solve 80% of the problem, I hope you encounter is not the remaining 20% ... Installing Mantis

1, the download to the Mantis-1.1.0a4.rar extracted to the Mantis folder;

2, easyphp installation directory, open C: "Program Files" EasyPHP3.1 "www"

3, copy the Mantis folder to C: "Program Files" EasyPHP3.1 "www"; installation phpMyAdmin

1. Open C: "Program Files" EasyPHP3.1

2. Cut the phpMyAdmin folder to C: "Program Files" EasyPHP3.1 "www" to establish the bug database

1. Right-click the Windows tray icon, select "Local Web", (or enter "HTTP://127.0.0.1/" in IE address) to see the following page:

2. Click "Mantis" to enter the page:


3, do not modify/fill in any value, directly click on the bottom of the page "Install/upgrade Database" button

4, after the success can see the following page:


²ok, so far, the mantis system has been built successfully. Verify that you have configured the success immediately below.

1. Right-click the Windows tray icon again, select "Local Web", (or enter "HTTP://127.0.0.1/" in IE address) to see the following page:


2, click Select "Mantis" (or can omit the step, directly in the IE address input "http://127.0.0.1/mantis/login_page.php"), enter the page:

There is only one default system administrator user configured to complete the mantis:

Account Number: Administrator

Password: root

As simple as this, a bug management system is configured and Mantis is ready for use. But--the actual use of the problem arises, such as: After the mantis configuration is completed, the default configuration completed by the Chinese version of the system, and only support English, not support Chinese, specifically in: If in any one of the fields to enter the successful save, Again show is garbled (and solve the Chinese garbled problem is very tricky, and according to the situation of the different ways to solve also different, search on the Internet, there is a lot of ... ), the specific solution please continue looking down ... Chinese Version Configuration

When the configuration is complete, mantis defaults to the English system, and to use the Chinese version mantis the configuration file needs to be modified.

² Configuration Method:

Open the Mantis directory (C: "Program Files" EasyPHP3.1 "www" mantis "), open the config_defaults_inc.php file with Notepad and locate the following code snippet:

。。。。。。

#---language Settings-----------

# If The language is set to ' auto ', the actual

# language is determined by the user agent (Web browser)

# language Preference.

$g _default_language = ' 中文版 ';

。。。。。。

Change 中文版 to Chinese_simplified
The code snippet after the modifications are complete is as follows:

......

#---language Settings-----------

# If The language is set to ' auto ', the actual

# language is determined by the user agent (Web browser)

# language Preference.

$g _default_language = ' chinese_simplified ';

......

² Verify that the configuration is successful:

Login to the Mantis system "http://127.0.0.1/mantis/login_page.php" in IE again, enter the page:

OK, it's a success. After logging in, the same is the All-Chinese interface:

LAN Access

When the configuration is complete, mantis defaults to native access, and the Apache configuration file needs to be modified for access within the LAN.

² Configuration Method:

Open the Apache directory (C: "Program Files" EasyPHP3.1 "Apache" conf "), open the httpd.conf file with Notepad and locate the following code snippet:

。。。。。。

#

# listen:allows-Bind Apache to specific IP addresses and/or

# ports, instead of the default. See also the <VirtualHost>

# directive.

#

# Listen on specific IP addresses as shown below to

# Prevent Apache from glomming onto all bound IP addresses.

#

#Listen 12.34.56.78:80

Listen 127.0.0.1:80

。。。。。。

Add a piece of code Listen the next line in Listen 127.0.0.1:80 192.168.1.101:80

Note : 192.168.1.101 is the IP address of the mantis server

The code snippet after the modifications are complete is as follows:

......

#

# listen:allows-Bind Apache to specific IP addresses and/or

# ports, instead of the default. See also the <VirtualHost>

# directive.

#

# Listen on specific IP addresses as shown below to

# Prevent Apache from glomming onto all bound IP addresses.

#

#Listen 12.34.56.78:80

Listen 127.0.0.1:80

Listen 192.168.1.101:80

......

² Verify that the configuration is successful:

Log in to the mantis system via IE in any computer on the LAN

http://192.168.1.101/mantis/login_page.php can be accessed normally. Port is occupied

When the mantis configuration is complete, access to the mantis system may cause problems with port occupancy, which is common because the IIS default port is 80, and the default port is 80 when the mantis configuration is complete. Therefore, you need to modify the port of mantis or the port of IIS to access mantis normally.

² Configuration Method:

Open the Apache directory (C: "Program Files" EasyPHP3.1 "Apache" conf "), open the httpd.conf file with Notepad and locate the following code snippet:

......

# listen:allows-Bind Apache to specific IP addresses and/or

# ports, instead of the default. See also the <VirtualHost>

# directive.

#

# Listen on specific IP addresses as shown below to

# Prevent Apache from glomming onto all bound IP addresses.

#

#Listen 12.34.56.78:80

Listen 127.0.0.1:80

Listen 192.168.1.101:80

......

Modify the Listen 192.168.1.101:80 to Listen 192.168.1.101:8001

The code snippet after the modifications are complete is as follows:

......

#

# listen:allows-Bind Apache to specific IP addresses and/or

# ports, instead of the default. See also the <VirtualHost>

# directive.

#

# Listen on specific IP addresses as shown below to

# Prevent Apache from glomming onto all bound IP addresses.

#

#Listen 12.34.56.78:80

Listen 127.0.0.1:80

Listen 192.168.1.101:8001

......

² Verify that the configuration is successful:

Log in to the mantis system via IE in any computer on the LAN

http://192.168.1.101:8001/mantis/login_page.php can be accessed normally. How to solve the garbled characters of Chinese display

² Chinese Display garbled concrete performance:

1, after using administrator login, select "Manage → project management → Click [Create New Project]"

Fill in the data as follows:

* Project name: Public project

State:

View Status:

Upload file storage path:

Description: Description ...

2, click "Add Item", add success, return to the list page, Chinese will be displayed as garbled:

To solve the Chinese display garbled method:

² Pre-condition:

1) successfully installed easyphp (please read "Installation easyphp")

2) already installed phpMyAdmin (please read "Installation phpMyAdmin" for details)

² Solution Ideas

May be caused by the default encoding of the MySQL database, so rebuilding the database can be resolved.

Therefore, the concrete steps can be divided into two parts:

A) delete the database;

b) &n

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.