mantis installation and configuration - more success Edition

2010-06-07  来源:本站原创  分类:Tech  人气:251 

Try to research the next mantis. Find installation and configuration is more responsible, a lot of trouble during the encounter configuration problems,

Such as mail, garbled, icon support, project path access, etc., order online no detailed information.

So to everyone to quickly use the mantis, detours, special order a bit installation and configuration documentation. Hope you will enjoy it. But a few days finishing this hard Oh, Oh! ! ! !

Mantis environment configuration alone

Step 1: Install Apache HTTP Server 2.2.4

apache_2.2.4-win32-x86-no_ssl.msi. Domain and server installation are filled localhost, port select 8080 (if you do not consider IIS to use 80).
Start the service, enter http://localhost:8080/ , there It works! that Apache running.

Step 2: Install PHP 5.2.5

php-5.2.5-Win32.zip, unpack to any directory (I extracted to d: \ php-5.2.5 \).

Step 3: Configuring Apache to support PHP

Editor \ Apache2.2 \ conf \ httpd.conf file, add two lines at the end:
LoadModule php5_module "d: / php-5.2.5/php5apache2_2.dll"
AddType application / x-httpd-php. Php
If the version of Apache 2.0 it should be used php5apache2.dll, additional attention to Apache's configuration file to use the / instead of \. You can then write a simple php test page into \ Apache2.2 \ htdocs. As follows:
<html> <body> <h1> <? php echo "It works!";?> </ h1> </ body> </ html>
There It works! That Apache can resolve PHP.

Step 4: Install the MySQL v5.1.46

Immediately after installation is configured, in order to avoid future trouble, please select Detailed Configuration. In the next wizard must remember two points:
1, select the Best Support For Multilingualism, so the default MySQL character set is set to UTF8, to support the Chinese store. Otherwise, later use Mantis create an account, create a project so long as the importation of Chinese, storage on the error.
2, set the root account's password, because the Mantis does not seem to support the establishment of the database root account password empty.
The rest can still use the default.

Step 5: Configure PHP to support MySQL

In the PHP installation directory, copy php.ini-dist or php.ini-recommended, and changed its name to php.ini.
1, locate the following lines:
; Windows: "\ path1; \ path2"
; Include_path = ".; C: \ php \ includes"
Include_path remove the semicolon in front, to include_path = ".; D: \ php-5.2.5 \ PEAR".
2, locate the following lines:
; Directory in which the loadable extensions (modules) reside.
extension_dir = ". /"
Read extension_dir = "d: \ php-5.2.5 \ ext", the directory contains php_mysql.dll

3, find the extension = php_mysql.dll line, remove the preceding semicolon.
4, copy D: \ php-5.2.5 \ libmysql.dll to the C: \ Windows \ System32 (Can not copy? Insiders expect this).
5, Edit \ Apache2.2 \ conf \ httpd.conf file, add a line at the end:
PHPIniDir "d: / php-5.2.5"
Use Apache parsing PHP php.ini file must be so designated location, then load the MySQL extension so that PHP modules.
The absence of any step above will receive the error: Call to undefined function mysql_connect ().

Step 6: Install Mantis 1.1.1

InstantMantis-1.1.1.zip

Unzip to any directory (I extracted to d: \ InstantMantis-1.1.1 \).

1, map the virtual path, edit the \ Apache2.2 \ conf \ httpd.conf file, add at the end:
Alias / mantis "d: / instantmantis-1.1.1/root/mantis /"
<Directory "d:/instantmantis-1.1.1/root/mantis/">
Options Indexes
AllowOverride None
Order allow, deny
Allow from all
</ Directory>
2, input http://localhost:8080/mantis/admin/install.php , fill in parameters, should all be able to read it, then click the button to create the database. Note that the Hostname column, default is localhost: 3360, modify the default port for the MySQL installation for the 3306
3, change the database connection, edit d: / instantmantis-1.1.1/root/mantis/config_inc.php, modify the following variables, such as:
$ G_hostname = 'localhost: 3306';
$ G_db_type = 'mysql';
$ G_database_name = 'mantis';
$ G_db_username = 'root';
$ G_db_password = 'password';
4, input http://localhost:8080/mantis , with built-in account administrator (password root) login. LAN access to other machines when I remember opening up port 8080 (if there is a firewall, then)

