1. 适用范围

a. 本文介绍基于 Windows 下的缺陷管理平台 Mantis。

2. 软件准备

a. 下载 EasyPHP:http://www.easyphp.org/easyphp-devserver.php

b. 下载 MantisBT:http://www.mantisbt.org/download.php

本文以 mantisbt-1.2.15 + EasyPHP-DevServer-13.1VC11 为演示版本,并在 Windows 7 64 位和 32 位操作系统上测试通过。

3. 安装 EasyPHP

a. 双击 EasyPHP-DevServer-13.1VC11-setup.exe 安装,安装完运行,右下脚托盘处出现E图标。

b. 启动 Apache 如遇丢失 MSVCR110.dll 错误(见 a1), 从网上下载 MSVCR110.dll,并将此文件复制到 C:\Windows\System32 目录。64 位操作系统复制到 C:\Windows\SysWOW64 目录。

c. 启动 Apache 如遇端口被占用错误(见 b1),打开配置文件:C:\Program Files (x86)\EasyPHP-DevServer-13.1VC9\binaries\apache\conf\httpd.conf, 查找 Listen 127.0.0.1:80,将 80 端口改为可用的端口号,如:9494,保存后,重启EasyPHP。

查看端口是否被占用: netstat -aon|findstr "端口号"。

d. 如果在打开 Local Web 或者 Administration 页面的时候发现加载很慢,可尝试修改 hosts 文件(见 c1)。

a1.

b1.

---------------------------
Apache
---------------------------
Apache port (80) is used by  System ! Close this application and relaunch EasyPHP. Apache port can be changed via the administration page.
---------------------------
确定  
---------------------------

c1.

文件位置: C:\Windows\System32\drivers\etc

修改前:

# localhost name resolution is handled within DNS itself.
# 127.0.0.1       localhost
# ::1             localhost

修改后:

# localhost name resolution is handled within DNS itself.
   127.0.0.1       localhost
# ::1             localhost

4. 安装配置 mantis

A. 解压 mantisbt-1.2.15.zip。

B. 复制文件夹到 C:\Program Files\EasyPHP-DevServer-13.1VC11\data\localweb 目录下。

