Reprinted:
EasyPHP-2.0b1 + mantis-1.1.0 installation and tips
Note: For some configuration source networks, write this article for reference only for future configuration.
Mantis is a lightweight Brower Bug Management System with intuitive interfaces, easy to use, simple installation, and multi-language and multi-database support.
This article describes how to build a Windows + MySQL platform:
I. Download Software
1. Download easyphp: EasyPHP-2.0b1-setup.exe; Address: http://easyphp.org/This version integrated: Apache 2.2.3, PHP 5.2.0, phpMyAdmin 2.9.1.1, sqlitemanager 1.2.0, MySQL 5.0.27
2. Download Mantis: mantis-1.1.0.tar.gz; Address: http://www.mantisbt.org/
Ii. Install software
1. Install easyphp and the EXE file in windows. (D: \ Program Files \ easyphp 2.0b1)
2. decompress the mantis-1.1.0.tar.gz and cut it to the WWW directory under the easyphp directory, rename mantis-1.1.0 directory to Mantis (D: \ Program Files \ easyphp 2.0b1 \ www \ mantis)
3. Mantis Configuration:
1. display Chinese characters:
Find config_defaults_inc.php in the Directory D: \ Program Files \ easyphp 2.0b1 \ www \ mantis,
Find the language settings in the file and modify this line:
$ G_default_language = 'English ';
Is:
$ G_default_language = 'Chinese _ simplified ';
Chinese characters are displayed.
2. Create a bugtracker database:
Open your browser and enter http: // localhost/mantis/admin/install. php in the address bar. You do not need to modify anything. Click Install/upgrade database to create a bugtracker database.
3. Visit the Mantis homepage:
Open your browser, enter http: // localhost/mantis in the address bar, enter the Mantis logon interface, enter the username: Administrator, password: root, and you will be able to see the full picture of Mantis.
4. email settings:
A): Modify config_defaults_inc.php in the d: \ Program Files \ easyphp 2.0b1 \ www \ mantis directory as follows:
$ G_administrator_email = [email =] 'xxx @ 163.com ';
$ G_webmaster_email = [email =] 'xxx @ 163.com '[/Email];
$ G_from_email = [email =] 'xxx @ 163.com '[/Email];
$ G_return_path_email = [email =] 'xxx @ 163.com '[/Email];
$ G_phpmailer_method = 2;
$ G_smtp_host = 'smtp .163.com ';
$ G_smtp_username = 'xxx ';
$ G_smtp_password = 'xxx ';
B): Modify PHP. ini in the Directory D: \ Program Files \ easyphp 2.0b1 \ conf_files as follows:
[Mail function]
; For Win32 only.
SMTP = mail.163.com
Smtp_port = 25
; For Win32 only.
Sendmail_from = XXX@163.com
In this way, you can receive a confirmation email when registering an account.
4. Tips
1. The time displayed on the Mantis page is inconsistent with the server time:
Modify the following in PHP. ini under the Directory D: \ Program Files \ easyphp 2.0b1 \ conf_files:
[Date]
; Defines the default timezone used by the date functions
Date. timezone = PRC
2. You have no email to create multiple users. test functions: (you cannot test the mail function)
1. Go to the database and find the user table matis_user_table.
2. Change the password field in matis_user_table to the password of the Administrator.
3. access_level = 10 (viewer) access_level = 25 (Reporter) access_level = 40 (modifier) access_level = 55 (developer) access_level = 70 (Administrator) access_level = 90 (Administrator)
4. You can log on with the username and password root.
Password Field: e10adc3949ba59abbe56e057f20f883e the password is 123456
In this way, you can test the function and forget the password.
3. Resolution of Chinese input errors:
Problem: application error #401 database query failed.
Solution:
This is because the MySQL Default dataset is about Latin1 Swedish by default.
Change the dataset to GBK.
The command is as follows:
> MySQL set character_set_client = GBK;
> MySQL set character_set_connection = GBK;
> MySQL set character_set_database = GBK;
> MySQL set character_set_results = GBK;
> MySQL set character_set_server = GBK;
> MySQL set collation_connection = gbk_bin;
> MySQL set collation_database = gbk_bin;
> MySQL set collation_server = gbk_bin;
4. Configure the IP address so that other computers can access Mantis:
If you want others to access you, you must modify the IP settings, open httpd. conf in EasyPHP1-8 \ apache \ conf, find listen 127.0.0.1: 80, change to listen 0.0.0.0: 80.
5. graphical reports
Using graphical reports makes mantis more perfect. Configure jpgraph
Download jpgraph version: 2.3 http://www.aditus.nu/jpgraph/jpdownload.php
Unzip to $ mantis \ jpgraph-2.3
In the $ mantis \ config_inc.php file, add
$ G_use_jpgraph = on;
$ G_jpgraph_path = '../jpgraph-2.3/src /';
Find extension = php_gd2.dll in c: \ php-5.2.5, remove the ';' sign before this line, at this point, you may have noticed that I only enable the PHP extension module when necessary.
Restart Apache.
Now, go to the Mantis system, set up projects, classify, and submit bugs, and view various graphs in the statistical report.
Pgraph legends are displayed in Chinese:
Open c: \ mantis-1.1.0rc3 \ core \ graph_api.php
Search: graph_get_font ()
Add a line 'Chinese _ gbk' => ff_simsun,
Add
$ G_graph_font = 'Chinese _ GBK ';
Open c: \ mantis-1.1.0rc3 \ jpgraph-2.3 \ SRC \ jpg-config.inc.php
Find // define ("ttf_dir", "/usr/x11r6/lib/X11/fonts/TrueType /");
Change to define ("ttf_dir", "C:/Windows/fonts/"), and C:/winnt/fonts/in Windows 2000/
Search for define ('Chinese _ ttf_font ', 'bkai00mp. ttf ');
Change to define ('Chinese _ ttf_font ', 'simsun. TTC ');
The jpg-config.inc.php can also be not changed, if the font in the generated graph wants to be defined by yourself, you can change it like this.
At this time, if the Chinese is still garbled, Open c: \ mantis-1.1.0rc3 \ jpgraph-2.3 \ SRC \ jpgraph_ttf.inc.php
Find
Elseif ($ aff === ff_simsun ){
// Do Chinese Conversion
If ($ this-> g2312 = NULL ){
Include_once 'jpgraph _ gb2312.php ';
$ This-> g2312 = new gb2312toutf8 ();
}
Return $ this-> g2312-> gb2utf8 ($ atxt );
}
Change
Elseif ($ aff === ff_simsun ){
Return $ atxt;
}
This is because the Mantis language file is UTF-8. It is obviously incorrect to repeat it as gb2312.
6. The Chinese Text of CSV export is garbled:
Assume that the file is "administrator.csv", where Chinese characters are garbled.
Solution: Rename "administrator.csv" to" administrator.txt ", and select ASCII as the encoding method when saving the file.
You can change the name.
7. Security Settings
In order for Mantis to run securely, Security Settings must be made after installation and configuration.
1) there is an Admin directory under the Mantis directory, if you open the index under this directory in IE. PHP check, you will know that this directory is for Mantis administration, use this module to check whether your mantis is fully installed, upgrade the old version of mantis, modify the CSS file on the Mantis page. Using this management module does not require the user name and password. Therefore, anyone can view your mantis system information through this management module, in addition, because of the upgrade module, you can directly modify the database here. Therefore, if an unauthorized person opens the database, I don't need to say what the result will look like. It is best to follow the system suggestions, after the configuration is complete, delete the Admin directory. Be sure to delete it instead of rename it! After the name is changed, it is still accessible!
2) After adding an administrator user, delete the default administrator user.
8. Postscript
1. If you use jpgraph in a PHP program, you may need to modify it to avoid Chinese garbled characters.
2. Mantis adds an automatic database installation part to make the installation easier.
3. MySQL runs properly on version 5.0.