XAMPP http://www.apachefriends.org/en/xampp.html
Mantis http://www.mantisbt.org/
1.下载安装上述软件
2.在D:\xampp\apache\conf\httpd.conf 末尾加上:
Alias /mantis E:/devTools/mantisbt-1.1.7/mantisbt-1.1.7
<Directory "E:/devTools/mantisbt-1.1.7/mantisbt-1.1.7">
Options Indexes
AllowOverride None
Order allow,deny
Allow from all
</Directory>
3.然后将mantis下的config_inc.php.sample改名为config_inc.php。再配置一下mantis的邮件服务。一切就ok了。
4 中文显示
在E:/devTools/mantisbt-1.1.7/mantisbt-1.1.7/config_inc.php文件中添加
$g_default_language = 'chinese_simplified';
5上传文件
在config_inc.php中添加
$g_allow_file_upload=ON;
$g_file_upload_method=DISK;
并且在E:/devTools/mantisbt-1.1.7/mantisbt-1.1.7下面新建一个upload目录
当你以管理员身份登录,新建项目时,在上传文件路径那一项填上upload即可,如果要为每一个项目指定不同的目录,可以先在upload下建一个projectname,在上传文件路径那一项填上upload\projectname
注意最好不要用中文目录名,目录名中间也不要带空格.
6.置jpgraph
下载JpGraph Version: 2.3.4 http://www.aditus.nu/jpgraph/jpdownload.php
解压到E:\devTools\mantisbt-1.1.7\mantisbt-1.1.7\graphs\jpgraph-2.3.4
在E:/devTools/mantisbt-1.1.7/mantisbt-1.1.7/config_inc.php文件中添加
$g_use_jpgraph = ON;
$g_jpgraph_path = 'E:/devTools/mantisbt-1.1.7/mantisbt-1.1.7/graphs/jpgraph-2.3.4/src/';
7. config_inc.php
# set these values to match your setup
$g_hostname = "localhost";
$g_db_username = "root";
$g_db_password = "root";
$g_database_name = "bugtracker";
$g_db_type = "mysql";
# --- email variables -------------
$g_administrator_email = '[email protected]';
$g_webmaster_email = '[email protected]';
$g_smtp_host='serverIP';
$g_smtp_username='yourname';
$g_smtp_password='pwd';
$g_phpMailer_method =2;
# the "From: " field in emails
$g_from_email = '[email protected]';
# the return address for bounced mail
$g_return_path_email = '[email protected]';
# --- file upload settings --------
# This is the master setting to disable *all* file uploading functionality
#
# The default value is ON but you must make sure file uploading is enabled
# in PHP as well. You may need to add "file_uploads = TRUE" to your php.ini.
$g_allow_file_upload = ON;
$g_file_upload_method = DISK;
$g_default_language = 'chinese_simplified';
$g_use_jpgraph = ON;
$g_jpgraph_path = 'E:/devTools/mantisbt-1.1.7/mantisbt-1.1.7/graphs/jpgraph-2.3.4/src/';
$g_graph_font = 'chinese_gbk';