Bugzilla/Linux下Bugzilla的安装
来自站长百科
安装mysql[ ]
建议安装MySQL 5.0
关于MySQL 5.0的rpm包网上有很多,主要安装
- MySQL-shared-compat-5.0.24a-0.rhel4.i386.rpm
- MySQL-devel-standard-5.0.24a-0.rhel4.i386.rpm
- MySQL-server-standard-5.0.24a-0.rhel4.i386.rpm
客户端要安装的话就安装下面两个
- MySQL-client-standard-5.0.24a-0.rhel4.i386.rpm
- MySQL-test-standard-5.0.24a-0.rhel4.i386.rpm
一般都会遇到socket(2)问题
解决方法如下:
- 先看看自己的linux系统有没有设置selinux
- 修改 /etc/selinux/config
SELINUXTYPE=disabled
- 看看自己安装的mysql目录是不是属于mysql用户和组,如果不是就
chown -R /var/lib/mysql
Apache的安装[ ]
Apache安装比较简单,下载rpm 包,直接安装。如果本身系统自带,就不必安装
一般会遇到的问题:
- 端口被占用或者打不开网页
解决方法:修改httpd.conf
Listen 8089
端口号可以任意更改
然后检查自己的系统是不是开启了防火墙,如果开启,关闭即可
Bugzilla的安装[ ]
将下载下来的Bugzilla解压
tar -xcvf bugzilla-2.20.2.tar
解压后 进入 解压的目录
cd /bugzilla-2.20.2
执行
./checksetup.pl
会检查bugzilla的哪些模块还没有安装
Checking perl modules ... Checking for AppConfig (v1.52) not found Checking for CGI (v2.93) not found Checking for Data::Dumper (any) ok: found v2.12 Checking for Date::Format (v2.21) not found Checking for DBI (v1.38) ok: found v1.601 Checking for File::Spec (v0.84) found v0.83 Checking for File::Temp (any) ok: found v0.13 Checking for Template (v2.08) not found Checking for Text::Wrap (v2001.0131) ok: found v2001.0929 Checking for Mail::Mailer (v1.65) not found Checking for Storable (any) ok: found v2.06 The following Perl modules are optional: Checking for GD (v1.20) not found Checking for Chart::Base (v1.0) not found Checking for XML::Parser (any) ok: found v2.31 Checking for GD::Graph (any) not found Checking for GD::Text::Align (any) not found Checking for PatchReader (v0.9.4) not found If you you want to see graphical bug charts (plotting historical data over time), you should install libgd and the following Perl modules: GD: /usr/bin/perl -MCPAN -e 'install "GD"' Chart: /usr/bin/perl -MCPAN -e 'install "Chart::Base"' If you you want to see graphical bug reports (bar, pie and line charts of current data), you should install libgd and the following Perl modules: GD: /usr/bin/perl -MCPAN -e 'install "GD"' GD::Graph: /usr/bin/perl -MCPAN -e 'install "GD::Graph"' GD::Text::Align: /usr/bin/perl -MCPAN -e 'install "GD::Text::Align"' If you want to see pretty HTML views of patches, you should install the PatchReader module: PatchReader: /usr/bin/perl -MCPAN -e 'install "PatchReader"' Bugzilla requires some Perl modules which are either missing from your system, or the version on your system is too old. They can be installed by running (as root) the following: /usr/bin/perl -MCPAN -e 'install "Mail::Mailer"' Minimum version required: 1.65 /usr/bin/perl -MCPAN -e 'install "File::Spec"' Minimum version required: 0.84 /usr/bin/perl -MCPAN -e 'install "AppConfig"' Minimum version required: 1.52 /usr/bin/perl -MCPAN -e 'install "Template"' Minimum version required: 2.08 /usr/bin/perl -MCPAN -e 'install "Date::Format"' Minimum version required: 2.21 /usr/bin/perl -MCPAN -e 'install "CGI"' Minimum version required: 2.93
发现有很多包都没有安装
接下来就按照它的提示在线安装
perl -MCPAN -e 'install "GD"' perl -MCPAN -e 'install "Chart::Base"'
如果在线安装失败,那就去网上下载相应的安装包,安装包的安装步骤是:
perl Makefile.PL make make test make install
一般会遇到make test 失败,就跳过make test,直接make install
Bugzilla的配置问题[ ]
首先,cp -R bugzilla-2.20.2 /var/www/html/bugzilla
注意: /var/www/html 为apache的docroot,可以在httpd.conf中修改DocumentRoot "/var/www/html",编辑httpd.conf,在任意一行加入
<Directory "/var/www/html/bugzilla"> AddHandler cgi-script .cgi Options +Indexes +ExecCGI DirectoryIndex index.cgi AllowOverride Limit </Directory>
编辑完保存退出
编辑/var/www/html/bugzilla/localconfig
$index_html = 0; $db_name = 'test'; # name of the SQL database $db_user = 'root'; # user to attach to the SQL database
编辑完保存退出
在/var/www/html/bugzilla/下执行:
./cheecksetup.pl
Checking perl modules ... Checking for AppConfig (v1.52) ok: found v1.66 Checking for CGI (v2.93) ok: found v3.29 Checking for Data::Dumper (any) ok: found v2.121 Checking for Date::Format (v2.21) ok: found v2.22 Checking for DBI (v1.38) ok: found v1.59 Checking for File::Spec (v0.84) ok: found v3.25 Checking for File::Temp (any) ok: found v0.18 Checking for Template (v2.08) ok: found v2.19 Checking for Text::Wrap (v2001.0131) ok: found v2006.1117 Checking for Mail::Mailer (v1.65) ok: found v1.77 Checking for Storable (any) ok: found v2.16 The following Perl modules are optional: Checking for GD (v1.20) ok: found v2.35 Checking for Chart::Base (v1.0) ok: found v2.3 Checking for XML::Parser (any) ok: found v2.34 Checking for GD::Graph (any) ok: found v1.44 Checking for GD::Text::Align (any) ok: found v1.18 Checking for PatchReader (v0.9.4) ok: found v0.9.5 Checking user setup ... Removing existing compiled templates ... Precompiling templates ... Checking for DBD::mysql (v2.9003) ok: found v4.005 Checking for MySQL (v3.23.41) ok: found v4.1.12 Populating duplicates table..
出现以上画面说明大攻告成。第一次启动的画面会有不同,会叫你输入bugzilla管理员帐户的地址和密码等信息
参考来源[ ]
http://www.linuxidc.com/Linux/2007-11/8699.htm
Bugzilla使用手册导航 | ||||
---|---|---|---|---|
|