版本信息:
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
因此还需要进行如下操作:
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
因此还需要进行如下操作: