灿烂的阳光,苦涩的生活,认真做,你能行!

发布新日志

  • Windows下Bugzilla+Apache+mysql+Perl安装

    2009-09-27 11:44:49

    Windows 下安装Bugzilla
    shorelew@hotmail.com整理
    本文将介绍搭建Windows下的Bugzilla服务器端的全部步骤。欢迎大家来信交流共同学习。
    Bugzilla
    下载并安装Bugzilla
    下载Bugzilla: http://bugzilla.org/download.html
    本文是以Bugzilla2.20版本为例子进行安装,同时可以在网站上找到相应的汉化包,感谢汉化作者为我们提供的方便与支持。
    下载解压缩到C:\Bugzilla ,保证Bugzilla文件放在C:\Bugzilla文件夹下,避免解压时生成多余的文件夹。
    MySQL
    下载 MySQL 4.1.x
    下载MySQL "Windows Essentials"版本: http://dev.mysql.com/downloads/mysql/4.1.html
    不推荐使用MySQL 5.x
    安装
    可以选择典型(Typial)安装MySQL,笔者安装时选择的自定义安装,并将安装目录设置为:C:\mysql。
    创建Bugs数据库和用户
    使用mysql 命令行创建,打开开始菜单-运行,输入cmd,打开命令行窗口进入C:\mysql\bin>
    需要输入的蓝字命令如下:
    C:\mysql\bin>mysql --user=root -p mysql
    Enter password: ********
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 15 to server version: 4.0.20a-debug
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    mysql> create database bugs;
    Query OK, 1 row affected (0.11 sec)
    mysql> grant all privileges on bugs.* to 'bugs'@'localhost' identified by 'shorelew';
    Query OK, 0 rows affected (0.03 sec)
    mysql> flush privileges;
    Query OK, 0 rows affected (0.00 sec)
    mysql> quit
    Bye
    C:\mysql\bin>
    C:\mysql\bin>mysql --user=root -p mysql
    Enter password: ********
    Welcome to the MySQL monitor. Commands end with ; or \g.
    Your MySQL connection id is 15 to server version: 4.1.11-nt
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    mysql> set password for 'bugs'@'localhost' = OLD_PASSWORD('shorelew');
    Query OK, 0 rows affected (0.00 sec)
    mysql> quit
    Bye
    C:\mysql\bin>
    ActiveState Perl
    下载ActiveState Perl 5.8.1 或更高的版本
    下载ActiveState Perl 5.8.1 或更高的版本: http://activestate.com/Products/Download/Download.plex?id=ActivePerl
    安装Perl
    将ActiveState Perl 安装到C:\Perl
    创建Temp目录
    创建 C:\Temp 目录确保系统在访问时进行更改。
    安装 Modules
    Bugzilla 需要安装一些perl模块,请确保你的计算机能连接到internet,所有需要模块都在http://landfill.bugzilla.org/ppm/
    进入DOS命令行按如下蓝字操作,在安装到Template-Toolkit时注意按提示填写完成的安装路径。
    C:\>ppm
    PPM - Programmer's Package Manager version 3.1.
    Copyright (c) 2001 ActiveState Corp. All Rights Reserved.
    ActiveState is a devision of Sophos.
    Entering interactive shell. Using Term::ReadLine::Stub as readline library.
    Type 'help' to get started.
    ppm> rep add Bugzilla http://landfill.bugzilla.org/ppm
    Repositories:
    [1] ActiveState PPM2 Repository
    [2] ActiveState Package Repository
    [3] Bugzilla
    ppm> install AppConfig
    ====================
    Install 'AppConfig' version 1.52 in ActivePerl 5.8.7.813.
    ====================
    Downloaded 50508 bytes.
    ...
    Successfully installed AppConfig version 1.52 in ActivePerl 5.8.7.813.
    ppm> install TimeDate
    ====================
    Install 'TimeDate' version 1.16 in ActivePerl 5.8.7.813.
    ====================
    Downloaded 19235 bytes.
    ...
    Successfully installed TimeDate version 1.16 in ActivePerl 5.8.7.813.
    ppm> install DBI
    ====================
    Install 'DBI' version 1.43 in ActivePerl 5.8.7.813.
    ====================
    Downloaded 508164 bytes.
    ...
    Successfully installed DBI version 1.43 in ActivePerl 5.8.7.813.
    ppm> install DBD-mysql
    ====================
    Install 'DBD-mysql' version 2.9002 in ActivePerl 5.8.7.813.
    ====================
    Downloaded 178803 bytes.
    ...
    Successfully installed DBD-mysql version 2.9002 in ActivePerl 5.8.7.813.
    ppm> install Template-Toolkit
    ====================
    Install 'Template-Toolkit' version 2.13 in ActivePerl 5.8.7.813.
    ====================
    Downloaded 530770 bytes.
    ...
    Successfully installed Template-Toolkit version 2.13 in ActivePerl 5.8.7.813.
    ppm> install MailTools
    ====================
    Install 'MailTools' version 1.67 in ActivePerl 5.8.7.813.
    ====================
    Downloaded 46881 bytes.
    ...
    Successfully installed MailTools version 1.67 in ActivePerl 5.8.7.813.
    ppm> install GD
    ====================
    Install 'GD' version 2.07 in ActivePerl 5.8.7.813.
    ====================
    Downloaded 363039 bytes.
    ...
    Successfully installed GD version 2.07 in ActivePerl 5.8.7.813.
    ppm> install Chart
    ====================
    Install 'Chart' version 2.3 in ActivePerl 5.8.7.813.
    ====================
    Downloaded 58641 bytes.
    ...
    Successfully installed Chart version 2.3 in ActivePerl 5.8.7.813.
    ppm> install GDGraph
    ====================
    Install 'GDTextUtil' version 0.86 in ActivePerl 5.8.7.813.
    ====================
    Downloaded 19178 bytes.
    ...
    Successfully installed GDTextUtil version 0.86 in ActivePerl 5.8.7.813.
    ====================
    Install 'GDGraph' version 1.43 in ActivePerl 5.8.7.813.
    ====================
    Downloaded 71764 bytes.
    ...
    Successfully installed GDGraph version 1.43 in ActivePerl 5.8.7.813.
    ppm> install PatchReader
    ====================
    Install 'PatchReader' version 0.9.4 in ActivePerl 5.8.7.813.
    ====================
    Downloaded 9558 bytes.
    ...
    Successfully installed PatchReader version 0.9.4 in ActivePerl 5.8.7.813.
    ppm> install Net::LDAP
    ====================
    Install 'Convert-ASN1' version 0.19 in ActivePerl 5.8.7.813.
    ====================
    Downloaded 26326 bytes.
    ...
    Successfully installed Convert-ASN1 version 0.19 in ActivePerl 5.8.7.813.
    ====================
    Install 'perl-ldap' version 0.33 in ActivePerl 5.8.7.813.
    ====================
    Downloaded 188548 bytes.
    ...
    Successfully installed perl-ldap version 0.33 in ActivePerl 5.8.7.813.
    ====================
    Install 'Net-LDAP-Express' version 0.11 in ActivePerl 5.8.7.813.
    ====================
    Downloaded 7693 bytes.
    ...
    Successfully installed Net-LDAP-Express version 0.11 in ActivePerl 5.8.7.813.
    ppm>
    Apache
    这里推荐使用Apache 作为运行Bugzilla 的web引擎。如果你想将Bugzilla 运行在IIS上,可以参考:http://www.bugzilla.org/docs/2.18/html/configuration.html#http-iis
    下载 Apache 2.x
    下载Apache HTTP Server version 2.x 或更高版本: http://httpd.apache.org/download.cgi
    安装
    默认安装即可,假设安装的路径是C:\Program Files\Apache Group 它将安装在C:\Program Files\Apache Group\Apache2。
    如果你已经运行了IIS,你在安装时配置apache运行在不同于80端口,否则你将不能访问。如果你的windows系统未安装IIS选择默认安装即可。
    允许Apache 可写
    创建如下目录:
    • C:\Bugzilla\data
    • C:\Program Files\Apache Group\Apache2\logs
    • C:\Temp
    配置httpd.conf文件
    在记事本中编辑 C:\Program Files\Apache Group\Apache2\conf\httpd.conf
    将httpd.conf和以下相应的内容比较,对照蓝色字体内容修改原有的内容。
    #
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    #
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
    #
    #Listen 12.34.56.78:80
    Listen 80
    #
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "C:/Bugzilla"
    #
    # Each directory to which Apache has access can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    #
    # First, we configure the "default" to be a very restrictive set of
    # features.
    #
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>
    #
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    #
    #
    # This should be changed to whatever you set DocumentRoot to.
    #
    <Directory "C:/Bugzilla">
    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    AddHandler cgi-script. .cgi
    #
    # This should be changed to whatever you set DocumentRoot to.
    #
    <Directory "C:/Bugzilla">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs-2.0/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks ExecCGI
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    #
    AllowOverride All
    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all
    #
    # Tell Apache to use Perl to execute .cgi
    #
    ScriptInterpreterSource Registry-Strict
    </Directory>
    You also should add index.cgi to the DirectoryIndex list.
    #
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    # The index.html.var file (a type-map) is used to deliver content-
    # negotiated documents. The MultiViews Option can be used for the
    # same purpose, but it is much slower.
    #
    DirectoryIndex index.html index.html.var index.cgi
    在注册表中创建
    HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command 编辑默认值为C:\Perl\bin\perl.exe -T
    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here. Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    #CustomLog logs/access.log common
    重新启动 Apache
    最后,在命令行中重新启动Apache。
    C:\>net stop apache2
    The Apache2 service is stopping..
    The Apache2 service was stopped successfully.
    C:\>net start apache2
    The Apache2 service is starting.
    The Apache2 service was started successfully.
    C:\>
    配置 Bugzilla
    checksetup.pl
    如下在命令行中操作,将自动创建localconfig文件。
    C:\>cd bugzilla
    C:\bugzilla>perl checksetup.pl
    Checking perl modules ...
    Checking for AppConfig (v1.52) ok: found v1.55
    Checking for CGI (v2.93) ok: found v3.10
    Checking for Data::Dumper (any) ok: found v2.121_04
    Checking for Date::Format (v2.21) ok: found v2.22
    Checking for DBI (v1.38) ok: found v1.48
    Checking for File::Spec (v0.84) ok: found v3.05
    Checking for File::Temp (any) ok: found v0.16
    Checking for Template (v2.08) ok: found v2.13
    Checking for Text::Wrap (v2001.0131) ok: found v2001.09293
    Checking for Mail::Mailer (v1.65) ok: found v1.67
    Checking for Storable (any) ok: found v2.13
    The following Perl modules are optional:
    Checking for GD (v1.20) ok: found v2.16
    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.43
    Checking for GD::Text::Align (any) ok: found v1.18
    Checking for PatchReader (v0.9.4) ok: found v0.9.5
    Most ActivePerl modules are available at Apache's ppm repository.
    A list of mirrors is available at
    http://www.apache.org/dyn/closer.cgi/perl/win32-bin/ppms/
    You can add the repository with the following command:
    ppm rep add apache http://www.apache.org/dist/perl/win32-bin/ppms/
    Checking user setup ...
    This version of Bugzilla contains some variables that you may want
    to change and adapt to your local settings. Please edit the file
    './localconfig' and rerun checksetup.pl
    The following variables are new to localconfig since you last ran
    checksetup.pl: index_html cvsbin interdiffbin diffpath create_htaccess
    webservergroup db_driver db_host db_pass db_sock db_check
    C:\bugzilla>
    编辑 localconfig
    打开C:\Bugzilla\localconfig 找到上一个步骤创建的localconfig文件用记事本编辑它,内容如下,请对照是否有蓝字所标出的内容,如没有显示如下内容请在localconfig文件中修改。
    #
    # How to access the SQL database:
    #
    $db_host = "localhost"; # where is the database?
    $db_port = 3306; # which port to use
    $db_name = "bugs"; # name of the MySQL database
    $db_user = "bugs"; # user to attach to the MySQL database
    #
    # Enter your database password here. It's normally advisable to specify
    # a password for your bugzilla database user.
    # If you use apostrophe (') or a backslash (\) in your password, you'll
    # need to escape it by preceding it with a \ character. (\') or (\\)
    #
    $db_pass = 'shorelew';
    checksetup.pl
    再次运行checksetup.pl 。这时将创建数据库相关表和初始化Bugzilla。操作如下。
    C:\bugzilla>perl checksetup.pl
    Checking perl modules ...
    Checking for AppConfig (v1.52) ok: found v1.55
    Checking for CGI (v2.93) ok: found v3.10
    Checking for Data::Dumper (any) ok: found v2.121_04
    Checking for Date::Format (v2.21) ok: found v2.22
    Checking for DBI (v1.38) ok: found v1.48
    Checking for File::Spec (v0.84) ok: found v3.05
    Checking for File::Temp (any) ok: found v0.16
    Checking for Template (v2.08) ok: found v2.13
    Checking for Text::Wrap (v2001.0131) ok: found v2001.09293
    Checking for Mail::Mailer (v1.65) ok: found v1.67
    Checking for Storable (any) ok: found v2.13
    The following Perl modules are optional:
    Checking for GD (v1.20) ok: found v2.16
    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.43
    Checking for GD::Text::Align (any) ok: found v1.18
    Checking for PatchReader (v0.9.4) ok: found v0.9.5
    Most ActivePerl modules are available at Apache's ppm repository.
    A list of mirrors is available at
    http://www.apache.org/dyn/closer.cgi/perl/win32-bin/ppms/
    You can add the repository with the following command:
    ppm rep add apache http://www.apache.org/dist/perl/win32-bin/ppms/
    Checking user setup ...
    Creating data directory (./data) ...
    Creating graphs directory...
    Creating .htaccess...
    Creating Bugzilla/.htaccess...
    Creating ./data/.htaccess...
    Creating ./template/.htaccess...
    Creating ./data/webdot/.htaccess...
    Precompiling templates ...
    Checking for MySQL Server (v3.23.41) ok: found v4.0.20a-debug
    Creating table user_group_map ...
    Creating table series_data ...
    Creating table longdescs ...
    Creating table dependencies ...
    Creating table components ...
    Creating table keywords ...
    Creating table cc ...
    Creating table duplicates ...
    Creating table groups ...
    Creating table flagtypes ...
    Creating table profiles ...
    Creating table products ...
    Creating table bugs_activity ...
    Creating table series_categories ...
    Creating table keyworddefs ...
    Creating table fielddefs ...
    Creating table group_control_map ...
    Creating table profiles_activity ...
    Creating table group_group_map ...
    Creating table user_series_map ...
    Creating table bugs ...
    Creating table series ...
    Creating table versions ...
    Creating table flagexclusions ...
    Creating table logincookies ...
    Creating table watch ...
    Creating table bug_group_map ...
    Creating table votes ...
    Creating table attachments ...
    Creating table flags ...
    Creating table milestones ...
    Creating table tokens ...
    Creating table flaginclusions ...
    Creating table quips ...
    Creating table namedqueries ...
    Creating initial dummy product 'TestProduct' ...
    Populating duplicates table...
    Creating duplicates directory...
    Migrating old chart data into database ...
    Adding group tweakparams ...
    Adding group editusers ...
    Adding group creategroups ...
    Adding group editcomponents ...
    Adding group editkeywords ...
    Adding group admin ...
    Adding group editbugs ...
    Adding group canconfirm ...
    Looks like we don't have an administrator set up yet. Either this is your
    first time using Bugzilla, or your administrator's privileges might have
    accidently been deleted.
    Enter the e-mail address of the administrator: shorelew@example.com
    You entered 'byron@example.com'. Is this correct? [Y/n] y
    Enter the real name of the administrator: shorelew
    Enter a password for the administrator account: shore
    Please retype the password to verify: shore
    'shorelew@example.com' is now set up as an administrator account.
    C:\bugzilla>
    参数配置
    现在就可以通过http://localhost/登陆Bugzilla,至此你就能使用等待以久的Bugzilla缺陷跟踪系统了,经过漫长的安装后,如果能和你一起分享安装成功的喜悦,可以写信给我噢!偶的MSN是:shorelew@hotmail.com
    打开登陆页面后,使用上面你输入的邮箱和密码就可以登陆了,在登陆页面右下角点选Parameters设置。
    Bugzilla其他信息
    Bugzilla汉化包
    http://bugzilla.org/download.html里能找到相应的bugzilla汉化包,本文的例子包使用的是2.20版本的。在包内有汉化的相关内容,很容易就能汉化。
    本文内容相关
    为了能更好的安装和调试Bugzilla,推荐下列网站,以供参考。
    http://httpd.apache.org/docs-2.0/mod/core.html#scriptinterpretersource http://support.microsoft.com/default.aspx?scid=kb;en-us;231998 http://support.microsoft.com/default.aspx?scid=kb;en-us;245225
    如果还有一些疑问,关于windows下在安装Bugzilla更详尽的内容请参考:http://www.bugzilla.org/docs/win32install.html
  • windows 下bugzilla的安装过程

    2009-09-23 14:36:03

    一.安装mysql

    双击安装文件

     

    进入MySql安装界面,点击next

     

    选择custom,点击next,(注意选择custom)

     

    更改安装目录为C:\MySQL,点击next

     

    目录没有问题,点击install进行MySql的安装,安装很快

     

    选skipsing-up跳过注册帐号,点击next,完成安装

     

    点击finish,完成MySql的安装,选中configure the mysql server now马上对MySQL进行配置

     

     

    点击next

     

     

    点next

     

     

    选择standard configuration 标准配置,点击next

     

    选中,点击next

     

    设置root密码,点击next

     

    执行配置,点击execute

     

    执行成功 点击finish

    接下来是对Mysql进行一些配置,需要建立BUG库,及使用该库的用户

     

    开始——运行cmd

     

    cd c:\mysql\bin

    mysql -u root –p

    输入刚安装Mysql时设置的密码

    我们用root帐号成功登陆mysql

     

    之后需要创建数据库,就是bugzilla所需要使用的数据库

    输入创建语句

    create database Bugs;

    之后为数据库创建用户名Bugs,密码是bugs,则执行如下命令:

    grant all privileges on bugs.* to 'bugs'@'localhost' identified by 'bugs';

    flush privileges;

    quit;

    set password for 'bugs'@'localhost' = OLD_PASSWORD('bugs');

    二. 安装ActiveState Perl 5.8.8及perl模块

    1.ActiveState Perl 5.8.8的安装只要默认就可以

    2.点击d:\perl\bin>ppm-shell.bat

     Ppm>rep add Bugzilla http://landfill.bugzilla.org/ppm 

    ActivePerl PPM的安装包地址有:

    针对版本5.8的有

    • http://www.bribes.org/perl/ppm, for the www.bribes.org Perl 5.8 repository
    • http://theoryx5.uwinnipeg.ca/cgi-bin/ppmserver?urn:/PPMServer58 (ActivePerl Build < 819) / http://theoryx5.uwinnipeg.ca/ppms/ (ActivePerl Build >= 819), for the uwinnipeg Perl 5.8 repository
    • http://trouchelle.com/ppm/, for the trouchelle Perl 5.8 repository
    • http://ppm.tcool.org/archives/, for the ppm.tcool.org Perl 5.8 repository

    针对版本5.10的有

    • http://www.bribes.org/perl/ppm, for the www.bribes.org Perl 5.10 repository
    • http://trouchelle.com/ppm10/, for the trouchelle Perl 5.10 repository
    • http://cpan.uwinnipeg.ca/PPMPackages/10xx/, for the uwinnipeg Perl 5.10 repository

    这几个地址有比较多的PPM安装包,也就是Perl模块的发布版本,直接可以用ActivePerl PPM 包管理器安装的

    到的D;/perl/bin的目录下使用perl-shell.bat

    执行 perl add bugzilla http://www.bribes.org/perl/ppm命令

    cmd到D:/bugzilla执行:perl checksetup.pl

    把没有安装的perl模块进行安装,安装完成的话,会出现自动创建表的信息。

    三 安装apache2.2.8-win32安装版apache2.2.8-win32

     

    默认安装即可,假设安装的路径是C:\Program Files\Apache Group 它将安装在C:\Program Files\Apache Group\Apache2。
    如果你已经运行了IIS,你在安装时配置apache运行在不同于80端口,否则你将不能访问。如果你的windows系统未安装IIS选择默认安装即可。
    允许Apache 可写
    创建如下目录:
    • C:\Bugzilla\data
    • C:\Program Files\Apache Group\Apache2\logs
    • C:\Temp
    配置httpd.conf文件
    在记事本中编辑 C:\Program Files\Apache Group\Apache2\conf\httpd.conf

    修改里面的黄色部分

    #
    # Listen: Allows you to bind Apache to specific IP addresses and/or
    # ports, instead of the default. See also the <VirtualHost>
    # directive.
    #
    # Change this to Listen on specific IP addresses as shown below to
    # prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
    #
    #Listen 12.34.56.78:80
    Listen 80

    #
    # DocumentRoot: The directory out of which you will serve your
    # documents. By default, all requests are taken from this directory, but
    # symbolic links and aliases may be used to point to other locations.
    #
    DocumentRoot "d:/Bugzilla"
    #
    # Each directory to which Apache has access can be configured with respect
    # to which services and features are allowed and/or disabled in that
    # directory (and its subdirectories).
    #
    # First, we configure the "default" to be a very restrictive set of
    # features.
    #
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>

    #
    # Note that from this point forward you must specifically allow
    # particular features to be enabled - so if something's not working as
    # you might expect, make sure that you have specifically enabled it
    # below.
    #
    #
    # This should be changed to whatever you set DocumentRoot to.
    #
    <Directory "d:/Bugzilla">

    #
    # AddHandler allows you to map certain file extensions to "handlers":
    # actions unrelated to filetype. These can be either built into the server
    # or added with the Action directive (see below)
    #
    # To use CGI scripts outside of ScriptAliased directories:
    # (You will also need to add "ExecCGI" to the "Options" directive.)
    #
    AddHandler cgi-script. .cgi

    #
    # This should be changed to whatever you set DocumentRoot to.
    #
    <Directory "C:/Bugzilla">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs-2.0/mod/core.html#options
    # for more information.
    #

    Options Indexes FollowSymLinks ExecCGI
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    #
    AllowOverride All
    #
    # Controls who can get stuff from this server.
    #
    Order allow,deny
    Allow from all
    #
    # Tell Apache to use Perl to execute .cgi
    #
    ScriptInterpreterSource Registry-Strict
    </Directory>
    You also should add index.cgi to the DirectoryIndex list.
    #
    # DirectoryIndex: sets the file that Apache will serve if a directory
    # is requested.
    #
    # The index.html.var file (a type-map) is used to deliver content-
    # negotiated documents. The MultiViews Option can be used for the
    # same purpose, but it is much slower.
    #
    DirectoryIndex index.html index.html.var index.cgi

    在注册表中创建
    HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command 编辑默认值为C:\Perl\bin\perl.exe -T

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here. Contrariwise, if you *do*

    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    #CustomLog logs/access.log common

    重新启动 Apache
    最后,在命令行中重新启动Apache。
    C:\>net stop apache2
    The Apache2 service is stopping..
    The Apache2 service was stopped successfully.
    C:\>net start apache2
    The Apache2 service is starting.
    The Apache2 service was started successfully.
    C:\>

            

  • Bugzilla简明使用手则

    2009-09-17 13:57:24

    1      简介:

    BugzillaMozilla公司向我们提供的一个开源的免费缺陷跟踪工具。作为一个产品缺陷的记录及跟踪工具,它能够为你建立一个完善的Bug跟踪体系,包括报告Bug、查询Bug记录并产生报表、处理解决、管理员系统初始化和设置四部分。并具有如下特点:

    l       基于Web方式,安装简单、运行方便快捷、管理安全。

    l       有利于缺陷的清楚传达。本系统使用数据库进行管理,提供全面详尽的报告输入项,产生标准化的Bug报告。提供大量的分析选项和强大的查询匹配能力,能根据各种条件组合进行Bug统计。当错误在它的生命周期中变化时,开发人员、测试人员、及管理人员将及时获得动态的变化信息,允许你获取历史纪录,并在检查错误的状态时参考这一记录。

    l       系统灵活,强大的可配置能力。Bugzilla工具可以对软件产品设定不同的模块,并针对不同的模块设定开发人员和测试人员;这样可以实现提交报告时自动发给指定的责任人;并可设定不同的小组。设定不同的用户对Bug记录的操作权限不同,可进行有效的控制管理。允许设定不同的严重程度和优先级,可以在错误的生命期中管理错误,从最初的报告到最后的解决,都有详细的记录,确保了错误不会被忽略,同时,可以让开发人员将注意力集中在优先级和严重程度高的错误上。

    l       自动发送Email通知相关人员。根据设定的不同责任人,自动发送最新的动态信息,有效的帮助测试人员和开发人员进行沟通。

    2      Bugzilla操作流程:

     

    2.1   用户登录及设置流程:

    l       打开浏览器,输入Bugzilla服务器地址:http://ts.fulong.com.cn/bugzilla/

    l       进入主页面后,点击【新建帐号】,进入注册页面。

    l       在注册页面中输入E-Mail地址和用户代号,然后,点击【Create Account】,随后,你将收到一封包含初始密码的E-Mail

    l       在收到E-Mail之后,点击【登录】,在帐号栏输入注册时使用的E-Mail地址,在密码栏输入邮件里通知的初始密码,然后,点击【Login】。

    l       如忘记密码,在登陆页面中输入注册用户名,点击【Submit Request,根据收到的邮件进行重新设置密码。

    l       如果成功登录后,点击【Edit属性】->【帐号设置】,进行密码修改。

    l       点击【Edit属性】->【邮件设置】,进行邮件通知设置。

    l       点击【Edit属性】->【权限】,进行权限查询。

    2.2   Bug的处理流程概述:

    l       测试人员或开发人员发现bug后,判断属于哪个模块的问题,填写bug报告后,通过Email通知项目组长或直接通知开发者。

    l       项目组长根据具体情况,重新reassigned分配给bug所属的开发者。

    l       开发者收到E-Mail信息后,判断是否为自己的修改范围。

    A.      若不是,重新reassigned分配给项目组长或应该分配的开发者;

    B.      若是,进行处理,resolved并给出解决方法。(可创建补丁附件及补充说明);

    l       测试人员查询开发者已修改的bug,进行重新测试。(可创建test case附件)

    A.      经验证无误后,修改状态为VERIFIED。待整个产品发布后,修改为CLOSED

    B.      还有问题,REOPENED,状态重新变为“New",并发邮件通知。

    l       如果这个BUG一周内一直没被处理过。Bugzilla就会一直用E-Mail骚扰它的属主,直到采取行动为止。

    2.3   一个Bug的生存周期图示:

     

    2.4   测试人员报告Bug的流程:

    l       请先进行查询,确认要提交的bug报告不会在原有纪录中存在,若已经存在,不要提交,若有什么建议,可在原有纪录中增加注释,告知其属主,让bug的属主看到这个后自己去修改。

    l       Bug不存在,创建一份有效的bug报告后进行提交。

    l       具体操作:点击【新建】,选择产品后,填写一个Bug报告的表格。填表注意:【指派给】为空则默认为设定的owner, 也可手工制定。【抄送】可为多人,需用逗号隔开。【描述】中要详细说明下列情况:

    A.      发现问题的步骤;

    B.      执行上述步骤后出现的情况;

    C.      期望应出现的正确结果。

    l       【平台】、【操作系统】、【优先级】、【严重级】,可以根据具体情况自行选择。

    l       【依赖】是指与这个新Bug有关联的Bug号码。

    l       Blocks】不太清楚J

    l       填写完毕之后,点击【Commit】提交,发送邮件通知给相关人员。

    2.5   Bug的不同处理状态解释:

    l       Bug的属主(owner)确认并接受这个Bug,然后给出解决方法,并填写【附加说明】,还可以【建立新的附件】(如:更改提交单)等等。

    l       开发人员可以调整的Bug状态如下:

    A.      FIXED                   =>    描述的问题已经修改;

    B.      INVALID               =>    描述的问题不是一个bug (输入错误后,通过此项来取消)

    C.      WONTFIX            =>    描述的问题将永远不会被修复;

    D.      LATER                  =>    描述的问题将不会在产品的这个版本中解决;

    E.      DUPLICATE        =>    描述的问题是一个存在的bug的复件;

    F.       WORKSFORME   =>    所有要重新产生这个bug的企图是无效的。如果有更多的信息出现,请重新分配这个bug,而现在只把它归档。

    l       测试人员收到Bug的修改通知之后,还可以做如下的调整:

    A.      Leave as RESOLVED FIXED       =>   保持FIXED状态不变;

    B.      Reopen bug                                     =>    这个bug还有问题,重新打开;

    C.      Mark bug as VERIFIED         =>   这个bug确实被正确修改了;

    D.      Mark bug as CLOSED                   =>   产品已经发布,将这个bug关闭。

    2.6   关于权限的说明:

    l       组内成员对bug具有查询的权利,但不能进行修改。

    l       Bugowner reporter 具有修改的权利。

    l       具有特殊权限的用户具有修改的权利。

     

    另:有关Bugzilla的安装请访问下面的连接:

    http://www.csdn.net/Develop/read_article.asp?id=24088

    http://www.csdn.net/Develop/read_article.asp?id=24091

    http://www.csdn.net/Develop/read_article.asp?id=24092

Open Toolbar