您的位置:軟件測(cè)試 > 開源軟件測(cè)試 > 開源Bug管理工具 > Mantis
Mantis的安裝配置-Windows與使用
作者:網(wǎng)絡(luò)轉(zhuǎn)載 發(fā)布時(shí)間:[ 2014/1/13 11:46:01 ] 推薦標(biāo)簽:Mantis Windows bug

(4)mantis隆重登場(chǎng)
打開mantis地下的config_inc.php.samp文件。一樣的改名為config_inc.php。這個(gè)文件是mantis的重量級(jí)文件了。我們的配置幾乎都集中在這里了,里面的原貌是:


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

接下來(lái)幾乎要將其改的面目全非了:
參照我的吧
# --- 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管理系統(tǒng)';
$g_page_title = '歡迎使用Mantis BUG 跟蹤管理系統(tǒng) xx網(wǎng) 無(wú)需注冊(cè) 免費(fèi)發(fā)布';
$g_show_queries_count = OFF;

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

使用phpmailer作為郵件服務(wù)器,首先下載phpmailer,網(wǎng)址為:http://phpmailer.codeworxtech.com,下載完后解壓到D:APMServ-v5.2.6APMServ5.2.6wwwhtdocsmantisphpmailer。
       修改D:APMServ-v5.2.6APMServ5.2.6wwwhtdocsmantisconfig_inc.php,添加以下內(nèi)容:
        $g_smtp_host = 'smtp.qq.com';//mantis發(fā)送郵件所需要的服務(wù)器
    $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;
/*此處的數(shù)值可為0,1,2
0為調(diào)用了一個(gè)mantis內(nèi)置的mail()函數(shù)來(lái)發(fā)送郵件;1為sendmail方式(這個(gè)我也不是很清楚);2為使用smtp方式,登錄到郵件服務(wù)器內(nèi)來(lái)發(fā)送郵件*/

$g_return_path_email ='6449694@qq.com'//這個(gè)即帶上了域名的完整郵箱名

$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 #設(shè)置文件空間

# --- 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'; 設(shè)置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';

上一頁(yè)123456下一頁(yè)
軟件測(cè)試工具 | 聯(lián)系我們 | 投訴建議 | 誠(chéng)聘英才 | 申請(qǐng)使用列表 | 網(wǎng)站地圖
滬ICP備07036474 2003-2017 版權(quán)所有 上海澤眾軟件科技有限公司 Shanghai ZeZhong Software Co.,Ltd