Linux下 mantisbt安装使用说明

来源:互联网 发布:网络心理咨询平台 编辑:程序博客网 时间:2024/05/16 14:56

一、LAMP 环境配置

1.安装 Apache2:
sudo apt-get install apache2
2.安装 PHP 模块:
sudo apt-get install php5
3.安装 Mysql
sudo apt-get install mysql-server
4.其他模块安装:
sudo apt-get install libapache2-mod-php5
sudo apt-get install libapache2-mod-auth-mysql
sudo apt-get install php5-mysql
sudo apt-get install php5-gd

二、更改apache配置文件

1、编辑/etc/apache2/apache2.conf 文件

添加如下内容:
<Directory /home/*/mantisbt>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
ServerName 127.0.0.1

2、进入/etc/apache2/sites-available 目录

sudo cp 000-default.conf mantisbt.conf

修改 mantisbt.conf文件:
        ServerAdmin webmaster@localhost
        ServerName mantisbt.com
        DocumentRoot /home/*/mantisbt

        <Directory /home/*/mantisbt>
                Options -Indexes +FollowSymlinks
                AllowOverride All
                Require all granted
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride All
                Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

然后重启apache服务。

三、安装配置mantisbt

1、访问http://127.0.0.1,按提示步骤安装

注意:管理员初始帐号为:administrator,密码为:root。
登陆前会有两个提示:
Warning: You should disable the default 'administrator' account or change its password.
Warning: Admin directory should be removed.
即:更改管理员密码、删除Admin目录

2、配置邮件
在mantisbt/目录下有个config_inc.php文件,在该文件里配置email项

# --- Email Configuration ---
$g_phpMailer_method        = PHPMAILER_METHOD_SMTP; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host            = '';            # used with PHPMAILER_METHOD_SMTP
$g_smtp_username        = '';                    # used with PHPMAILER_METHOD_SMTP
$g_smtp_password        = '*****';                    # used with PHPMAILER_METHOD_SMTP
$g_administrator_email  = '';
$g_webmaster_email      = '';
$g_from_email           = '';    # the "From: " field in emails
$g_return_path_email    = '';    # the return address for bounced mail

3、汉化:mantisbt本身带有各种语言支持,仅需要更改一下配置文件的默认语言就行了
更改文件:config_defaults_inc.php
//    $g_default_language        = 'english';
    $g_default_language        = 'chinese_simplified';









0 0
原创粉丝点击