Configuring mail

1) modify the mantis in the config_defaults_inc.php configure mail sending function

#############################

# Mantis Email Settings

#############################

# --- Email variables -------------

$ G_administrator_email = '[email protected]';

$ G_webmaster_email = '[email protected]';

# The sender email, part of 'From:' header in emails

$ G_from_email = '[email protected]';

# The sender name, part of 'From:' header in emails

$ G_from_name = 'Mantis Bug Tracker';

# The return address for bounced mail

$ G_return_path_email = '[email protected]';

# Allow email notification

# Note that if this is disabled, sign-up and password reset messages will

# Not be sent.

$ G_enable_email_notification = ON;

2) modify the mantis in the config_inc.php modify configuration files to support Chinese

<? Php $ g_hostname = 'localhost: 3306'; $ g_db_type = 'mysql'; $ g_database_name = 'mantis'; $ g_db_username = 'root'; $ g_db_password = 'root';

$ G_default_language = 'chinese_simplified_utf8'; support Chinese display and database inquiry into

$ G_window_title = 'Mantis Bug';

$ G_page_title = 'Mantis Bug';

$ G_use_jpgraph = ON; support the graphical display of statements

?>

How to show statistical reports mantis

By default, Mantis graphical reporting is turned off, need to install JPGraph module.
1). Please note that JPGraph 1.x version is for php4, 2.x is for php5, please download the corresponding version.
2). Will download the package extract to a directory, I extracted to the mantis jpgraph directory under

3). Config_inc.php then add the following lines:
$ G_use_jpgraph = ON;
$ G_jpgraph_path = '. / Jpgraph / src /'; / / you can fill in your address file according to the absolute path.
4). In php.ini to "; extension = php_gd2.dll" delete the semicolon in front of this module is JPGraph charts and to display Chinese characters in the encoding conversion is necessary.
(3) JPGraph the Chinese display
1) If your interface language is Simplified Chinese or Traditional Chinese, then you will see the graphic characters are garbled because Mantis JPGraph encoding settings for the incorrect result. JPGraph will automatically be converted to UTF-8 character encoding, but the need to call time on the title so JPGraph SetFont, Mantis does not do this operation, so characters are displayed garbled.
The solution is to increase the graphics set the font code;
2) Open the $ mantis \ core \ graph_api.php, Search: graph_get_font (), add a line in which
'Chinese_gbk' => FF_SIMSUN,
3) Add in config_inc.php file
$ G_graph_font = 'chinese_gbk';
4) Open the $ JPGraph \ src \ jpg-config.inc.php
Find DEFINE ('CHINESE_TTF_FONT', 'bkai00mp.ttf');
To DEFINE ('CHINESE_TTF_FONT', 'simsun.ttc');
jpg-config.inc.php can not change, if the generated graphics in the font to the definition by itself, can be changed.
This time, if you choose the language is chinese_simplified, now you should be able to display graphical reports Chinese.
5) But if you choose the language, like me is chinese_simplified_utf8, found that reports show or garbled.
When the original JPGraph to deal more bt, so long as to see the font settings are FF_SIMSUN, on that string encoding is GB2312, the output of the time in the converted UTF8,
One fact is already UTF8, but that does not change.
Directly modify the code:
Open JPGraph under jpgraph.php file, search for them:
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);
)
Read:
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);
* /
return $ aTxt;
)
Is to comment out the code conversion code, it is best not directly deleted, or there will want to change back to trouble.
This change is actually some of the problems, if the mantis in the language of choice for some users chinese_simplified, another part of the selection for the chinese_simplified_utf8 on to die,

Upload file location set

Modify the main configuration items:

