mantis安装与配置(Windows+Mysql+PHP+IIS)

上一篇 / 下一篇  2007-12-16 18:10:41 / 个人分类:测试管理

已在下列系统安装运行成功:
Win2000_sp4,WinXP_sp2

所需软件:

mysql-4.0.8-win32        mysql数据库
mysqlcc-0.9.3-win32      Control Center图形界面
php-4.4.2-installer.exe  PHP环境
mantis-0.19.4.rar        bugs缺陷管理工具 

安装过程: 

全部选默认安装路径

1.安装mysql-4.0.8-win32
2.安装mysqlcc-0.9.3-win32
3.安装php-4.4.2-installer.exe
4.运行C:\mysql\bin\winmysqladmin.exe
5.运行MySQL Control Center,在Register Server窗口中的Host Name:wind(你的计算机名字),
  点Add.在Console Manager窗口中双击root@wind:3306开启连接.
6.设置Mantis

1) 打开IIS管理器,在默认网站中增加一个虚拟目录Mantis,指向你的Mantis解压缩目录(这里使用C:\Mantis),在“属性”窗口的“文档”页面增加默认文档“index.php”;
2) 将C:\Mantis中的config_inc.php.sample复制一份,改名为config_inc.php,修改其中的设置; Mantis的设置是这样保存的:在config_defaults_inc.php中保存这Mantis的默认设置,用户自己的设置信息保存在config_inc.php中,如果某个选项在config_inc.php中有设置,则系统使用config_inc.php中的设置,否则使用config_defaults_inc.php的系统默认设置;config_inc.php.sample则是Mantis给出的一个用户设置文件例子。 所以我们需要修改config_inc.php文件中的设置,设置很简单,各个参数的意义可以参见config_defaults_inc.php,这里对每个参数都有详细的解释,虽然是E文,不过应该都能看懂;Sample中给出的一些设置是一定需要修改的,比如MySQL数据库的连接参数,管理员的邮箱的;其他的要根据你的实际情况进行修改.下面是我的一些自定义参数,其中一些参数($g_use_jpgraph 和$g_use_phpMailer的设置请参照下面的内容):
$g_use_iis = ON; # 使用IIS
$g_show_version = OFF; # 不在页面下部显示 Mantis的版本号
$g_default_language = 'chinese_simplified'; # 默认语言为简体中文
$g_show_project_menu_bar = ON; # 显示项目选择栏
$g_show_queries_count = OFF; # 在页脚不显示执行的查询次数 $g_default_new_account_access_level = DEVELOPER; # 默认用户级别
$g_use_jpgraph = ON; # 使用图形报表
$g_jpgraph_path = 'C:/PHP/includes/JPGraph/src/'; # JPGraph路径
$g_window_title = 'Mantis Bug 跟踪管理系统'; # 浏览器标题
$g_page_title = 'Mantis Bug 跟踪管理系统'; # 页面标题栏
$g_enable_email_notification = ON; # 开通邮件通知
$g_smtp_host = 'smtp.mail.net'; # SMTP 服务器
$g_smtp_username = 'mailuser'; # 邮箱登录用户名
$g_smtp_password = 'mailpwd'; # 邮箱登录密码
$g_use_phpMailer = ON; # 使用 PHPMailer 发送邮件
$g_phpMailer_path = 'C:/PHP/includes/PHPMailer/'; # PHPMailer 的存放路径
$g_phpMailer_method = 2; # PHPMailer 以 SMTP 方式发送 Email
$g_file_upload_ftp_server = 'ftp.yourftp.com'; # 上传文件 FTP
$g_file_upload_ftp_user = 'ftpuser'; # FTP 登录用户名
$g_file_upload_ftp_pass = 'ftppwd'; # FTP 登录密码
$g_short_date_format = 'Y-m-d'; # 短日期格式,Y 大写表示 4 位年
$g_normal_date_format = 'Y-m-d H:i'; # 普通日期格式
$g_complete_date_format = 'Y-m-d H:i:s'; # 完整日期格式

完成以上设置以后,你就可以使用Mantis了,打开IE,输入http://localhost/mantis,应该就可以
看到Mantis的登录页面了,你可以用默认用户名administrator和密码root登录进去,进行管理设置。 


TAG: Mantis

 

评分:0

我来说两句

guobin_it

guobin_it

软件测试技术交流群60926703 (已满) CDN流媒体测试技术交流群126760166 (未满)

日历

« 2024-04-15  
 123456
78910111213
14151617181920
21222324252627
282930    

数据统计

  • 访问量: 107987
  • 日志数: 57
  • 建立时间: 2007-12-14
  • 更新时间: 2011-07-07

RSS订阅

Open Toolbar