Linux下安装mantisbt

官方下载地址:http://www.mantisbt.org/
      
mantis(螳螂)是一个基于php/MySQL/web的缺陷跟踪系统
 
首先,mantis 需要LAMP环境,步骤略。
 
将mantis解压到/usr/local/apache/htdocs目录下。
生成:mantis配置文件:

[root@www src]# tar xzvf mantisbt-1.2.3.tar.gz -C /usr/local/apache/htdocs/
[root@www src]# cd /usr/local/apache/htdocs/mantis
[root@www src]# cp config_inc.php.sample config_inc.php

3.配置mantis文件
[root@www src]# vi config_inc.php
        $g_hostname      = "localhost";
        $g_db_username   = "root";
        $g_db_password   = "123456";
        $g_database_name = "bugtracker";
        $g_db_type       = "mysql";
:wq

建立Mysql 数据库
            /usr/local/mysql/bin/mysql -u root -p
            mysql> create datebase bugtracker ;
            mysql> grant all privileges on *.* to root@localhost identified by 'Ajz123*()';
            mysql>flush  privileges;
            mysql>quit
[root@www mantisbt]# /usr/local/mysql/bin/mysql -uroot -p bugtracker < /usr/local/apache/htdocs/mantisbt/library/adodb/session/adodb-sessions.mysql.sql
这需要倒数据库,用命令行不行的话,就是网页形式的。 在/adimin/install.php    这个文件就是安装文件,安装完成后把这个文件删除掉。

[root@www mantisbt]# /usr/local/apache/bin/apachectl -k restart     #重新启动Apache

访问Http://localhost/mantis/admin/install.php进行安装,,一直next,next.     注意,有个多选框,不要钩选。
重新打开浏览器:http://localhost/mantis
使用默认的管理员帐号、密码:
                 user: administrator
                 passwd: root        
汉化方法:
在mantis目录下找到config_defaults_inc.php
里面有一项是     $g_default_language  = 'english';
将english修改成 $g_default_language  = 'chinese_simplified';
保存文件。
 
4.设置使用PHPMailer发送邮件
在config_inc.php文件中添加
        $g_phpMailer_method             = 2;                       # PHPMailer 以 SMTP 方式发送 Email
        $g_smtp_host           = 'mail.XXX.com';                   # SMTP 服务器
        $g_smtp_username       = 'zhangsan@XXX.com';               # 邮箱登录用户名
        $g_smtp_password       = 'zhangsanpasswd';                 # 邮箱登录密码
        $g_administrator_email  = 'zhangsan@xxx.com';
        $g_webmaster_email      = 'zhangsan@xxx.com';
        $g_from_name                    = 'xxx.com';
        $g_from_email           = 'zhangsan@xxx.com';      
        $g_return_path_email    = 'zhangsan@xxx.com';      
        $g_email_receive_own    = OFF;
        $g_email_send_using_cronjob = OFF;

上面是我转载别人的,我按照步骤基本完成,我安装的版本是mantisbt-1.2.4 没用mantisbt-1.2.5最新的,因为用这个版本无法发邮件
 
第四步我没安装PHPMailer,直接修改配置文件
# --- Database Configuration ---
$g_hostname      = 'localhost';
$g_db_username   = 'root';
$g_db_password   = '';
$g_database_name = 'bugtracker';
$g_db_type       = 'mysql';
 
# --- Anonymous Access / Signup ---
$g_allow_signup                         = ON;
$g_allow_anonymous_login        = OFF;
$g_anonymous_account            = '';
 

# --- Email Configuration ---
$g_phpMailer_method             = PHPMAILER_METHOD_SMTP; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host                    = '192.168.1.4';                        # used with PHPMAILER_METHOD_SMTP
$g_smtp_username                = '***@***.com';                                   # used with PHPMAILER_METHOD_SMTP
$g_smtp_password                = '******';                                   # used with PHPMAILER_METHOD_SMTP

#$g_use_phpMailer = ON;
#$g_phpMailer_path = '/usr/local/phpmailer/';
#$g_phpMailer_method = 2;
$g_default_language = 'chinese_simplified';

$g_administrator_email  = '***@***.com';
$g_webmaster_email      = '***@***.com';
$g_from_name                    = 'Mantis Bug Tracker';
$g_from_email           = '***@***';   # the "From: " field in emails
$g_return_path_email    = '***@***';   # the return address for bounced mail
$g_email_receive_own    = OFF;
$g_email_send_using_cronjob = OFF;
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值