Mantis安装

环境:

apache_2.0.59-win32-x86-no_ssl.msi
php-5.1.6-Win32

mysql-5.0.18-win32.zip

PHPMailer_v5.0.2


Mantis:
mantisbt-1.2.4

1.配置PHP

   PHP文件夹放在C盘根目录下(放在其它目录也可以),将php.ini-dist重命名为php.ini,打开php.ini编辑:

   (1)extension_dir = "./"改为extension_dir = "c:/php/ext"

   (2);extension=php_mbstring.dll去掉前面的分号

   (3);extension=php_mysql.dll去掉前面的分号

   (4);session.save_path = "/tmp"改为session.save_path ="C:/windows/temp"

    (5)加入环境变量:c:/php和c:/php/ext

2.配置apache

   对于httpd.conf文件,在未尾加上以下行

   #PHP 5
    LoadModule php5_module "c:/php/php5apache2.dll"
    AddType application/x-httpd-php .php 
   #php.ini的路径
   PHPIniDir "C:/php"


(20150731)注意:如果是安装包是httpd-2.2.25-win32-x86-no_ssl.msi,上面的配置应改为

LoadModule php5_module "c:/php/php5apache2_2.dll"
<IfModule mod_php5.c>
  PHPINIDir "c:/php"
  AddType application/x-httpd-php .php
  #AddType application/x-httpd-php-source .phps
</IfModule>


3.mySql安装

   1)安装时,遇到复选框□skip sign-up,记得勾选。

  2)遇到有standard的选项,勾选。

  3)遇到□Include Bin,勾选。

  4)密码设置为root

  5)为了使用方便,可以考虑再安装一个图形化管理工具,这里我推荐使用mysql-gui-tools-5.0-r11a-win32.msi

  6)如果服务器上启用了防火墙,那么需要在防火墙设置中添加一个例外端口,如端口号为3306

4.安装mantis

  (1)将mantisbt-1.2.4复制到Web服务器的htdocs目录下,更名mantis。

  (2)创建Mysql数据库mantis,命令:mysql> create database mantis;

  (3) 修改root帐号的密码。这个步骤主要是因为4.1版本后的MySQL使用了基于不同的密码算法的认证协议。如果服务器更新了版本,但是客户端API没有相应更新,就会出现认证失败的情况。这个情况可以通过执行以下sql语句来解决。

 

mysql> update mysql.user set password = OLD_PASSWORD('root') where host = 'localhost' and user = 'root';

mysql> flush privileges;

    (4)为Mantis创建用户并赋予权限
mysql> use mantis;

Mantis用户名/密码:mantis:

mysql> grant select,insert,update,alter,index,create,delete,drop on Mantis.* to mantis@"%" identified by "mantis";

mysql> grant select,insert,update,delete,index,drop,create,alter on Mantis.* to mantis@"localhost" identified by "mantis";

mysql> update mysql.user set password = OLD_PASSWORD('mantis') where host = 'localhost' and user = 'mantis';

mysql> flush privileges;

      (5)将config_inc.php.sample改成config_inc.php,并打开修改:

      $g_hostname      = 'localhost';
      $g_db_username   = 'mantisdbuser';
      $g_db_password   = '';
      $g_database_name = 'bugtracker';
      $g_db_type       = 'mysql';

  改成:   
      $g_hostname = 'localhost';
      $g_db_type = 'mysql';

      $g_database_name = 'mantis';
      $g_db_username = 'mantis';
      $g_db_password = 'mantis'; 

 

      在文件未尾加上支持中文和禁止邮件通知的语句

            $g_default_language = 'chinese_simplified';
            $g_enable_email_notification = OFF;

 

   (6)安装Mantis

     在浏览器中输入:http://localhost:8080/mantis/admin/install.php,可以登陆mantis安装目录。

     admin用户名/密码:root

     mantis的用户名/密码:mantis

     根据提示生成数据库的表和基本数据

   (7)登陆mantis

 

 

    在浏览器中输入:http://localhost/mantis/login.php

 

   (8)让MANTIS支持发邮件

      a.下载PHPMailer_v5.0.2

      b.将PHPMailer_v5.0.2放到C:/PHP目录下

      c.在PHP.INI上加上一行   include_path="C:/php/PHPMailer_v5.0.2"

      d.将mantis下的文件config_inc.php的# --- Email Configuration ---下的内容全部注释

        然后加上以下内容

        # --- email variables -------------
$g_send_reset_password=OFF;
$g_enable_email_notification= ON;
$g_use_phpMailer = ON;
$g_phpMailer_path = 'c:/php/PHPMailer_v5.0.2/';
$g_phpMailer_method = 2;
$g_smtp_host = '邮件服务器';
$g_smtp_username = '登陆名';
$g_smtp_password = '登陆密码';

# --- email variables -------------
$g_administrator_email  = 'test@test.cn';
$g_webmaster_email      = 'test@test.cn';

# the "From: " field in emails
$g_from_email= 'test@test.cn';

     

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
借助XAMPP安装Mantis(Mantis for Windows)_最简单适用 1.安装之前,下载下列软件 XAMPP --->Apache,php,MySQL架设包 1.7.1 Mantis-1.1.6 2.安装xampp 执行刚下载的执行档即可 3.建立MySQL的使用者账号 利用xampp提供的页面来设定即可 具体设置方法如下: a、使用http://localhost登录XAMPP主页面(必须要在服务器上运行) b、点击左侧列表的“安全”选项 c、在打开的页面中选择http://localhost/security/xamppsecurity.php d、然后再打开的页面中可以设置MYSQL的密码了 4.安装mantis 解压缩mantis_1.1.6.tar.gz并将解开的目录放到C:\Program Files\xampp\htdocs\ 并且文件夹名称改为“Mantis” 在浏览器网址列键入http:///mantis/index.php即可进行安装,重点是存取MySQL的账号要设对和MySQL,Apache要启动 5.设定mantis 在浏览器网址列键入http:///mantis/index.php,如果安装成功,就会看到登入画面,用预设的账号administrator,密码root进入,新增一个有admin权限的使用者,确定新的使用者可以登入之后删除预设的使用者并移除C:\Program Files\xampp\htdocs\mantis\admin目录 **在新增使用者遇到了一个mail的error,使得新增的使用者无法登入,解决方式是在C:\Program Files\xampp\htdocs\mantis\下有个设定档config_inc.php,新增一行如下 $g_enable_email_notification = OFF; **若想改中文接口同样在config_inc.php,新增一行如下 $g_default_language = 'chinese_traditional_utf8'; 安装工具——xampp;只需要安装xampp,然后在apache的配置文件\conf\httpd.conf 末尾加上: Alias /mantis "c:/mantis/" Options Indexes AllowOverride None Order allow,deny Allow from all 然后将mantis下的config_inc.php.sample改名为config_inc.php。再配置一下mantis的邮件服务。一切就ok了 ========================================================= mantis 汉化方法如下: 在mantis目录下找到config_defaults_inc.php,用支持php格式的编辑器打开。里面有一项是$g_default_language = 'english';将english修改成chinese_simplified,点击保存,保存文件,重新服务器即可。 =========================================================

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值