BugFree

准备工作:(Windows环境下)

  • XAMPP 版本在5.x.x
  • bugfree_v3.0.1

不要用最新版本的XAMPP,切记。

下载

XAMPP

bugfree提取码: ff5d

XAMPP 安装

双击exe文件傻瓜式安装。

安装 bugfree

1.在上一步安装XAMPP时路径C:\xampp\htdocs\下新建文件夹bugfree,将下载bugfree文件解压后的内容复制进去。同时在新建一个BugFile文件夹,用于下一步操作。
2.打开XAMPP主界面上的前两个start按钮。
3.打开浏览器输入localhost/bugfree,如下图:

4.上图中的全部为绿色的勾勾仅为成功。然后点击继续。
5.按照下图中进行配置。

6.然后修改C:\xampp\htdocs\bugfree\protected\config中的main.php。全部替换即可。

<?php
return array (
  'basePath' => 'C:\\xampp\\htdocs\\bugfree\\protected\\config\\..',
  'name' => 'BugFree 3.0.1',
  'preload' => 
  array (
    0 => 'log',
  ),
  'language' => 'zh_cn',
  'theme' => 'classic',
  'defaultController' => 'site',
  'timeZone' => 'Asia/Shanghai',
  'import' => 
  array (
    0 => 'application.models.*',
    1 => 'application.components.*',
    2 => 'application.service.*',
  ),
  'modules' => 
  array (
    'gii' => 
    array (
      'class' => 'system.gii.GiiModule',
      'password' => '123456',
      'ipFilters' => 
      array (
        0 => '127.0.0.1',
        1 => '::1',
      ),
    ),
  ),
  'components' => 
  array (
    'user' => 
    array (
      'allowAutoLogin' => true,
    ),
    'request' => 
    array (
      'enableCookieValidation' => true,
    ),
    'cache' => 
    array (
      'class' => 'CDbCache',
      'connectionID' => 'db',
    ),
    'db' => 
    array (
      'pdoClass' => 'NestedPDO',
      'connectionString' => 'mysql:host=localhost;dbname=bugfree;port=3306',
      'emulatePrepare' => true,
      'username' => 'root',
      'password' => '',
      'charset' => 'utf8',
      'tablePrefix' => 'bf_',
    ),
    'errorHandler' => 
    array (
      'errorAction' => 'site/error',
    ),
    'log' => 
    array (
      'class' => 'CLogRouter',
      'routes' => 
      array (
        0 => 
        array (
          'class' => 'CFileLogRoute',
          'levels' => 'info, error, warning',
          'categories' => 'bugfree.*',
        ),
      ),
    ),
  ),
  'params' => 
  array (
    'uploadPath' => '../BugFile',
    'picPreviewApp' => 'http://::1/BugFile',
    'allUserGroupId' => 1,
    'ldap' => 
    array (
      'host' => '',
      'port' => '',
      'base' => '',
      'user' => '',
      'pass' => '',
    ),
    'mail' => 
    array (
      'on' => '1',
      'from_address' => 'bugfree-noreply@test.com',
      'from_name' => 'BugFree',
      'send_method' => 'SMTP',
      'send_params' => 
      array (
        'host' => '',
        'smtp_auth' => false,
        'username' => '',
        'password' => '',
      ),
    ),
  ),
)
?>

7.刷新之后就会出现登录界面。