六、配置BUGFREE
下載BugFree2:
[root@localhost ~]# wget -chttp://www.bugfree.org.cn/download/bugfree2.tar.gz
解壓到Xampp下的htdocs文檔下:
[root@localhost ~]#tar xvfz bugfree2.tar.gz -C /opt/lampp/htdocs/
然后復(fù)制Include/Config.inc.Sample.php為Include/Config.inc.php,編輯并修改數(shù)據(jù)庫鏈接地址:
(復(fù)制命令CP和修改命令VI,這里不多介紹了)
/* 3. Define the username and password of the BugFree database. */
$_CFG['DB']['User'] = 'root'; // 數(shù)據(jù)庫登錄用戶名
$_CFG['DB']['Password'] = 'password'; // 數(shù)據(jù)庫登錄用戶密碼
$_CFG['DB']['Host'] = 'localhost'; // 數(shù)據(jù)庫服務(wù)器地址
$_CFG['DB']['Database'] = 'bugfree'; // 指定BugFree數(shù)據(jù)庫名稱
$_CFG['DB']['TablePrefix'] = 'bf_'; // 數(shù)據(jù)庫表前綴,默認(rèn)為bf_。除非有沖突,不建議修改或為空
$_CFG['DBCharset'] = 'UTF8'; // 數(shù)據(jù)庫編碼設(shè)置,保留默認(rèn)值
然后設(shè)置文件目錄權(quán)限:
[root@localhost ~]# cd /opt/lampp/htdocs/bugfree
[root@localhost bugfree]# chmod 777 Data/TplCompile/
[root@localhost bugfree]# chmod 777 BugFile/
[root@localhost bugfree]# chmod 777 Include/Config.inc.php
全部配置好可以訪問BugFree了:
http://localhost/bugfree/設(shè)置新的數(shù)據(jù)庫
phpsql在線:
http://localhost/phpmyadmin/
可用PHPSQL操作Mysql數(shù)據(jù)或linux終端登錄mysql
[root@ASP-WEB root]# /opt/lampp/bin/mysql -u root -p
至此,全部安裝完成!