Ubuntu - Edgy Eft 下安装配置Bugzilla

版本信息:
Ubuntu 6.10 Edgy Eft
Bugzilla 2.22
Apache2 2.0.55
MySQL 5.0.24a

1. 准备工作
a. 在安装Bugzilla前,必须首先安装配置好Apache和MySQL,可以参考之前我的文章:
安装配置MySQL:http://blog.csdn.net/moonsky/archive/2007/01/31/1499437.aspx
安装配置Apache:
# sudo apt-get install httpd

b. 在MySQL中新建数据库,名为bugzilla

c. 至于Python和Perl,apt会自动检查依赖关系并安装。

2. 安装Bugzilla:
# sudo apt-get install bugzilla
根据提示输入相关信息,包括数据库访问和管理员帐号等

3. FAQ:
a. 如果安装后,访问http://localhost/bugzilla/时出现错误:
在Apache的error.log中会出现:
[Mon Apr 02 14:42:59 2007] [error] [client 127.0.0.1] No value for param user_verify_class (try running checksetup.pl again) at /usr/share/perl5/Bugzilla/Config.pm line 224.
[Mon Apr 02 14:42:59 2007] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at /usr/share/perl5/Bugzilla/Auth.pm line 43.
[Mon Apr 02 14:42:59 2007] [error] [client 127.0.0.1] Compilation failed in require at /usr/share/bugzilla/Bugzilla.pm line 28.
[Mon Apr 02 14:42:59 2007] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at /usr/share/bugzilla/Bugzilla.pm line 28.
[Mon Apr 02 14:42:59 2007] [error] [client 127.0.0.1] Compilation failed in require at /usr/share/bugzilla/globals.pl line 800.
[Mon Apr 02 14:42:59 2007] [error] [client 127.0.0.1] BEGIN failed--compilation aborted at /usr/share/bugzilla/globals.pl line 800.
[Mon Apr 02 14:42:59 2007] [error] [client 127.0.0.1] Compilation failed in require at /usr/lib/cgi-bin/bugzilla/index.cgi line 33.
[Mon Apr 02 14:42:59 2007] [error] [client 127.0.0.1] Premature end of script headers: index.cgi
这是由于在安装是没有正常完成引起的,需要执行下面的文件:
# cd /usr/share/bugzilla/lib/
# sudo ./checksetup.pl

b. 如果安装后,在主页面输入用户名和密码登录时出现404错误,在地址栏的地址类似如下:
http://localhost/cgi-bin/bugzilla/cgi-bin/bugzilla/index.cgi
修改如下文件:
# sudo vi /etc/bugzilla/params
修改下面一行:
'urlbase' => './',

c. 如果Apache的日志中还是出现类似的错误:
[Mon Apr 02 15:29:03 2007] [error] [client 127.0.0.1] script not found or unable to stat: /usr/lib/cgi-bin/bugzilla/skins, referer: http://localhost/cgi-bin/bugzilla/index.cgi
执行如下命令:
# cd /usr/lib/cgi-bin/bugzilla/
# sudo ln -s /usr/share/bugzilla/web/skins skins
这时候在日志中还会有如下的错误:
[Mon Apr 02 16:26:46 2007] [error] [client 127.0.0.1] File does not exist: /var/www/bugzilla/skins/custom, referer: http://localhost/cgi-bin/bugzilla/index.cgi
[Mon Apr 02 16:26:46 2007] [error] [client 127.0.0.1] (13)/x10/x94/xd0/xbf/xd06/xf5/xb7/xb6/xb1/x05/bp/x95/xd0/xbf: exec of '/usr/lib/cgi-bin/bugzilla/skins/standard/index.css' failed, referer: http://localhost/cgi-bin/bugzilla/index.cgi
[Mon Apr 02 16:26:46 2007] [error] [client 127.0.0.1] Premature end of script headers: index.css, referer: http://localhost/cgi-bin/bugzilla/index.cgi
[Mon Apr 02 16:26:46 2007] [error] [client 127.0.0.1] script not found or unable to stat: /usr/lib/cgi-bin/bugzilla/skins/custom, referer: http://localhost/cgi-bin/bugzilla/index.cgi
因此还需要进行如下操作:
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值