简单记录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.界面语言修改
在个人资料-->更改个人资料-->修改界面语言