C. 右键 Windows 托盘的(EasyPHP) 图标 ,打开 Local Web(或者浏览器中输入: http://127.0.0.1/)。

D. 打开 mantisbt-1.2.15(或者浏览器中输入: http://127.0.0.1/mantisbt-1.2.15/login_page.php)

E. 在页面上点击 Install/Upgrade Database 按钮进行数据库安装,如果安装过程出现 d1错误,清空 Password (for Database),Admin Username (to create Database if required) 和 Admin Password (to create Database if required) 里面的内容即可。

F. 如遇 d2 错误,Username (for Database) 填上 root 即可解决问题。

Note: MySQL 的默认用户是 root,密码为空。

F. 查看是否可打开 mantis 登录页面(Example: http://127.0.0.1/mantisbt-1.2.15/login_page.php)。

G. 配置完成的 Mantis 只有一个默认的系统管理员用户:administrator,密码: root。

d1.

BAD
Does administrative user have access to the database? ( Access denied for user 'root'@'localhost' (using password: YES) )

d2.

BAD
database username is blank

5. 修改显示语言(默认显示为英语)

修改配置文件: C:\Program Files\EasyPHP-DevServer-13.1VC11\data\localweb\mantisbt-1.2.15\config_defaults_inc.php

修改前: $g_default_language  = 'english';

修改后: $g_default_language  = 'chinese_simplified';

6. 配置邮件服务器

修改配置文件 config_defaults_inc,只需修改以下变量,就可发送邮件成功。

修改前:

$g_from_email = 'noreply@example.com';

$g_return_path_email = 'admin@example.com';

$g_phpMailer_method = PHPMAILER_METHOD_MAIL;

$g_smtp_host = 'localhost';

$g_smtp_username = '';

$g_smtp_password = '';

修改后:

$g_from_email = 'liangjunjia@126.com';

$g_return_path_email = 'liangjunjia@126.com';

$g_phpMailer_method = 2;

$g_smtp_host = 'smtp.126.com';

$g_smtp_username = 'liangjunjia@126.com';

$g_smtp_password = 邮箱密码;

Note: 这边示例使用的是 126 作为邮件服务器,可使用第三方(比如163,sina,Gmail...)或自己搭邮件服务器。

7. 用 Administrator 注册新用户时设置密码

在 Mantis 目录下 config_defaults_inc.php 文件中找到 $g_send_reset_password

然后设置成:$g_send_reset_password = OFF  即可。

修改前:

    /**
     * If ON, users will be sent their password when their account is created
     * or password reset (this requires mail settings to be correctly configured).
     * If OFF, then the Administrator will have to provide a password when
     * creating new accounts, and the password will be set to blank when reset.
     * @global int $g_send_reset_password
     */
    $g_send_reset_password    = ON;

修改后:

    /**
     * If ON, users will be sent their password when their account is created
     * or password reset (this requires mail settings to be correctly configured).
     * If OFF, then the Administrator will have to provide a password when
     * creating new accounts, and the password will be set to blank when reset.
     * @global int $g_send_reset_password
     */
    $g_send_reset_password    = OFF;

8. 配置局域网访问

A. 修改配置文件: C:\Program Files (x86)\EasyPHP-DevServer-13.1VC9\binaries\conf_files\httpd.conf

修改前:Listen 127.0.0.1:80

修改后:Listen 192.168.0.103:80

Note:192.168.0.103 为 Mantis 服务器的 IP 地址。

B. 验证配置是否成功

在局域网的任一电脑中输入:http://192.168.0.103/mantisbt-1.2.15/login_page.php,如能打开,配置成功。

Mantis 安装与配置的更多相关文章

  1. Mantis安装与配置

    什么是Mantis MantisBT is a free popular web-based bugtracking system (feature list). It is written in t ...

  2. 缺陷管理平台mantis安装及配置

    软件说明:Mantis是一个基于PHP技术的轻量级的开源缺陷跟踪系统,以Web操作的形式提供项目管理及缺陷跟踪服务.在功能上.实用性上足以满足中小型项目的管理及跟踪.更重要的是其开源,不需要负担任何费 ...

  3. 安装和配置Mantis<项目管理工具>

    说明: 黑色加粗部分为配置文档修改或添加的内容,例如index.cgi意思为修改或添加index.cgi 红色加粗部分为操作控制而非直接输入,例如空格意思为此处需要按下空格键 一.介绍 Apache: ...

  4. Mantis 1.2.19 on Windows Server 2012 r2 datacenter 安装及配置随笔

    一.前言 新的小团队需要搭建一个缺陷管理的工具,之前用过bugfree,感觉比较适合,但是 禅道不太适合,放弃之,于是又百度推荐的: .JTrac13.BugNet14.BugOnline15.eTr ...

  5. JDK安装与配置

    JDK安装与配置 一.下载 JDK是ORACLE提供免费下载使用的,官网地址:https://www.oracle.com/index.html 一般选择Java SE版本即可,企业版的选择Java ...

  6. Node.js 教程 01 - 简介、安装及配置

    系列目录: Node.js 教程 01 - 简介.安装及配置 Node.js 教程 02 - 经典的Hello World Node.js 教程 03 - 创建HTTP服务器 Node.js 教程 0 ...

  7. 烂泥:redis3.2.3安装与配置

    本文由ilanniweb提供友情赞助,首发于烂泥行天下 想要获得更多的文章,可以关注我的微信ilanniweb 前一段时间写过一篇codis集群的文章,写那篇文章主要是因为当时的项目不支持redis自 ...

  8. mysql源码包手动安装、配置以及测试(亲测可行)

    笔记编者:小波/qq463431476博客首页:http://www.cnblogs.com/xiaobo-Linux/ 记下这篇mysql笔记,望日后有用! redhat6采用centos yum源 ...

  9. 环境搭建系列-系统安装之centos 6.5安装与配置

    按照国际惯例,系列目录先奉上: 系列一:系统安装之centos 6.5安装与配置 系列二:准备工作之Java环境安装 系列三:数据为先之MySQL读写集群搭建 系列四:谈分布式之RabbitMQ集群搭 ...

随机推荐

  1. 【转】photoshop CS2安装激活破解教程

    原文网址:http://www.16xx8.com/photoshop/jiaocheng/109348_all.html photoshop CS2安装教程:(本页介绍如何安装CS2软件,如果你安装 ...

  2. jquery图片轮播-插件

    更新内容: 1. 页面结构和css样式必定类似下边放置 2. 点击左右按钮,实现左右滑动. 3. 这一般用于多个图片轮播使用,简化并优化代码. 若因不同需求,均可自行将插件scrollimgplus. ...

  3. 教你用Java安全有效的实现两星期内自动登陆功能-Session

    现在很多网站都有为用户保存登陆信息(即保存Cookie)的功能,当用户下一次进入网站时,可以帮助用户自动登陆,使网站显得更加友好.笔者通过研究ACEGI项目的自动登陆源码,编写了一个安全有效的实现两星 ...

  4. 黑盒测试用例设计方法&理论结合实际 -> 场景法

    一概念 现在的软件几乎都是用事件触发来控制流程的,事件触发时的情景便形成了场景,而同一事件不同的触发顺序和处理结果就形成事件流.这种在软件设计方面的思想也可以引入到软件测试中,可以比较生动地描绘出事件 ...

  5. Base-Android快速开发框架(三)--数据存储之SQLite

    SQLite,是一款轻量级的关系型数据库,Android原生集成的一个数据库.具有轻量级.独立性.隔离性.安全性等特点.是Android做数据存储的必备知识之一. 在实际的项目中,我们常用于一些对象的 ...

  6. sprintf的缓冲区溢出

    sprintf的缓冲区溢出 分类: 技术2010-03-07 15:26 362人阅读 评论(0) 收藏 举报 今天,调试sector的时候遇到一个特奇怪的问题,程序会在取string的c_str() ...

  7. JQuery原理

    1.简单模拟JQuery工作原理 (function(window){ var JQuery ={ a: function(){ alert('a'); }, b: function(){ alert ...

  8. Java 开发@ JDBC链接SQLServer2012

    下面请一字一句地看,一遍就设置成功,比你设置几十遍失败,费时会少得多. 首先,在连接数据库之前必须保证SQL Server 2012是采用SQL Server身份验证方式而不是windows身份验证方 ...

  9. POJ 3764 (异或+字典树)

    早就听过用字典树求异或最大值,然而没做过.发现一碰到异或的题就GG,而且因为以前做过的一道类似的题(事实上并不类似)限制了思路,蠢啊= =. 题意:一棵带权的树,求任意两点间路径异或的最大值. 题解: ...

  10. Spark的部署方式

    1.Spark的应用程序部署 2.Spark的集群部署