• wamp服务器下安装mantis


    什么是Mantis

    Mantis是一个BUG管理系统。主要特点如下:

    1、用php写的系统,安装方便,不用像 bugzilla 那样安装那么多perl支持;

    2、系统相对简单轻磅,使用简单;

    3、出色的多语支持,对于对日开发等公司非常合适;

    界面图示:


    在线演示地址:http://demo.mantisbt.org.

    安装Mantis

    建立Bug数据库,要用utf-8编码

    点击选择“mantis”,进入页面:


     不用修改/填写任何值,直接点击页面最下方的“Install/Upgrade Database”按钮 

    成功后可看到如下页面:

     

    OK,到此为止,Mantis系统已经搭建成功了。下面立刻验证一下是否已配置成功!

    输入“http://127.0.0.1/mantis/login_page.php,进入页面:

     

     配置完成的Mantis的只有一个默认的系统管理员用户:

    账号:administrator

    密码:root

    就这么简单,一个Bug管理系统就配置完成了,Mantis已经可以投入使用啦!但——实际使用中还是会有问题产生,如:Mantis配置完成后,默认配置完成的系统是English版本的,且只支持English,不支持Chinese,具体表现在:若在任何一个字段中输入中文成功保存后,再显示出来就是乱码(而解决中文显示乱码的问题很是棘手,且根据情况的不同解决的方法也不同,在网上搜索一下就有一大堆。。。),具体解决方法请继续往下Look……

    中文版配置

     配置完成时,Mantis默认为English系统,而要使用中文版Mantis则需要修改配置文件。

     配置方法:

     打开Mantis目录,用记事本打开config_defaults_inc.php 文件,找到如下代码片段:

    # — language settings ———–

    # If the language is set to 'auto', the actual

    # language is determined by the user agent (web browser)

    # language preference.

    $g_default_language                = 'english';

    ……

    将english  改为chinese_simplified

    修改完成后的代码片段如下所示:

    ……

    # — language settings ———–

    # If the language is set to 'auto', the actual

    # language is determined by the user agent (web browser)

    # language preference.

    $g_default_language                = 'chinese_simplified';

    ……

    验证配置是否成功:

    再次在浏览器地址中输入“http://127.0.0.1/mantis/login_page.php” 进入页面:

    OK,成功了。登录后,也一样是全中文的界面: 

    邮件提醒

    默认情况下,Mantis使用内置的Mailto()函数进行邮件的发送,包括新用户注册发送密码、Bug改变提醒、重设密码等邮件的发送都使用MailTo()来完成。不过实际使用中发现,MailTo函数好像不支持需要校验的邮件服务器。

    如果你想使用比如163邮箱,就需要使用PHPMailer模块,mantisbt-1.2.8 已经集成了PHPMailer,放在mantis的library目录下面。

    在config_inc.php文件中添加

    $g_administrator_email= 'post@xxx.com';

    $g_webmaster_email= 'post@xxx.com';

    $g_from_email= 'noreply@xxx.com';

    $g_from_name= 'Mantis Bug Tracker';

    $g_return_path_email= 'post@xxx.com';

    $g_enable_email_notification= ON;

    $g_smtp_host= 'smtp.xxx.com';               # SMTP 服务器

    $g_smtp_username= 'xxx@xxx.com';            # 邮箱登录用户名

    $g_smtp_password= 'xxx';                         # 邮箱登录密码

    $g_use_phpMailer= ON;                                # 使用 PHPMailer 发送邮件

    $g_phpMailer_path= './library/phpmailer/';            # PHPMailer 的存放路径

    $g_phpMailer_method= 2;                                 # PHPMailer 以 SMTP 方式发送 Email

    注意:$g_return_path_email必须为有效的地址,如yourusername@163.com,这一点非常重要,不然将无法正常发送激活注册的邮件。

    现在你可以注册新用户,并使用发送邮件功能了。

    转自http://www.clin8888.com/archives/351/

    mantis下载地址http://pan.baidu.com/s/1mguwqlM

  • 相关阅读:
    HTML DOM 06 节点关系
    HTML DOM 05 事件(三)
    HTML DOM 05 事件(二)
    HTML DOM 05 事件(一)
    html DOM 04 样式
    html DOM 03 节点的属性
    html DOM 02 获取节点
    html DOM 01 节点概念
    JavaScript 29 计时器
    JavaScript 28 弹出框
  • 原文地址:https://www.cnblogs.com/liuwenbohhh/p/4512517.html
Copyright © 2020-2023  润新知