-
Bugfree平台的配置和安装
普通类 -
- 支持
- 批判
- 提问
- 解释
- 补充
- 删除
-
-
一、资源准备
xampp-win32-1[1].7.0-installer.exe;
BugFree.rar
这些文件均放在“实验室BugFree安装软件下” 的文件夹中 。-
二、安装、设置
- 创建步骤:
1. 解压缩bugfree文件,将其拷贝到xampp的安装目录的htdocs的文件夹下,如:“D:\ xampp\htdocs”;
2. 修改数据库密码,打开BugFree\Include文件夹中的Config.inc.php文件,将/* 3. Define the username and password of the BugFree database. */中的$_CFG['UserDB']['Password'] = '';中输入数据库的密码”root”;
3. 在ie浏览器中的输入http://localhost:8809/bugfree/Login.jsp”
将出现图6所示提示。
图6
4. 点击创建数据库,然后点击继续安装如图7,点击安装全新的bugfree2如图8所示,将会出现图9所示界面, 请记住默认的用户admin和密码123456,然后按提示点击这里登陆,如图可以看到图10所示的登录界面,bugfree安装成功啦!
图7
图8
图9
图10- 发送邮件配置:1. 配置文件修改:
打开BugFree\Include文件夹中的Config.inc.php文件,将其中的代码做如下几处修改:
a) $_CFG['AdminUser'] = array('admin');(此处是设置管理员,默认为admin,按实际情况,可以再添加。)如修改为:
$_CFG['AdminUser'] = array('admin','yushengquan','yangxianmin','chenggang');
b) $_CFG['MailReportUser'] = array('');(定义bug统计数据的发送对象),如下修改为给一下的四个用户发送报告。
$_CFG['MailReportUser'] = array('admin','yushengquan','yangxianmin','chenggang','wangzhijun');
c) $_CFG['File']['MaxFileSize'] = 1024 * 1000; // The max file size(Byte).(设置附件的大小,1000代表1000k,用户可以在此处调整附件的大小。)
d) 邮件发送配置
源代码:
/* 8. Mail setting. */
$_CFG['Mail']['On'] = true;
$_CFG['Mail']['FromAddress'] = "bugfree@{$_SERVER['SERVER_NAME']}";
$_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'] = ''; // The server to connect. Default is localhost
$_CFG['Mail']['SendParam']['SMTPAuth'] = false; // Whether or not to use SMTP authentication. Default is FALSE
$_CFG['Mail']['SendParam']['Username'] = ''; // The username to use for SMTP authentication.
$_CFG['Mail']['SendParam']['Password'] = ''; // The password to use for SMTP authentication.
修改后的代码:
/* 8. Mail setting. */
$_CFG['Mail']['On'] = true;
$_CFG['Mail']['FromAddress'] = "15904w@163.com";
$_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'; // The server to connect. Default is localhost
$_CFG['Mail']['SendParam']['SMTPAuth'] = true; // Whether or not to use SMTP authentication. Default is FALSE
$_CFG['Mail']['SendParam']['Username'] = '15904w@163.com'; // The username to use for SMTP authentication.
$_CFG['Mail']['SendParam']['Password'] = '邮箱的密码'; // The password to use for SMTP authentication.
2. 修改后保存,然后登陆bugfree平台,测试bug修改人员是否可以收到bug邮件。 - 定时发送邮件设置
为了能够让bugfree系统定时发送邮件,需要添加两个windows任务计划,添加办法如下:
在在控制面板中找到任务计划,浏览任务计划,选定本机D:\ xampp\htdocs \ bugfree\notice.php,打开即可设定定时发送邮件。 - 定时发送bug统计报告设置
同理,在在控制面板中找到任务计划,浏览任务计划,选定本机D:\ xampp\htdocs \ bugfree\statBug.php,打开即可设定定时发送邮件。其它的设置于定时发送邮件的设置相同。
好啦,至此你就可以用bugfree平台自由自在地管理你的项目啦。
-
三、 常见问题
1、端口号冲突
打开xampp的apache下的httpd.conf文件,搜索80端口,将其修改为新的端口号(该端口号容易冲突,例如修改为8809);2、数据库连接不上
打开BugFree\Include文件夹中的Config.inc.php文件,修改其用户名和密码
/* 3. Define the username and password of the BugFree database. */
$_CFG['DB']['User'] = 'root';
$_CFG['DB']['Password'] = '12345';
$_CFG['DB']['Host'] = 'localhost';
$_CFG['DB']['Database'] = 'bugfree2';
$_CFG['DB']['TablePrefix'] = 'bf_';
$_CFG['DBCharset'] = 'utf8';3、数据库表创建不成功,报数据库Type=MyISAM错误
原因为数据库版本问题,打开BugFree\Schema.php文件,将所有Type=MyISAM替换为ENGINE=MyISAM即可 -
-
- 标签:
- 打开
- smtp
- 文件
- bugfree
- cfg
- 学习元
- password
- 配置
- 平台
- 安装
- 邮件
- 发送
- 数据库
-
加入的知识群:
学习元评论 (0条)
聪明如你,不妨在这 发表你的看法与心得 ~