关闭

mantis 配置

541人阅读 评论(2) 收藏 举报

Mysql 配置

 create database mantis;

 grant all privileges on mantis.* to 'mantis'@'localhost' identified by 'mantis';

 flush privileges;

 use mantis;

 show tables;

mantis配置
修改 config_inc.php文件 如下:

 $g_default_language = chinese_simplified ;

   $g_allow_file_upload = ON;
        $g_file_upload_method = DATABASE;
        $g_max_file_size = 8000000;
 
 $g_enable_email_notification = ON;
        $g_smtp_host = 'localhost';
        $g_smtp_username = '';
        $g_smtp_password = '';
        $g_phpMailer_method = 1;


 <?php
        $g_hostname = 'localhost';
        $g_db_type = 'mysql';
        $g_database_name = 'mantis';
        $g_db_username = 'mantis';
        $g_db_password = 'mantis';
 
        $g_default_language = chinese_simplified ;
 
        $g_show_queries_count = OFF;
 
        $g_allow_file_upload = ON;
        $g_file_upload_method = DATABASE;
        $g_max_file_size = 8000000;
 
        $g_enable_email_notification = ON;
        $g_smtp_host = 'localhost';
        $g_smtp_username = '';
        $g_smtp_password = '';
        $g_phpMailer_method = 1;
 
        $g_administrator_email = 'mantis@163.com';
        $g_webmaster_email = 'mantis@163.com';
 
        $g_use_jpgraph = ON;
        $g_jpgraph_path ='/var/www/jpgraph-2.2/src/';
        $g_graph_font = 'simsun';
 
        $g_short_date_format = 'Y-m-d';
        $g_normal_date_format = 'Y-m-d H:i';
        $g_complete_date_format = 'Y-m-d H:i';
 
        $g_show_version = OFF;
        $g_preview_attachments_inline_max_size = 5000000;
        $g_show_project_menu_bar = ON;
?>


先安装php-gd simhei.ttf simsun.ttc


jpgraph配置

修改jpgraph_ttf.inc.php文件
vi jpgraph_ttf.inc.php


 DEFINE("FF_VERASERIF",40);

mantis配置
core文件加下

修改graph_api.php文件
vi graph_api.php
  'simsun' => FF_SIMSUN,
        'simhei' => FF_SIMHEI,

修改 php.ini

 memory_limit = 8M;
 upload_max_filesize = 8M;
 post_max_size = 8M; 

以上文件如果安装后找不到位置可用 find /  -name  命令查找,命令后加文件名。

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:5072次
    • 积分:94
    • 等级:
    • 排名:千里之外
    • 原创:4篇
    • 转载:4篇
    • 译文:0篇
    • 评论:2条
    文章存档
    最新评论