bugzilla3.61在windows下的安装步骤

上一篇 / 下一篇  2010-08-05 09:57:12 / 个人分类:测试工具

    这两天自己尝试着在windows下安装bugzilla。Bugzilla是一个Bug追踪系统。

版本:Bugzilla3.61+Apache2.2.13+ Activeperl5.10.1 +mysql5.0.22


本次安装环境:

操作系统windows2003

perl解释器:ActivePerl-5.10.1.1007

数据库MySQL5.0.22

Bugzilla版本:3.61

web serverApache2.2.13


下载地址:

1Bugzillahttp://www.bugzilla.org/download

  选择下载:bugzilla-3.6.1.tar.gz

2apachehttp://archive.apache.org/dist/httpd/binaries/win32/

  选择下载:apache_2.2.13-win32-x86-no_ssl.msi

3Activeperlhttp://downloads.activestate.com/ActivePerl/releases

  选择下载:ActivePerl-5.10.1.1007-MSWin32-x86-291969.msi

4mysqlmysql-5.0.22-win32

5:邮件配置:http://www.glob.com.au/sendmail/

  选择下载:sendmail-bugzilla-setup.exe


一、Activeperl

Activeperl的安装很简单,一路点击Next即可,它会自动安装到C:\perl目录。同时在系统变量Path中增加自己的C:\perl\bin路径信息。

二、mysql的安装:默认安装即可,安装完后,有如下操作:

1:创建数据库:bugs: 

create database bugs;

2:创建用户bugs/bugs,并授权给数据库bugs

GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE,LOCK TABLES,DROP,REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY 'bugs';

3:mysql数据库授权表中重新装载权限

FLUSH PRIVILEGES;

 

三、安装bugzilla

   bugzilla并不需要安装,下载完后解压到本地某个目录下即可.

   解压缩:bugzilla-3.6.1.tar.gz把文件放到:D:\Program Files\bugzilla

四、安装perl module

   Bugzilla为我们准备了一个很好的脚本文件checksetup.pl来进行配置,我们随时可以运行chekcsetup.pl文件来进行服务器配置而不会对Bugzilla系统造成任何影响。

   运行该脚本,在命令行下进入Bugzilla的主目录,键入:perl checksetup.pl,运行后,该脚本会给出系统所缺的各种元素乃至获取办法。

   ppm install <perl模块名.ppd>进行。

   例如:

ppm install TimeDate

ppm install Template-Toolkit



当插件安装完后,再次运行perl checksetup.pl,系统在《bugzilla目录》下生成《localconfig文件》:

  进入《bugzilla目录》修改“localconfig文件”,修改其中的:

  $db_host = "localhost";

  $db_name = "bugs";

  $db_user = "bugs";

  $db_pass = "bugs";-------就是刚才你建立数据库时用到的密码

  $db_port =3306;  ------mysql的端口

修改好localconfig文件,再次运行checksetup.pl,此处会按要求创建数据库以及其中的tables,提示输入:Please enter your SMTP server's hostname:mail.sina.com;并要求你输入administrator(默认的超级用户)的信息:

Emaillogintest001@sina.com

Realnameadmin

Password123456

执行,直到提示"Now that you have installed Bugzilla......".安装完成


五、安装apache,默认安装即可

   修改配置文件httpd.conf:将bugzilla部署到Apache,以便于项目成员可以通过浏览器进行访问。

   地址:Apache安装目录下conf目录下的httpd.conf文件

   1.1:如果端口被占用,修改侦听端口:

        Listen 80

   1.2、取消注释#AddHandler cgi-script. .cgi

   1.3、增加默认文档,在文档中查找DirectoryIndex index.html一行,在后面添加index.cgi,即更改为:DirectoryIndex index.html index.cgi

   1.4、增加虚拟目录映射,并设置目录权限。增加下列几行,这里默认Bugzilla文件目录位于D:\Buzilla,别名为bugzilla,注意:在配置文件中是使用“/”而不是“\

 

Alias /bugzilla "D:/Program Files/bugzilla"
<Directory " D:/Program Files/bugzilla ">
    AddHandler cgi-script. .cgi
    Options Indexes FollowSymLinks ExecCGI
    AllowOverride All
    ScriptInterpreterSource Registry-Strict
    Options ExecCGI All
    Options +ExecCGI
    Order allow,deny
    Allow from all
</Directory>

   备注:此时访问http://localhost:8012/bugzilla/ 会报错,是因为Apache找不到perl文件的路径,解决办法是:

   1.5、进入bugzilla目录,将.cgi.pl的顶部的perl路径由/use/bin/perl替换成C:/perl/bin/perl即可。即:将#!/usr/bin/perl替换为:#!C:/perl/bin/perl

   1.6、重新启动Apache服务器设置即可生效。

   1.7、再次访问http://localhost:8012/bugzilla/ OK!我们可以看到Bugzilla的主界面了。



备注:解决邮件发送问题,采用第三方软件sendmail-bugzilla-setup.exe方式

1、安装sendmail-bugzilla-setup.exe

    SMTP Serversmtp.sina.com

    Default Domainmail.sina.com

    >>next

    Username/Passwordxxx@sina.com/xxx

    >> finish!



2、登录bugzilla(管理员)

   1Parameters --Required Settings

      urlbase   (邮件URL基地址) http://xx.xx.xx.xx:8012/bugzilla

   2Parameters -- Email

      mail_delivery_method   (发送邮件的方式):Sendmail

      Sendmail mailfrom   (邮件从哪里发送的) xxx@sina.com 需支持pop3

此时创建bug时就会发给sina邮箱发邮件了



TAG:

测试小匡 引用 删除 welcomezhang   /   2010-08-05 17:18:25
没用过,只用QC呵,收藏下
 

评分:0

我来说两句

Open Toolbar