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 命令查找,命令后加文件名。