1, modify the mantis \ config_inc.php profile

$ G_allow_file_upload = ON;

$ G_file_upload_method = DISK;

If not, then manually add these two lines.

2, upload the file size by Mantis \ config_inc.php and PHP \ php.ini the double limit

Need to modify: / webapps / mantis / config_inc.php of $ g_max_file_size = 10000000; # The unit is K, 10000000K = 10 MB

PHP \ php.ini in the upload_max_filesize = 10M and post_max_size = 10M

3, in the mantis folder under the new upload

New directory in the Mantis directory, such as upload, and then set up the project in the mantis upload the file path is set to "upload" (via Web form). Upload files that will be stored in the upload directory.

But the setting is the absolute path to the server with the inside, so the results on other machines I login to submit bug when the attachment is always submitted to fail, then I put the server upload directory is set to share, and given written permission, and then configure the web page and then upload attachments, can be found successfully uploaded.

Directly in project management which can be a relative path upload_boss.

4, annex directly browse function:

When submitting an issue, sometimes there will be submitted to annex the situation screenshots, hoping to see the error screenshot and directly download it does not want to see, but for now Mantis bmp, png, gif, jpg format image files achieved in the web pages directly browsing, like other kinds of temporary files is not supported.

Implementation method, the config file $ g_preview_attachments_inline_max_size changed a bit value

When this is set to 0 in the case, then view the issue when the Annex I map was never there, but if you will that is set to a size large enough, then it will appear in the issue in the direct image, this value is bytes, I set the $ g_preview_attachments_inline_max_size = 1000000, is bmp, png, gif, jpg format image files directly demonstrated.

