Bugzilla安装与配置(Centos).docx_第1页
Bugzilla安装与配置(Centos).docx_第2页
Bugzilla安装与配置(Centos).docx_第3页
Bugzilla安装与配置(Centos).docx_第4页
Bugzilla安装与配置(Centos).docx_第5页
免费预览已结束,剩余2页可下载查看

下载本文档

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

文档简介

1.首先确保所使用系统安装有apahce server,commend: rpm -qa |grep httpd 。没有的话可以从/下载解压缩安装或 yum install apache*2. 确保所使用系统是否安装有mysql, commend:rpm -qa | grep mysql ,没有的话使用命令 yum install mysql 安装即可3.安装bugzilla1)下载源码包/download/,将安装包放入备份目录中/var/www/html/2)tar xzvf bugzilla-3.6.tar.gz ,把目录重命名改为bugzilla 进入目录/var/www/html/bugzilla输入perl checksetup.pl检查模块3)根据提示安装bugzilla所需的perl模块 或者 执行 /usr/bin/perl install-module.pl -all安装所有模块4)所有模块安装完成后,执行./checksetup.pl ,自动生成localconfig 文件进入/var/www/html/bugzilla目录下vi localconfig修改以下内容: $db_host = localhost; $db_name = bugs; $db_user = mysql; (个人设定) $db_pass = 123;(密码个人设定)修改完保存后重新perl checksetup.pl4.配置apache 1)vi /etc/httpd/conf/httpd.conf ,在文件中添加如下内容AddHandler cgi-. .cgiOptions +Indexes +ExecCGIDirectoryIndex index.cgi index.htmlAllowOverride LimitAddHandler cgi-script .cgiorder deny,allowAllow from all2)修改#DocumentRoot /var/www/html为DocumentRoot /var/www/html/bugzilla3)保存apacheserver配置,执行/etc/init.d/httpd restart5.配置mysql 1)启动mysql ,commend:/etc/init.d/mysqld start 2)登入mysql, commend:mysql -u root -p 根据提示输入密码登入即可3)为bugzilla 创建数据库用户和密码,并授权(如下所示)msyqlgrant,select,insert,update,delete,index,alter,create,lock tables,create temporary tables,drop,references.bugs.* to bugslocalhost identified by db_passmysqlflush privilegesmysqlq4)restart mysql ,commend:/etc/init.d/mysql start6.重新进入/var/www/html/bugzilla/perl checksetup.pl 提示输入bugzilla管理员的邮箱,密码等,用来登录服务器7.修改bugzilla权限为:drwxr-x- 15 root apache 4096 May 13 18:24 bugzilla8.顺利的话bugzilla 到此就配置完成啦,通过http:/localhost 访问bugzilla另外:把安装过程中出现的错误己解决办法分享一下(最重要的是要学会google)1) DB:mysql模块无法安装,出现的错误信息:passing argument 2 of Perl_sv_2mortal makes pointer from integer without a cast解决办法:安装mysqldevel,执行:yum install mysql* 2)通过浏览器无法访问bugzilla,出现的错误信息:sonfware error解决办法:/usr/bin/perl install-module.pl DateTime:Localebugzilla安装配置数据备份还原1.安装和配置apache2:1.配置:vi /etc/apache2/httpd.conf 添加: AddHandler cgi-scrpt .cgi Options All AllowOverride Limit Order allow,deny Allow from all 2.修改 “DirectoryIndex index.html”在index.html前加入“index.cgi” 3.找到,DocumentRoot /var/www/html,将引号中的内容替换为bugzilla的安装路径,本例为 /root/bugzilla/bugzilla-2.18rc2 ,替换完结果为:DocumentRoot“/root/bugzilla/bugzilla-2.18rc2” 说明:指定Apache服务器存放网页的根目录 4.(可选)找到 ServerName 5. 在行#ServerName :80 下面添加如下内容: 6. ServerName 0:80 7.启动和关闭apache2 /etc/init.d/apache2 stop /etc/init.d/apache2 start 8.测试APACHE2是否服务启动成功 http:/serverip/ 如果显示it works就表示服务已成功。2.安装mysql 1、下载源码包: /down.php?id=24933&ResourceID=7159&site=1 2、解包:tar -zxvf mysql-5.0.32.tar.gz 3、安装:cd mysql-5.0* ./configure -prefix=/usr/local/mysql make make install 完成安装 4、初始化mysql:/usr/local/mysql/bin/mysql_install_db-user=root /usr/local/mysql/bin/mysqld_safe -user=root & (启动mysql 服务端) /usr/local/mysql/bin/mysql -user=root ( 启动mysql客户端) use mysql; (选择系统数据库) update user set Password=password(YourPassword) where User=root;(设置数据库root密码) insert into user (User,Host,Password,Select_priv,Insert_priv,Update_priv,Del ete_priv,Index_priv,Alter_priv,Create_priv,Drop_priv,Grant _priv,Reload_priv,Shutdown_priv,Process_priv,File_priv) values(mysql,password(YourPassword),Y,Y,Y,Y ,Y,Y,Y,Y,Y,Y,Y,Y,Y); (增加数据库用户)3.安装Perl(系统自带不用安) 1、下载源码包:/down.php?id=78&ResourceID=44&site=1 2、解包:tar -jvxf perl-5.8.8.tar.bz2 3、安装:rm -f config.sh Policy.sh sh Configure -de make make test make install4.bugzilla安装配置 1、下载源码包: /pub//webtools/bugzilla-2.22.2.tar.gz 2、解包:tar zxvf bugzilla-2* 3、配置:mkdir /srv/www/bugzilla-2 (创建bugzilla目录) cd bugzilla* mv * /srv/www/bugzilla-2 (移动bugzilla文件到apache服务目录) 4.安装perl模块 在bugzilla的解压目录下运行checksetup.pl文件检查模块的安装情况,如下: # perl checksetup.plChecking 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) not foundChecking for File:Spec (v0.84) found v0.83Checking for File:Temp (any) ok: found v0.13Checking for Template (v2.10) not foundChecking for Text:Wrap (v2001.0131) ok: found v2001.0929Checking for Mail:Mailer (v1.67) not foundChecking for MIME:Base64 (v3.01) found v2.12Checking for MIME:Parser (v5.406) not foundChecking for Storable (any) ok: found v2.06The following Perl modules are optional:Checking for GD (v1.20) not foundChecking for Template:Plugin:GD:Image (any) not foundChecking for Chart:Base (v1.0) not foundChecking for XML:Twig (any) ok: found v3.09Checking for GD:Graph (any) not foundChecking for GD:Text:Align (any) not foundChecking for PatchReader (v0.9.4) not foundChecking for Image:Magick (any) not foundChecking for HTML:Parser (v3.40) found v3.26Checking for HTML:Scrubber (any) 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 want to convert BMP image attachments to PNG to conservedisk space, you will need to install the ImageMagick applicationAvailable from , and the Image:MagickPerl module by running (as root): /usr/bin/perl -MCPAN -e install Image:MagickIf 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:AlignTemplate:Plugin:GD: /usr/bin/perl -MCPAN -e install Template:Plugin:GDIf you want to see pretty HTML views of patches, you should install thePatchReader module:PatchReader: /usr/bin/perl -MCPAN -e install PatchReaderIf you want additional HTML tags within product and group descriptions,you should install:HTML:Scrubber: /usr/bin/perl -MCPAN -e install HTML:ScrubberHTML:Parser: /usr/bin/perl -MCPAN -e install HTML:ParserBugzilla requires some Perl modules which are either missing fromyour 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 MIME:Parser Minimum version required: 5.406 /usr/bin/perl -MCPAN -e install File:Spec Minimum version required: 0.84 /usr/bin/perl -MCPAN -e install Template Minimum version required: 2.10 /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 /usr/bin/perl -MCPAN -e install Mail:Mailer Minimum version required: 1.67 /usr/bin/perl -MCPAN -e install MIME:Base64 Minimum version required: 3.01 /usr/bin/perl -MCPAN -e install AppConfig Minimum version required: 1.52 /usr/bin/perl -MCPAN -e install DBI Minimum version required: 1.38 你会发现有一大堆perl modules not found!你还会发现这个安装检查文件,告诉我们如何去安装那些没有的perl modules。如:GD:/usr/bin/perl -MCPAN -e install GD 上面提示告诉我们可以从CPAN仓库安装它,使用CPAN命令: perl -MCPAN -e install 模块名称 5.手动安装找不到的perl模块 perl程序的安装都要经过: perl Makefile.PL make make test /可省 make install 6.最后再次运行 perl checksetup.pl,直到找到全部的perl模块 7.再次配置apache 使用编辑器打开httpd.conf文件,如下: vi httpd.conf 使用/命令查找字符串ServerName,并按如下所示修改: ServerName 8:80 最后一行为添加的内容,8为Linux主机的IP地址。 8.启动httpd服务 /etc/init.d/apache2 stop /etc/init.d/apache2 restart 9.配置mysql(在mySQL中配置bugzilla的帐户bugs) # mysql -uroot -p mysql GRANT SELECT, INSERT, - UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, - CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* - TO bugslocalhost IDENTIFIED BY ; mysql FLUSH PRIVILEGES; mysql quit; 10.在bugzilla目录中编辑localconfig文件,如下: 把该文件中的index_html修改为 $index_html = 1; 最后一行为修改的内容,1表示产生index.html文件 11.重新执行checksetup.pl文件: ./checksetup.pl 至此bugzi

温馨提示

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

评论

0/150

提交评论