(mantis使用配置文档中文图表.docx
文本预览下载声明
Mantis使用配置文档V0.32012-5-23 高广林Part1 简介MantisBT全称MantisBugTracker,我们可以见名知意。作为一套使用PHP编写的开源BUG跟踪系统,mantis具有我们在开发测试中所需要的全部功能,使用B/S操作的方式,需要我们作出如下部署的支持:Web服务器:Apache,版本:2.2(此处及下面涉及的所有使用都是笔者文起日最新版本,并且是笔者认为最优的配置方式;至于其他配置方式请网上查阅)。PHP支持:php-5.4.3-Win32-VC9-x86数据库:MySQL Server 5.5PHP邮件支持:PHPMailer_5.2.1以上是搭建mantis缺陷管理系统的依赖,下面将依次介绍使用上述工具进行搭建的过程。Part2 下载并安装环境一、下载mantis:/download.php/download.php(zip文件)apache:/download.cgi/download.cgi (安装包)php:/download//download/ (zip文件)phpmailer: /a//p/phpmailer/downloads/list/a//p/phpmailer/downloads/list (zip文件)MySQL:/downloads/mysql//downloads/mysql/ (安装包)二、安装1、将已经下载的“安装文件”运行并完成安装。备注:这里我把MySQL安装到默认的路径,将Apache安装到“D:\mantis\Apache2.2”。2、将已经下载的“zip文件”解压出来。备注:这里我把mantis放在“D:\mantis\mantisbt-1.2.10”;php放在“D:\mantis\php-5.4.3-Win32-VC9-x86”;phpmailer放在“D:\mantis\PHPMailer_5.2.1”。3、添加系统环境变量,如下图所示:(Path: D:\mantis\php-5.4.3-Win32-VC9-x86;D:\mantis\php-5.4.3-Win32-VC9-x86\ext)4、添加apache的php支持(1)打开D:\mantis\Apache2.2\conf\httpd.conf文件(2)找到“DirectoryIndex”,在后添加index.php,如下图所示。(3)找到“#LoadModule vhost_alias_module modules/mod_vhost_alias.so”,在其下添 加: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)在文件最后添加:Alias /mantis D:/mantis/mantisbt-1.2.10/Directory D:/mantis/mantisbt-1.2.10/Options IndexesAllowOverride NoneOrder allow,denyAllow from all/Directory如下图所示(说明:此处的路径及全文的路径都是相对于安装路径)。5、添加mantis的邮件支持(1)找到文件 D:\mantis\mantisbt-1.2.10\config_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 = gaoguanglin@6、配置PHP(1)找到文件:D:\mantis\php-5.4.3-Win32-VC9-x86\php.ini(2)找到include_path,改为include_path = .;D:\mantis\php-5.4.3-Win32-VC9-x86, 并 去 掉前面的“引号”。(3)找到extension_dir,改为 extension_dir = D:\m
显示全部