mantisbt 安装配置及phpmailer设置

本文介绍如何在Windows环境下配置Apache、PHP以支持MantisBT的运行,并详细说明了MantisBT的安装步骤及配置过程,包括语言设置、邮件发送等功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.修改Apache的配置文件httpd.conf,在文件末尾添加以下文字,以配置mantisbt目录的访问权限或直接放在apache网站目录:

Alias /mantisbt "C:/mantisbt/"
<Directory "C:/mantisbt/">
 Options Indexes
 AllowOverride None
 Order allow,deny
 Allow from all
</Directory>

2.配置PHP的配置文件php.ini文件(windows):    
     (1)包含Pear库(Mantis中用到了Pear库)
          查找include_path,改为include_path=".;C:\php5.2\PEAR",并去掉前面的分号
     (2)包含外部PHP库
          查找extension_dir,改为extension_dir="C:\php5.2\ext",并去掉前面的分号
     (3)包含PHP-MySQL库
          查找php_mysql.dll,去掉前面的分号

3.安装Mantis
默认用户名为administrator,默认密码为root
地址栏输入
http://localhost/mantisbt/index.php 按引导安装即可
修改mantis配置文件config_defaults_inc.php
$g_default_language = 'chinese_simplified'; //即默认语言为中文
$g_allow_signup = OFF;       //即关闭注册功能

删除admin安装生成的临时目录

 
3.设置phpmailer邮件发送:

修改mantis配置文件config_inc.php如下:
$g_smtp_host = 'smtp.sina.cn';
$g_smtp_username =
'mailserverXXX@sina.cn';
$g_smtp_password = '123456';
$g_use_phpMailer = ON;
$g_phpMailer_path = 'C:/phpmailer/';
$g_phpMailer_method = 2;
$g_return_path_email =
'mailserverXXX@sina.cn';

修改mantis配置文件config_default.inc.php如下:
$g_smtp_host = 'smtp.sina.cn';
$g_administrator_email =
'mailserverXXX@sina.cn';
$g_webmaster_email
='mailserverXXX@sina.cn';
$g_from_email =
'mailserverXXX@sina.cn';
$g_from_name = 'mantisbtadmin';
$g_return_path_email =
'mailserverXXX@sina.cn';
$g_phpMailer_method = 2;

修改php配置文件php.ini如下(windows才修改):
[mail function]
; For Win32 only.
SMTP = smtp.sina.cn
smtp_port = 25

; For Win32 only.
;sendmail_from =
mailserverXXX@sina.cn

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值