在PHP4.4.1+MySQL4.1.16+Apache2.0.55环境下安装Mantis

上一篇 / 下一篇  2010-07-08 20:12:32 / 个人分类:测试工具

PHP,MySQL,Apache的安装参见

http://www.51testing.com/index.php?uid-8151-action-viewspace-itemid-216842

本文只描述Mantis的安装,假如安装目录是D:\mantis.
为apache安装mantis系统
   打开<apache>\conf\httpd.conf文件,添加如下内容到文件尾
   Alias /mantis "D:/mantis/"
   <Directory "D:/mantis/">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>
  查找DirectoryIndex,添加index.php到后面。像这样DirectoryIndex index.html index.html.var index.php
   5)创建数据库
   通过命令行方式进入MySQL,创建数据库
   create database bugtracker;
   use bugtracker;
   source d:\mantis\sql\db_generate.sql;
  当然你也可以用其它GUI工具创建数据库。
   6)mantis配置
   将d:\mantis下的config_inc.php.sample复制一份,并改名为config_inc.php
  如果你改了root的密码,打开这个文件,设置$g_db_password='yourpassword'
   
   7)启动bug tracking system
   首先启动apache和mysql,
   在址栏输入http://192.168.1.104:80/mantis/index.php,应该可以看到初始页面了。用amdinistrator/root登录,mantis 开始为你工作
   9)邮件服务器配置
   在d:\php\php.ini文件中查找smtp,将localhost改为你的发件服务器,如SMTP smtp.163.com
   在php.ini文件中查找sendmail_from,将前面的分号去掉,并在后面填上邮件地址
   在d:\mantis\config_inc.php文件中添加
   $g_smtp_host='smtp.163.com';
   $g_smtp_username='yourusername';
   $g_smtp_password='yourpassword';
   $g_phpMailer_method =2; 
 
   查找$g_return_path_email,将后面的邮件地址改为有效的地址,这一点非常重要,不然将无法正常发送激活注册的邮件.
   config_inc.php其它邮件地址最好也改为有效的地址.
   $g_smtp_username,$g_smtp_password在服务器需要验证时用,不需验证时不用加,或设为
   $g_smtp_username=''
   $g_smtp_password=''
   现在你可以注册新用户,并使用发送邮件功能了。


TAG: Mantis mantis 测试

 

评分:0

我来说两句

日历

« 2023-11-27  
   1234
567891011
12131415161718
19202122232425
2627282930  

数据统计

  • 访问量: 27380
  • 日志数: 24
  • 建立时间: 2010-07-07
  • 更新时间: 2011-02-11

RSS订阅

Open Toolbar