您的位置:軟件測試 > 開源軟件測試 > 開源Bug管理工具 > Mantis
開源缺陷跟蹤系統(tǒng)Mantis安裝和安裝配置手冊
作者:網(wǎng)絡(luò)轉(zhuǎn)載 發(fā)布時間:[ 2013/12/13 9:54:32 ] 推薦標(biāo)簽:

2.9 配置mantis
# cd /var/www/mantis
# vi config_inc.php
 
//修改以下幾行
$g_db_username = "mantis";
$g_db_password = "你在建立用戶時指定的密碼";
$g_database_name = "bugtracker";
 
//增加以下幾行
$g_path = "http://www.yourdomain.com/mantis/";
$g_icon_path = $g_path."images/";
$g_absolute_path = "/var/www/mantis/";
$g_use_iis = OFF;
$g_show_version = ON;
 
//以下是配置郵件的,Mantis使用郵件來進行注冊和通知,所以必須配置好
$g_enable_email_notification = ON; # 開通郵件通知
$g_smtp_host = 'mail.softbrain.com.cn';   # SMTP 服務(wù)器
$g_smtp_username = 'esm@softbrain.com.cn' # 郵箱登錄用戶名                     
$g_smtp_password = '對應(yīng)用戶郵箱的密碼'; # 郵箱登錄密碼                        
$g_use_phpMailer = ON;   # 使用 PHPMailer 發(fā)送郵件                              
$g_phpMailer_path = '/usr/local/php/includes/PHPMailer/'; # PHPMailer 的存放路徑    
$g_phpMailer_method = 2;   # PHPMailer 以 SMTP
 
$g_show_version = OFF;                  # 不在頁面下部顯示 Mantis的版本號
$g_default_language = ’english’;              # 默認語言為英語
$g_default_new_account_access_level = DEVELOPER; # 默認用戶級別
$g_use_jpgraph= ON;                             # 使用圖形報表
$g_jpgraph_path = ’/web/php/include/jpgraph/src/’;    # JPGraph路徑 
$g_window_title = ’Software Quality Manager’;     # 瀏覽器標(biāo)題
$g_page_title   = ’ Software Quality Manager’;     # 頁面標(biāo)題欄
 
2.10 創(chuàng)建數(shù)據(jù)庫的表結(jié)構(gòu)
#cd /var/www/mantis
#mysql -u mantis -p bugtracker<sql/db_generate.sql
//輸入數(shù)據(jù)庫密碼即可創(chuàng)建
2.11 配置httpd.conf
編輯apache的httpd.conf
#vi /web/apache/conf/httpd.conf
//增加以下幾行
LoadModule php5_module        modules/libphp5.so
AddType application/x-httpd-php .php .phtml .php3 .inc
 
Alias /mantis/ "/var/www/mantis/"
<Directory “/var/www/mantis/”>
Options Indexes MultiViews Includes FollowSymLinks +ExecCGI
AllowOverride None
Order allow, deny
Allow from all
</Directory>
 
找到DirectoryIndex index.html index.html.var,將其改為
DirectoryIndex index.html index.html.var index.php
 
2.12 重啟apache服務(wù)
# /web/apache/bin/apachectl –k restart
 
2.13 訪問Mantis
通過瀏覽器訪問:http://www.yourdomain.com/mantis/
如果出現(xiàn)登錄頁面,則一切Ok!
升級數(shù)據(jù)庫
登錄http://www.yourdomain.com/mantis/admin
點擊“Upgrade your installation”,升級其中的“Basic upgrade set (required)”和“String escaping fixes (recommended)”。
然后,
#mysql –u mantis –p bugtracker<sql/db_update.sql
并初始化數(shù)據(jù)庫
#mysql –u mantis –p bugtracker<sql/db_insert_data.sql

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