雖然bugfree已經(jīng)宣布停止支持,升級(jí)到禪道了,但是既然已經(jīng)都安裝了,并且有很多好評(píng),我決定還是在公司試用看看。初體驗(yàn)碰到了許多問題,現(xiàn)在開篇記錄一下,包括安裝和使用過程中碰到的問題和解決方法,會(huì)不斷的更新。
1.首先得下套件XAMPP,在D:xampphtdocsugfreeInclude拷貝Config.inc.Sample.php,將新文件命名為“Config.inc.php”并修改
/* 3. Define the username and password of the BugFree database. */
$_CFG['DB']['User'] = 'root';用戶和密碼必須安裝和mysql時(shí)一致
$_CFG['DB']['Password'] = 'root';
$_CFG['DB']['Host'] = 'localhost';如果服務(wù)器是本機(jī)直接填寫localhost
$_CFG['DB']['Database'] = 'bugfree2';
$_CFG['DB']['TablePrefix'] = 'bf_';
$_CFG['DBCharset'] = 'UTF8';
2.再安裝個(gè)MYSQL;啟動(dòng)MySQL Command Line Client(MySQL的DOS界面),得再裝一個(gè)數(shù)據(jù)庫的可視化工具Navicat Lite for MySQL,這樣便于不熟悉DOS模式下的孩子~~
這樣在使用bugfree中如果想刪除某條記錄的話,可以直接對數(shù)據(jù)進(jìn)行操作。比較方便。
3.設(shè)置郵件通知碰到的問題,創(chuàng)建好BUG后被指派的人收不到郵件提示,解決方法是:
D:xampphtdocsugfreeInclude的Config.inc.php修改其中的2項(xiàng):
/* 8. Mail setting. */
$_CFG['Mail']['On'] = true;true為發(fā)送提醒,不發(fā)送直接為false可以了
$_CFG['Mail']['FromAddress'] = "test@163.com";//由這個(gè)郵箱統(tǒng)一發(fā)出提醒郵件
$_CFG['Mail']['FromName'] = 'BugFree';
$_CFG['Mail']['ReportTo'] = array(); // Where bug statistics message sened to. If empty, to all users.
$_CFG['Mail']['SendMethod'] = 'SMTP'; // MAIL|SENDMAIL|SMTP|QMAIL
/* 9. SMTP param setting. */
$_CFG['Mail']['SendParam']['Host'] = 'smtp.163.com'; // 必須和8中的郵箱一樣The server to connect. Default is lolocalhost
$_CFG['Mail']['SendParam']['SMTPAuth'] = true; // Whether or not to use SMTP authentication. Default is FALSE
$_CFG['Mail']['SendParam']['Username'] = ‘test'; // The username to use for SMTP authentication.
$_CFG['Mail']['SendParam']['Password'] = '********'; // The password to use for SMTP authentication.
4.登錄后bugfree,在首頁的查詢條件下會(huì)看到幾行的提示,如下:
Deprecated: Call-time pass-by-reference has been deprecated in。。。。。
解決方法是:D:xamppphp的php.ini中修改allow_call_time_pass_reference = On
記得修改后,還要重新啟動(dòng)下XAMPP.
4.修改新建BUG頁面中各個(gè)字段
D:xampphtdocsugfreeLangH_CN_UTF-8
_COMMON.php在該文檔中找到每個(gè)字段,可進(jìn)行新增和修改
在修改該文件時(shí),要注意用專門的PHP打開文件打開,不要用記事本,用記事本會(huì)導(dǎo)致編碼錯(cuò)誤,導(dǎo)致無法查看上傳的附件,附件會(huì)顯示X