mantis使用配置文档

上传人:鲁** 文档编号:509930454 上传时间:2023-12-14 格式:DOCX 页数:30 大小:184.04KB
返回 下载 相关 举报
mantis使用配置文档_第1页
第1页 / 共30页
mantis使用配置文档_第2页
第2页 / 共30页
mantis使用配置文档_第3页
第3页 / 共30页
mantis使用配置文档_第4页
第4页 / 共30页
mantis使用配置文档_第5页
第5页 / 共30页
点击查看更多>>
资源描述

《mantis使用配置文档》由会员分享,可在线阅读,更多相关《mantis使用配置文档(30页珍藏版)》请在金锄头文库上搜索。

1、Mantis 使用配置文档V0.32012-5-23 高广林Part1 简介MantisBT全称MantisBugTracker,我们可以见名知意。作为一套使用PHP编写的开源BUG 跟踪系统,mantis具有我们在开发测试中所需要的全部功能,使用B/S操作的方式,需要我 们作出如下部署的支持:1、 Web服务器:Apache,版本:2.2 (此处及下面涉及的所有使用都是笔者文起日最 新版本,并且是笔者认为最优的配置方式;至于其他配置方式请网上查阅)。2、PHP 支持: php-5.4.3-Win32-VC9-x863、数据库: MySQL Server 5.54、PHP 邮件支持: PHPM

2、ailer_5.2.1以上是搭建 mantis 缺陷管理系统的依赖,下面将依次介绍使用上述工具进行搭建的过 程。Part2 下载并安装环境一、下载1、mantis: http:/www.mantisbt.org/download.php(zip 文件)2、apache: http:/httpd.apache.org/download.cgi (安装包)3、php: http:/ (zip 文件)4、phpmailer: http:/code.google.eom/a/apache-extras.org/p/phpmailer/downloads/list ( zip 文件)5、MySQL: h

3、ttp:/ (安装包)二、安装1、将已经下载的“安装文件”运行并完成安装。备注:这里我把MySQL安装到默认的路径,将Apache安装到“D:mantisApache2.2。2、将已经下载的“zip文件”解压出来。备注:这里我把 mantis 放在“ D:mantismantisbt-1.2.10”; php 放在“D:mantisphp-543-Win32-VC9-x86”; phpmailer 放在“D:mantisPHPMailer_521”。3、添加系统环境变量,如下图所示:(Path: D:mantisphp-5.4.3-Win32-VC9-x86;D:mantisphp-5.4.3

4、-Win32-VC9-x86ext)4、添加 apache 的 php 支持(1) 打开 D:mantisApache2.2confhttpd.conf文件(2) 找到“Directorylndex”,在后添加index.php,如下图所示。it Directory Index: sets the file that Apache will serue if a directory tt is requested.IfhlodulE dirnodulEDirectoriilndexindex_html index_php(3) 找到 “#LoadModule vhost_alias_modul

5、e modules/mod_vhost_alias.so,在其下添 加I : LoadModule php5_module D:/mantis/php-5.4.3-Win32-VC9-x86/php5apache2_2.dll 再起一行添加 PHPIniDir D:/mantis/php-5.4.3-Win32-VC9-x86(4) 找到“AddType application/x-gzip .gz .tgz” 在其下添加:AddType application/x-httpd-php .php 再起一行添加:AddType application/x-httpd-php .html(5) 在

6、文件最后添加:Alias /mantis D:/mantis/mantisbt-1.2.10/Options IndexesAllowOverride NoneOrder allow,denyAllow from all 如下图所示(说明:此处的路径及全文的路径都是相对于安装路径)。Alias /mantis D:/manti5/manti5bt-1.2.10/Directory ):/mantis/inantisbt-1Options Ind?K?sAllowOue-rride- NonaOrder allovj,denyAllovi from all5、添加 mantis 的邮件支持(1)

7、 找到文件 D:mantismantisbt-1.2.10config_inc.php(2) 添加内容(注:邮箱地址请输入自己的正确地址),如下图所示:$g_smtp_host = ;$g_smtp_username = gaoguanglin;$g_smtp_password = 123456;$g_use_phpMailer = ON;$g_phpMailer_path = D:/mantis/PHPMailer_5.2.1;$g_phpMailer_method = 2;$g_return_path_email = Mg ho namE =6、配置PHP 找到文件:D:mantisphp

8、-543-Win32-VC9-x86php.ini 找到 include_path,改为 include_path = .;D:mantisphp-5.4.3-Win32-VC9-x86,并 去掉前面的“引号”。 找到 extension_dir,改为ext ension_dir = D:man tisphp-5.4.3-Win32-VC9-x86ex t,并去掉前面的引号,如下图所示。;Directory in vhich the loadable extensions (modules) reside ;http:/php.nEt/ExtenMion-dir;extension dir =

9、./;On uindoi/s:LocaLhct1;Sg_dt_7.ype =r ;t g daTaiiase name = 1 fc agtiackez:r ;f g dfc 二m亡hh己me = roo七(;Sg dfc -Gasswzid = L2 j-di-6 ;.5exnnve = g己口芯“己ugJ.二u ;$g_sintp_pa;5svoid = 123 -:5 6 1 ;$g 15e iirnaile = ON;$g plii-IelLer patL =: r.且=t二w 孑工二启二二三h ;$g_ptiHaiLer_mErE:od = 2 ;$g ieT J.rn,atii e

10、niaiL =1 gat ?二己ugJ.二二;aiiinda . ret.、二 chine-se simplifiedn “Preferences ” 设置语言为保存设置,查看功能,如下图所示。mantis12 I起曲祝囲|芟晋问題I血何題|迥日妄I嶂辭 |统汁狼黍I UJ |牛人罠料| 超已七诵弘决a/a己赵怕【(- a/Q-(oPart4 添加报表显示功能1、下载 jpgraph-3.0.7.tar.gz,下载地址:http:/ 将下载的文件解压缩到jpgraph文件夹(此时该文件夹中包含src、docportal文件夹等), 如下图所示。3、复制上一步的jpgraph文件夹到路径“man

11、tisbt_home%/library”下面。4、在文件“mantisbt_home%/config_inc.php” 中添加如下代码:$g_graph_font = simsun;$g_use_jpgraph = ON;5、找到文件“php_home%/php.ini”,找到其中的;extension=php_gd2.dll,去掉前面的分 号,保存文件。6、找到文件“mantisbt_home%/config_defaults_inc.php”,找到 $g_default_language 并 设置为:$g_default_language = chinese_simplified;6、找到

12、“%mantisbt_home%/library/jpgraph/jpgraph_ttf_inc.php”,找到:elseif( $aFF = FF_SIMSUN ) / Do Chinese conversion设置为:elseif( $aFF = FF_SIMSUN ) / Do Chinese conversionreturn $aTxt;7、 以管理员身份登录mantis系统,点击“管理”“插件管理”-安装插件。8、找到文件“mantisbt_home%/plugins/MantisGraph/pages/config.php” 做出如下修改: $t_current_font_selected = array(simsun = false,/增加这一行arial = false,/Sans-serif:input type=radio name=font value=simsun/Simsun /增加这一行input type=radio name=font value=arial?php echo print_font_checked( arial )

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 学术论文 > 其它学术论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号