Bugzilla 部署详解.doc_第1页
Bugzilla 部署详解.doc_第2页
Bugzilla 部署详解.doc_第3页
Bugzilla 部署详解.doc_第4页
Bugzilla 部署详解.doc_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Bugzilla 部署详解 (Red Hat Enterprise Linux Service 5.4)1. 硬件平台i386 架构服务器:2. 系统linux版本为:Red Hat Enterprise Linux Service 5.43. 相关软件版本:(建议以下安装均使用rpm,用户也可自行选择源码安装)(1) 安装Apache:rpm ivh httpd-2.2.3-31.el5.i386.rpmrpm ivh httpd-devel-2.2.3-31.el5.i386.rpmrpm -ivh httpd-manual-2.2.3-31.el5.i386.rpm(2) 安装MySQL:rpm ivh Mysql-5.0.77-3.el5.i386.rpmrpm ivh Mysql-bench-5.0.77-3.el5.i386.rpmrpm -ivh Mysql-devel-5.0.77-3.el5.i386.rpmrpm -ivh Mysql-server-5.0.77-3.el5.i386.rpm(3) 安装Perl:rpm ivh Perl-5.8.8-27.el5.i386.rpm(4) 安装SendMailrpm ivh Sendmail-8.13.8-2.el5.i386.rpmrpm ivh Sendmail-cf-8.13.8-2.el5.i386.rpmrpm ivh Sendmail-devel-8.13.8-2.el5.i386.rpmrpm ivh Sendmail-doc-8.13.8-2.el5.i386.rpm(以上文件均可以在安装光盘的Server 文件夹找到,也可在安装系统时选择WEB ,SQL ,MAIL服务)(5) 下载Bugzilla 版本 bugzilla-3.1.4.tar.gz/pub//webtools/4. 查看是否安装成功:(1) 检查Apache 服务rootlocalhost # service httpd start启动 httpd: 确定rootlocalhost # httpd -vServer version: Apache/2.2.3Server built: Jul 15 2009 09:02:36也可以在本机浏览器访问/ (2)启动mysql服务后 :rootlocalhost # mysql -vWelcome to the MySQL monitor. Commands end with ; or g.Your MySQL connection id is 26Server version: 5.0.77 Source distributionReading history-file /root/.mysql_historyType help; or h for help. Type c to clear the buffer(3)检查Perl rootlocalhost # perl -vThis is perl, v5.8.8 built for i386-linux-thread-multiCopyright 1987-2006, Larry WallPerl may be copied only under the terms of either the Artistic License or theGNU General Public License, which may be found in the Perl 5 source kit.Complete documentation for Perl, including FAQ lists, should be found onthis system using man perl or perldoc perl. If you have access to theInternet, point your browser at /, the Perl Home Page.(4)检查Sendmail通常情况下,可以通过telnet到主机的25号端口来判断该主机使用的sendmail版本号。例如,rootlocalhost #telnet localhost 25Connected to localhost.Escape character is .220 localhost.localdomain ESMTP Sendmail 8.9.2/8.9.2; Tue, 30 Mar 1999 12:26:10 +0800 (CST)5. 配置及安装(1) 解压检查bugzilla rootlocalhost # cd /var/www/html (apache 默认发布路径)rootlocalhost html# tar zxvf bugzilla-3.1.4.tar.gzrootlocalhost html#mv bugzilla-3.1.4/ bugzilla/rootlocalhost html#cd ./bugzilla检查bugzilla所需要的模块 rootlocalhost bugzilla#perl checksetup.pl (显示类型下面的结果)Checking perl modules .Checking for AppConfig (v1.52) not foundChecking for CGI (v2.93) not foundChecking for Data:Dumper (any) ok: found v2.12Checking for Date:Format (v2.21) not foundChecking for DBI (v1.38) ok: found v1.601Checking for File:Spec (v0.84) found v0.83Checking for File:Temp (any) ok: found v0.13Checking for Template (v2.08) not foundChecking for Text:Wrap (v2001.0131) ok: found v2001.0929Checking for Mail:Mailer (v1.65) not foundChecking for Storable (any) ok: found v2.06The following Perl modules are optional:Checking for GD (v1.20) not foundChecking for Chart:Base (v1.0) not foundChecking for XML:Parser (any) ok: found v2.31Checking for GD:Graph (any) not foundChecking for GD:Text:Align (any) not foundChecking for PatchReader (v0.9.4) not foundIf you you want to see graphical bug charts (plotting historical data overtime), you should install libgd and the following Perl modules:GD: /usr/bin/perl -MCPAN -e install GDChart: /usr/bin/perl -MCPAN -e install Chart:BaseIf you you want to see graphical bug reports (bar, pie and line charts ofcurrent data), you should install libgd and the following Perl modules:GD: /usr/bin/perl -MCPAN -e install GDGD:Graph: /usr/bin/perl -MCPAN -e install GD:GraphGD:Text:Align: /usr/bin/perl -MCPAN -e install GD:Text:AlignIf you want to see pretty HTML views of patches, you should install thePatchReader module:PatchReader: /usr/bin/perl -MCPAN -e install PatchReader这里会发现缺少一些perl module 可以按照提示逐一进行安装: 例如:安装GD rootlocalhost bugzilla# /usr/bin/perl -MCPAN -e install GD通过网络下载自动安装(后面应该还有一个提示可以自动全部安装的,可以在后面找一下)在此步骤遇到了问题:/usr/bin/perl -MCPAN -e install Image:Magick 安装失败在安装这个前需要安装ImageMagick:官方网站进行下载: /script/download.php下载版本为:ImageMagick-6.7.3-0rootlocalhost share#tar xvfz ImageMagick-6.7.3-0rootlocalhost share#cd ./ ImageMagick-6.7.3-0rootlocalhost ImageMagick-6.7.3-0 ./configurerootlocalhost ImageMagick-6.7.3-0 makerootlocalhost ImageMagick-6.7.3-0 sudo make install成功安装后运行/usr/bin/perl -MCPAN -e install Image:Magick之后在安装Perl 的DBD:Mysql模块出现错误Cant open blib/man3/Image:Magick.3pm for writing: 协议错误该问题需要先安装:perl DBI尝试了一些方法:最后还是采用Perl自带安装方式-安装方法如下使用CPAN shell,以root身份登陆,然后发出如下命令:#perl -MCPAN -e shellcpaninstall DBIcpaninstall DBD:mysql此时在安装DBD mysql 还是出现错误:需要安装httpd-devel-2.2.3-31.el5.i386.rpm,(这问题是开始没有安装该包造成的)上述问题解决后运行rootlocalhost bugzilla#perl checksetup.pl如果主要的模块都正确安装,会在bugzilla的目录下生成一个localconfig文件修改该文件,主要是以下几个配置:$db_host = localhost; # The DNS name of the host that the database server runs on.$db_name = bugs;# The name of the database$db_user = root;# Who we connect to the database as.$db_pass = ; #Enter your database password here. 6. MySQL建立数据库#mysql -u root -p 回车 Enter Password:(如果没改过,那就是空,直接按回车就可以) mysqlcreate database bugs; Query OK, 1 row affected (0.11 sec) mysqlgrant all privileges on bugs.* to bugslocalhostidentified by bugspasswd; Query OK, 0 rows affected (0.03 sec) mysql flush privileges; Query OK, 0 rows affected (0.00 sec) mysql quit最后,再次运行perl checksetup.pl,会看到一些创建表的信息,并且中途会提示你输入管理员的相关信息(包括管理员邮箱地址及管理员密码)。有的时候回出现如下错误,请按照提示进行检查。我遇到的主要是MySQL服务没有开启或者 localconfig文件中配置的db_name,db_user,db_pass出现问题。Cant connect to local MySQL server through socket /var/lib/mysql/mysql.sock (2)This might have several reasons:* MySQL is not running.* MySQL is running, but there is a problem either in the server configuration or the database access rights. Read the Bugzilla Guide in the doc directory. The section about database configuration should help.* Your password for the root user, specified in $db_pass, is incorrect, in ./localconfig.* There is a subtle problem with Perl, DBI,

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论