Mantis 搭建配置过程

Mantis 搭建配置过程 2012-02-28 14:43:00
http://blog.chinaunix.net/uid-26118446-id-3085247.html

分类: WINDOWS

 

Mantis是一个基于PHP技术的轻量级的缺陷跟踪系统,是以Web操作的形式提供项目管理及缺陷跟踪服务,足以满足中小型项目的管理及跟踪。更重要的是其开源,不需要负担任何费用。
环境:Windows 2003 server
      EasyPHP-5.2.10 (安装包里集成php+mysql+apache)
      Mantisbt-1.2.8
  1. 首先安装EasyPhp ,采取默认安装在C:\Program Files\EasyPHP5.2.10
  2. 移动C:\Program Files\EasyPHP5.2.10\phpmyadmin目录到C:\Program Files\EasyPHP5.2.10\www
  3. 解压mantisbt-1.2.8移动到到C:\Program Files\EasyPHP5.2.10\www目录下,命名为mantis
  4. 为了是局域网其他计算机可以访问,修改C:\Program Files\EasyPHP5.2.10\apache\conf下的http.conf,将Listen 127.0.0.1:80修改为Listen 0.0.0.0:80,现在即可使用http://192.168.1.187/mantis 来访问了,使用默认提示下一步做完,即可登录了username:administrator           password:root
  5. 为了方便使用查看,将界面修改为中文,修改C:\Program Files\EasyPHP5.2.10\www\mantis下的config_defaults_inc.php中的

$g_default_language      = 'english';

$g_default_language      = 'chinese_simplified';

  1. 下来就是最重要的邮件配置C:\Program Files\EasyPHP5.2.10\www\mantis\config_defaults_inc.php ,修改一下选项

$g_administrator_email   = 'mantis@16feng.com';

$g_webmaster_email       = 'mantis@16feng.com’;

$g_from_email             = 'mantis@16feng.com';

$g_return_path_email      = 'mantis@16feng.com';

$g_phpMailer_method      = 2;

$g_smtp_host              = 'smtp.16feng.com';

  1. 修改C:\Program Files\EasyPHP5.2.10\php\php.ini

SMTP = smtp.16feng.com

sendmail_from = mantis@16feng.com

  1. 需要使用 phpmyadmin 网页管理,需要修改
  2. $cfg['Servers'][$i]['auth_type'] = 'config';

$cfg['Servers'][$i]['auth_type'] = 'http';

10.为了mysql的管理端安全,我给phpmyadmin加了访问控制权限,在C:\Program Files\EasyPHP5.2.10\apache\conf\httpd.conf最后加上下边的内容

 

<directory "c:\program="" files\easyphp5.2.10\www\phpmyadmin"="">

Options Indexes MultiViews

AllowOverride all

Order Deny,Allow

  Deny from all

  Allow from 192.168.1.188

 

 

11.修改mysql连接限制修改,

C:\Program Files\EasyPHP5.2.10\mysql\my.ini

注释掉bind-address = 127.0.0.1

C:\Program Files\EasyPHP5.2.10\conf_files\my.ini

注释掉bind-address = 127.0.0.1

12.修改严重级别,处理状况等信息

严重级别:

编辑config_defaults_inc.php  设置$g_show_realname = ON;查找g_severity_enum_string    字段,我这里需要5个级别,数字越大级别越高$g_severity_enum_string  = 10:feature,30:text,50:minor,70:crash,80:block';

想对应的在C:\Program Files\EasyPHP5.2.10\www\mantis\lang\strings_chinese_simplified.txt里对应的选项$s_severity_enum_string = '10:建议,30:轻微,50:一般,70:严重,80:致命';

处理状况信息:

编辑config_defaults_inc.php设置$g_resolution_enum_string        = '10:open,20:fixed,30:reopened,40:unable to duplicate,50:not fixable,60:duplicate,70:not a bug,80:suspended,90:wont fix';

相对应的在C:\Program Files\EasyPHP5.2.10\www\mantis\lang\strings_chinese_simplified.txt里对应的选项$s_resolution_enum_string = '10:已修改,20:待确认,30:遗留补丁处理,40:遗留后续版本,50:重新打开,60:无法重现,70:无法修复,80:重复问题,90:不必修改';

其他的加减字段之类的,依次类推即可!

 

 

基本上大的框架就已经ok了!
 
 
 
 
ps:
问题1.
这个问题是由于给phpmyadmin设置了密码,并设置$cfg['Servers'][$i]['auth_type'] = 'http'; 导致phpmyadmin可以进去,mantis乱码,并进不去了,C:\Program Files\EasyPHP5.2.10\www\mantis\config_inc.php  里没有输入在phpmyadmin里设置对应的密码
 
问题2:
mantis 发送不了邮件,smtp服务正常!
请检查mantis服务器是有能上外网!如果不能上外网,不能发送邮件!
 
 
posted @ 2017-11-27 09:56  sky20080101  阅读(288)  评论(0)    收藏  举报