使用xampp安装mantis
文章来源:http://www.mantis.org.cn??
?
Mantis for Windows
1.安装之前,下载下列软件
XAMPP --->Apache,php,MySQL架设包
Mantis-1.0.5
2.安装xampp
执行刚下载的执行档即可
3.建立MySQL的使用者账号
利用xampp提供的页面来设定即可
4.安装mantis
解压缩mantis_1.0.5.tar.gz并将解开的目录放到C:\Program Files\xampp\htdocs\
在浏览器网址列键入http://<your ip>/mantis_1.0.5/index.php即可进行安装,重点是存取MySQL的账号要设对和MySQL,Apache要启动
5.设定mantis
在浏览器网址列键入http://<your ip>/mantis_1.0.5/index.php,如果安装成功,就会看到登入画面,用预设的账号administrator,密码root进入,新增一个有admin权限的使用者,确定新的使用者可以登入之后删除预设的使用者并移除C:\Program Files\xampp\htdocs\mantis_1.0.5\admin目录
**在新增使用者遇到了一个mail的error,使得新增的使用者无法登入,解决方式是在C:\Program Files\xampp\htdocs\mantis_1.0.5\下有个设定档config_inc.php,新增一行如下
$g_enable_email_notification = OFF;
**若想改中文接口同样在config_inc.php,新增一行如下
$g_default_language = 'chinese_traditional_utf8';
不过只有接口部份成中文,其它还是英文,而且输入中文会显示成乱码,这部份需再研究,或许在一开始安装时就选成繁体中文可能会有较好的结果
? ?$g_from_email ? ? ? = 'mantis_china@163.com';
? ?
? ?# the return address for bounced mail
? ?$g_return_path_email ? = 'mantis_china@163.com';
? ?
? ?
? ? $g_enable_email_notification = ON;
? ? $g_smtp_host='mail.163.com.cn';
? ? $g_smtp_username='mantis_china@163.com';
? ? $g_smtp_password='test';
? ?
? ? $g_use_phpMailer = ON;
? ? $g_phpMailer_method =2;
? ? $g_phpMailer_path = 'c:/mantis/xampp/htdocs/mantis/core/phpmailer/';
? ?
? ?# --- 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_default_language = 'chinese_simplified';
? ?$g_delete_bug_threshold = MANAGER;
? ?putenv("TZ=Asia/Shanghai");
? ?$g_use_jpgraph = ON;
? ? $g_jpgraph_path = 'C:/mantis/xampp/htdocs/mantis/jpgraph-1.21b/src/';
? ? $g_graph_font = 'chinese_gbk';
?>