Bugfree 0.2 系统安装 使用环境: Windows XP SP2 Apache 2.0.52 MySql 4.1.9 PHP 5.0.3 目的:安装Bugfree 0.2 1. 解压Bugfree到C:\Web下 2. 在httpd.conf配置文件中,增加bugfree的虚拟目录,虚拟脚本目录 Alias /bugfree "C:/Web/bugfree" Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all ScriptAlias /bugfree/ "C:/Web/bugfree/" AllowOverride None Options None Order allow,deny Allow from all 3. 修改C:\Web\BugFree\Include\ConfigBug.inc.php, 把两处密码改为上述 root 密码 $BugConfig["BugDB"]["Password"] = "123456"; $BugConfig["UserDB"]["Password"]= "123456"; #123456 是 MySql中的root的password,如果是其他的密码,相应的修改 4. 生成Bugfree的数据库 生成Bugfree数据,在命令行状态下: C:> mysql -h 127.0.0.1 -u root -p, : 然后输入root密码123456 mysql> create database BugFree; : 建立数据库 建立Bugfree的表格: mysql -u root -p BugFree < c:\web\bugfree\document\BugFree.sql 7.修改php.ini php.ini 位于C:\php,修改入下: allow_call_time_pass_reference = On error_reporting = E_ALL register_globals = On #为了检查错误, error_reporting 设置为E_ALL,说明所有的信息都会显示 6. 修改路径,因为Web根目录不在缺省安装目录 浏览bugfree, 发现路径错误,修改httpd.conf #DocumentRoot "H:/Program Files/Apache Group/Apache2/htdocs" DocumentRoot "C:/Web" 7.生成adodb-iterator.inc.php文件 浏览bugfree, 发现找不到"adodb-iterator.inc.php"文件(此文件在运行PHP5的时候会用到), 从网上找到adodb-iterator.inc.php文件,存至C:\web\bugfree\Include\Class\Ado. 8.修改error report属性 浏览bugfree, 能看到登陆界面,但是发现有Notice的信息,修改php.ini # error_reporting = E_ALL error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT 问题解决,能看到Bugfree的主页