相关文章
  • mantis installation and configuration - more success Edition 2010-06-07

    Try to research the next mantis. Find installation and configuration is more responsible, a lot of trouble during the encounter configuration problems, Such as mail, garbled, icon support, project path access, etc., order online no detailed informati

  • ORACLE 9I (Enterprise Edition) Database server installation and configuration 2011-04-28

    ORACLE 9I (Enterprise Edition) Database server installation and configuration Note: Before installing make sure your computer is installed oracle, if not then the following instructions to install, and if installed the first reference oracle oracle u

  • VMware Server on CentOS installation and configuration under 2011-05-13

    Quote Under VMware Server on CentOS installation and configuration of 2011-02-28 14:27 Reprinted from xc_hai final edit produced xc_haiVMware Server is a VMware software, free to use (registration required for License), it can run on Windows platform

  • Turn: Glassfish v3 Server Installation and Configuration 2010-03-29

    1.1 Glassfish v3 Server Installation and Configuration 1.1.1 unzip and install the mkdir / opt / glassfish cd / opt / glassfish unzip / home/pkg/glassfish-v3-preview-b46.zip Start glassfish: / opt/glassfish/glassfishv3/bin/asadmin start-domain 1.1.2

  • Flex Installation and Configuration (change) 2010-05-01

    Need to install the software Eclipse3.3 MyEclipse6.0 (optional) Jdk1.5 Flash Plyer ActiveX 10 Windows debugger (IE) FB3_WWEJ_Plugin.exe (flex builder3) Installation Steps Eclipse Installation and Configuration (omitted) MyEclipse Installation and Con

  • Oracle installation and configuration 2010-03-28

    Click the "Start Installation", you can install ORACLE 10g, generally check whether the system configuration requirements, and then there "Oracle DataBase 10g Installation" dialog box, shown in Figure 2: When you install Oracle DataBas

  • Linux-windows-Memcahe Installation and Configuration 2010-04-08

    Summarize my search to the Linux-windows-Memcahe Installation and Configuration And I shining example of a successful configuration, where records about Memcahe installation configuration 1. Windows installed under the memcached Memcached is a high-p

  • (Transfer) Windows under Apache2.2.15 and Php5.3.2 installation and configuration 2010-04-26

    Under Apache2.2.15 and Php5.3.2 Windows installation and configuration Apache installation and configuration Open the apache website http://archive.apache.org/dist/httpd/binaries/win32/ or mirror sites http://apache.mirror.phpchina.com/httpd/binaries

  • Linux on the installation and configuration using the Tomcat documentation 2010-07-27

    Linux on the installation and configuration using the Tomcat documentation Install the downloaded software will appeal <br /> Suppose you want to download the software, all downloads in / usr / directory. Jdk: jdk-6u1-linux-i586.bin Tomcat: apache-t

  • Red5 installation and configuration 2011-02-24

    Red5 installation and configuration reference page: http://www.cahblog.com/?p=709 http://dev.firnow.com/course/6_system/linux/Linuxjs/20100604/207839.html A, Red5 Profile Red5 is an open source Java development using Flash streaming media server. It

  • Linux operating system installation and configuration of the Ethernet card 2010-12-15

    Summary With the Linux operating system is increasingly being accepted by people, how to expand the network applications on the Linux system has increasingly become issues of concern. This paper discusses in detail the basic work of the network card

  • The following svn + apache linux installation and configuration 2010-06-30

    APACHE SVN under Linux server set up the whole process of a first related to the installation package is ready, I am using here is the following a few packages Apr: apr-1.2.11.tar.gz and apr-util-1.2.2.tar.gz Apache: httpd-2.2.6.tar.gz Subversion: su

  • Linux system installation and configuration under the Apache Subversion 2010-12-23

    Linux system installation and configuration of Subversion First, the first ready-related packages, I am using here is the following a few packages Apr: apr-1.3.8.tar.gz and apr-util-1.3.9.tar.gz Apache: httpd-2.2.14.tar.gz Subversion: subversion-1.5.

  • Oracle 11.1 on RedHat Linux 5.1 x86-64 on the installation and configuration 2011-01-21

    *** Oracle 11.1 on RedHat Linux 5.1 x86-64 on the installation: 3 Check the hardware: 3.1 Memory: * At least 4G memory, grep MemTotal / proc / meminfo command to see the memory configuration; * Swap size Available RAM Swap Space Required Between 4 GB

  • mysql replication from each other based installation and configuration, and data synchronization 2011-02-10

    One, mysql replication is, what to use MySQL replication provides a database replication feature enables multiple real-time database synchronization, specifically if the following diagram: mysql replication data synchronization Why do we use mysql re

  • James mail server installation and configuration 2010-03-29

    James mail server installation and configuration of environment: Mail Server: OS: REDHAT LINUX AS 4 IP: 192.168.1.108 Subnet Mask: 255.255.0 Gateway: 192.168.1.1 DNS: 192.168.1.2 Client: Operating System: windows 2003 IP: 192.168.1.2 Subnet Mask: 255

  • ubuntu - Java Installation and Configuration 2010-03-28

    Java installation and configuration from Ubuntu English - http: / / wiki.ubuntu.org.cn / Java% E5% AE% 89% E8% A3% 85% E9% 85% 8D% E7% BD% AE * Install java: Open a terminal, execute the following command, or use Adept / Synaptic Software Manager, in

  • Apache2 + php5 + mysql under the windows installation and configuration diagrams 2010-02-16

    First ready software: Download the official Apache: apache_2.0.55-Win32-x86-no_ssl.msi , more versions here ; Download the official php: PHP-5.0.5-win32.zip , more mirror download address , more version of the download ; Download the official mysql:

  • JBoss 5.0 installation and configuration Xiangjie 2010-03-26

    JBoss 5.0 installation and configuration Xiangjie 1. Download and install JBoss In this article, I downloaded the JBoss version: JBOSS5.0 Beta4. Download: http://www.jboss.org/jbossas/downloads/ In the above download page to download JBOSS5.0 Beta4.z

  • haproxy_keepalived Installation and Configuration 2010-03-30

    haproxy_keepalived Installation and Configuration Reference to "ubuntu server best" learning how to configure the haproxy load balancing. Leave a simple installation and configuration records, and then further study. Installation Environment: ub