Centos 上 mantis 安装

本文详细记录了在Centos系统中安装Mantis Bug Tracker的步骤,包括从官网下载Mantis、配置httpd.conf、重新安装PHP5.6、调整时区、设置邮件配置、完成安装以及修改界面语言等关键操作。

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


简单记录Mantis安装过程及遇到的问题

1.官网下载Mantis

http://www.mantis.org/

2.配置httpd.conf

vi /etc/httpd/conf/httpd.conf

Alias mantIs "absolute path"

<Directory "/mantis">

</Directory>

3.chmod 755 mantis_root_folder

4.重装php

1)yum remove php

2)下载php5.6源码并解压

3)yum install xmllib2 xmllib2-dev  ## 避免下一步出错,即以来xmllib2

4)./configure --enable-mysqlnd --with-mysql --with-mysqli --with-apaxs=/usr/sbin/apxs

5.配置httpd.conf,使其识别php文件

1) LoadModule ...

2)AddType

3)AddHeader

6.时区选择提示

1)vi /etc/php.ini

在其中设置date.timezone=PRC

2)vi mantis/core/form_api.php

vi mantis/code/html_api.php

在文件头加上 date_default_timezone_set("PRC");

7.导入session数据库

mantis//library/adodb/session/adodb-sessions.mysql.sql

8.配置邮件发送

# --- Email Configuration ---
$g_phpMailer_method             = PHPMAILER_METHOD_SMTP; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host                    = 'smtp.163.com';                       # used with PHPMAILER_METHOD_SMTP
$g_smtp_username                = 'xxxx@163.com';                                     # used with PHPMAILER_METHOD_SMTP
$g_smtp_password                = 'xxxxxx';                                   # used with PHPMAILER_METHOD_SMTP
$g_administrator_email  = 'xxxx@163.com';
$g_webmaster_email      = 'xxxx@163..com';
$g_from_email           = 'xxxx@163.com';     # the "From: " field in emails
$g_return_path_email    = 'xxxx@163.com';     # the return address for bounced mail
$g_from_name                    = 'Mantis Bug Tracker';
# $g_email_receive_own  = OFF;
# $g_email_send_using_cronjob = OFF;
$g_use_phpMailer = ON;
$g_enable_email_notification = ON;

9.打开安装页面

http://loclahost/mantis/admiin/install

10.安装完毕后,就可以使用了

默认的用户名: administrator

密码:root

11.界面语言修改

在个人资料-->更改个人资料-->修改界面语言

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值