Bugfree安装配置及错误解决
- 格式:pdf
- 大小:75.57 KB
- 文档页数:4
Linux+XAMPP+BugFree配置小记
由于公司原先的BUG系统删掉了,总监让我搞个BUG跟踪系统,事先也没装过那
东西。说搞就搞吧,BUG跟踪系统有很多,最后选择了免费的BugFree,开源的
嘛~而且功能对于咱们小公司来说足够!于是先百度、谷歌搜了下相关的安装说
明,但是操作下来感觉有点不完全,在此特将自己的安装笔记记录下来,提供给
有需要的朋友!希望此文能帮助到你!
首先下载XAMPP:
XAMPP Linux 1.6.8a:
http://jaist.dl.sourceforge.net/sourceforge/xampp/xampp-linux-1.6.8a.
tar.gz
相关Linux下安装和配置XAMPP请参考官网:
http://www.apachefriends.org/zh_cn/xampp-linux.html
安装之前首先确认你服务器的80端口有没被占用
netstat -an|grep -w 80
如果被占用了请先关闭相关服务,XAMPP启动要用到80端口.
安装XAMPP:
[root@localhost ~]#tar xvfz xampp-linux-1.6.8a.tar.gz -C /opt
然后启动(命令参数见XAMPP官网):
opt/lampp/lampp start
您应该能在屏幕上看到类似下面的提示信息:
Starting XAMPP 1.6.8a...
LAMPP: Starting Apache...
LAMPP: Starting MySQL...
LAMPP started.
注意事项1(见文末注意1)
好了。Apache 和 MySQL 正在运行中
只需在您的浏览器中输入下面的链接即可:http://localhost
看到一些示例程序的 XAMPP 开始页面就表示XAMPP安装成功了。接下来我们要
配置XAMPP的安全性。
配置XAMPP安全性:
[root@localhost ~]# /opt/lampp/lampp security
XAMPP: Quick security check...
XAMPP: Your XAMPP pages are NOT secured by a password.
XAMPP: Do you want to set a password? [yes] XAMPP: Do you want to set a password? [yes] yes
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Password protection active. Please use 'lampp' as user name!
XAMPP: MySQL is accessable via network.
XAMPP: Normaly that's not recommended. Do you want me to turn it off? [yes]
yes
XAMPP: Turned off.
XAMPP: Stopping MySQL...
XAMPP: Starting MySQL...
XAMPP: The MySQL/phpMyAdmin user pma has no password set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL pma password.
XAMPP: Setting phpMyAdmin's pma password to the new one.
XAMPP: MySQL has no root passwort set!!!
XAMPP: Do you want to set a password? [yes] yes
XAMPP: Write the password somewhere down to make sure you won't forget
it!!!
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Setting new MySQL root password.
XAMPP: Change phpMyAdmin's authentication method.
XAMPP: The FTP password is still set to 'lampp'.
XAMPP: Do you want to change the password? [yes] yes
XAMPP: Password:
XAMPP: Password (again):
XAMPP: Reload ProFTPD...
XAMPP: Done.
注意事项2(见文末注意2)
并设置 XAMPP 随系统自动启动
[root@localhost ~]# ln -s /opt/lampp/lampp /etc/rc.d/rc3.d/S99lampp
[root@localhost ~]# ln -s /opt/lampp/lampp /etc/rc.d/rc4.d/S99lampp
[root@localhost ~]# ln -s /opt/lampp/lampp /etc/rc.d/rc5.d/S99lampp
自此,XAMPP已经配置好了!下面我们来配置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/
然后复制Include/Config.inc.Sample.php为Include/Config.inc.php,编辑
并修改数据库链接地址:
(复制命令CP和修改命令VI,这里就不多介绍了)
/* 3. Define the username and password of the BugFree database. */
$_CFG['DB']['User'] = 'root'; // 数据库登录用户名
$_CFG['DB']['Password'] = 'password'; // 数据库登录用户密码
$_CFG['DB']['Host'] = 'localhost'; // 数据库服务器地址
$_CFG['DB']['Database'] = 'bugfree'; // 指定BugFree数据库名
称
$_CFG['DB']['TablePrefix'] = 'bf_'; // 数据库表前缀,默认为
bf_。除非有冲突,不建议修改或为空
$_CFG['DBCharset'] = 'UTF8'; // 数据库编码设置,保留
默认值
然后设置文件目录权限:
[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/设置新的数据库
注意事项3(见文末注意3)
phpsql在线:
http://localhost/phpmyadmin/
可用PHPSQL操作Mysql数据或linux终端登录mysql
[root@ASP-WEB root]# /opt/lampp/bin/mysql -u root -p
至此,全部安装完成!XAMPP平台真的是个好东西,省去了很多在Linux安装的
麻烦!
注意:
1.如果在启动时出现如apache is already running mysql is already
running …(在关闭时也关闭不了)则说明这些程序已经运行起了,而我们lampp
自带的启动脚本没有成功启动程序,这种情况一般是我们外部已经安装并启动了
相同的程序,解决方法就是先关闭这些already running 的程序(关闭不了就
kill进程),再来启动lampp。
2.如果此处无法设置mysql密码,则修改
/opt/lampp/phpmyadmin/libraries/config.default.php文件将其中的$cfg[‘Servers’][$i][‘host’]=’localhost’这句中的localhost改成
127.0.0.1即可。
3.如在新建数据库时包新建语法错误,则需要修改/bugfree/Schema.php文件,
把TYPE改成ENGINE 就ok了(即TYPE=MyISAM 全部替换成 ENGINE=MyISAM ),
出现
Call-time pass-by-reference has been deprecated
则,修改/opt/lampp/etc/php.ini 文件,将
allow_call_time_pass_reference=off
中的 Off 改成 On (注意一定是这句) ,Web Server重起就可以了,原因在于
自带的数据库版本过低,而bugfree2以上的版本用的创建数据库的sql语句使
用了新语法,旧版本不支持导致的,根据提示将语法改回就版本就可以了。