您的位置:软件测试 > 开源软件测试 > 开源Bug管理工具 > Mantis
Mantis的安装配置-Windows与使用
作者:网络转载 发布时间:[ 2014/1/13 11:46:01 ] 推荐标签:Mantis Windows bug

(4)mantis隆重登场
打开mantis地下的config_inc.php.samp文件。一样的改名为config_inc.php。这个文件是mantis的重量级文件了。我们的配置几乎都集中在这里了,里面的原貌是:


# --- database variables ---------

# set these values to match your setup
$g_hostname = "localhost";
$g_db_username = "root";
$g_db_password = "";
$g_database_name = "bugtracker";
$g_db_type = "mysql";

# --- email variables -------------
$g_administrator_email ='administrator@example.com';
$g_webmaster_email ='webmaster@example.com';

# the "From: " field in emails
$g_from_email ='noreply@example.com';

# the return address for bounced mail
$g_return_path_email ='admin@example.com';

# --- 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;

接下来几乎要将其改的面目全非了:
参照我的吧
# --- database variables ---------
# set these values to match your setup
$g_hostname = 'localhost';
$g_db_username = 'mantis';
$g_db_password = 'mantis';
$g_database_name = 'bugtracker';
$g_db_type = 'mysql';
$g_default_language ='chinese_simplified';
$g_window_title = 'mantis BUG管理系统';
$g_page_title = '欢迎使用Mantis BUG 跟踪管理系统 xx网 无需注册 免费发布';
$g_show_queries_count = OFF;

# --- email variables -------------

使用phpmailer作为邮件服务器,首先下载phpmailer,网址为:http://phpmailer.codeworxtech.com,下载完后解压到D:APMServ-v5.2.6APMServ5.2.6wwwhtdocsmantisphpmailer。
       修改D:APMServ-v5.2.6APMServ5.2.6wwwhtdocsmantisconfig_inc.php,添加以下内容:
        $g_smtp_host = 'smtp.qq.com';//mantis发送邮件所需要的服务器
    $g_smtp_username = '6449694';//mantis登录的用户名
    $g_smtp_password = 'qqxxxxx';//密码
    $g_use_phpMailer = ON; //打开phpmailer
    $g_phpMailer_path = 'D:/APMServ-v5.2.6/APMServ5.2.6/www/htdocs/mantis/phpmailer/';//保证phpmailer所安装的路径正确
    
    $g_phpMailer_method = 2;
/*此处的数值可为0,1,2
0为调用了一个mantis内置的mail()函数来发送邮件;1为sendmail方式(这个我也不是很清楚);2为使用smtp方式,登录到邮件服务器内来发送邮件*/

$g_return_path_email ='6449694@qq.com'//这个即带上了域名的完整邮箱名

$g_administrator_email =''6449694@qq.com';

$g_webmaster_email =''6449694@qq.com';

$g_from_email =''6449694@qq.com';

$g_return_path_email =''6449694@qq.com';

# --- file upload settings --------

$g_allow_file_upload = ON; //使用上传文件功能

$g_file_upload_method = DISK;

$g_max_file_size = 100000000; # 100 MB #设置文件空间

# --- jpgraph settings --------

$g_use_jpgraph = ON; 使用jpgraph

$g_jpgraph_path = 'C:/EasyPHP 2.0b1/php5/jpgraph-1.21b/src/'; 指定jpgraph的路径

$g_graph_font = 'chinese_gbk'; 设置jpgraph图形字体
# --- time settings --------

$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';

上一页123456下一页
软件测试工具 | 联系我们 | 投诉建议 | 诚聘英才 | 申请使用列表 | 网站地图
沪ICP备07036474 2003-2017 版权所有 上海泽众软件科技有限公司 Shanghai ZeZhong Software Co.,Ltd