美文网首页
Ubuntu16.04下快速部署mantisbt

Ubuntu16.04下快速部署mantisbt

作者: asfuyao | 来源:发表于2018-07-22 16:33 被阅读0次

    1、通过宝塔Linux面板实现快速部署mantisbt

    安装好ubuntu16.04 server后不进行其他操作,直接安装宝塔Linux面板

    
    wget -O install.sh http://download.bt.cn/install/install-ubuntu.sh && sudo bash install.sh
    
    

    2、进入宝塔面板

    • 安装下列软件:Nginx 1.14,MySQL 5.6、PHP 7.0
    • 安装PHP扩展fileinfo,没有这个无法上传附件
    • 创建网站mantisbt,数据库名、用户名、目录名都为mantisbt
    • 下载mantisbt最新代码mantisbt-2.15.0.tar.gz,解压缩后复制到到/www/wwwroot/mantisbt
    • 在mantisbt目录下创建upload目录,修改mantisbt目录下的所有者为www:www
    
    tar xzvf mantisbt-2.15.0.tar.gz
    
    sudo cp -R mantisbt-2.15.0/* -C /www/wwwroot/mantisbt/
    
    cd /www/wwwroot/mantisbt
    
    sudo mkdir upload
    
    sudo chown -R www:www *
    
    

    3、打开浏览器进入mantisbt初始化配置

    填写数据库用户名和密码、数据库管理员root和密码,确认保存

    4、成功后即可看到登录界面,此时先不忙进入,还要修改配置,

    
    sudo vi /www/wwwroot/mantisbt/config/config_inc.php
    
    

    配置内容如下

    
    <?php
    $g_default_language             = 'chinese_simplified';
    $g_html_make_links          = ON;
    $g_default_timezone             = 'Asia/Shanghai';
    
    # --- Database Configuration ---
    $g_hostname                 = 'localhost';
    $g_db_username              = 'mantis';
    $g_db_password              = '密码';
    $g_database_name            = 'mantis';
    $g_db_type                  = 'mysqli';
    
    # --- Security ---
    $g_crypto_master_salt           = '初始化生成的不要改';
    
    $g_max_failed_login_count       = 5;
    $g_allow_signup             = ON;
    $g_send_reset_password          = ON;
    
    # --- Anonymous Access / Signup ---
    $g_allow_signup             = OFF;
    $g_allow_anonymous_login        = OFF;
    $g_anonymous_account            = '';
    
    # --- Email Configuration ---
    $g_phpMailer_method         = PHPMAILER_METHOD_SMTP;
    $g_smtp_host                = 'smtp服务器地址;
    $g_smtp_port                        = 'smtp端口';
    $g_smtp_connection_mode             = 'ssl';
    $g_smtp_username            = '邮件地址';
    $g_smtp_password            = '密码';
    $g_webmaster_email              = '邮件地址;
    $g_from_email                   = '邮件地址';
    $g_return_path_email            = '邮件地址';
    $g_from_name                = '系统名称可以自定义';
    # $g_email_receive_own  = OFF;
    # $g_email_send_using_cronjob = OFF;
    
    # --- Attachments / File Uploads ---
    $g_allow_file_upload            = ON;
    $g_file_upload_method           = DISK;
    $g_absolute_path_default_upload_folder  = 'upload';
    $g_max_file_size            = 5000000;
    $g_preview_attachments_inline_max_size  = 256 * 1024;
    # $g_allowed_files          = '';
    # $g_disallowed_files           = '';
    
    # --- Branding ---
    $g_window_title             = '系统名称可以自定义';
    # $g_logo_image             = 'images/mantis_logo.png';
    # $g_favicon_image          = 'images/favicon.ico';
    
    # --- Real names ---
    $g_show_realname            = ON;
    # $g_show_user_realname_threshold   = NOBODY;   # Set to access level (e.g. VIEWER, REPORTER, DEVELOPER, MANAGER, etc)
    
    # --- Others ---
    # $g_default_home_page = 'my_view_page.php';    # Set to name of page to go to after login
    
    

    相关文章

      网友评论

          本文标题:Ubuntu16.04下快速部署mantisbt

          本文链接:https://www.haomeiwen.com/subject/qgalmftx.html