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

windows 下bugzilla的安装过程

上一篇 / 下一篇  2009-09-23 14:36:03 / 个人分类:bugzilla

一.安装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 Bugzillahttp://landfill.bugzilla.org/ppm 

ActivePerl PPM的安装包地址有:

针对版本5.8的有

  • http://www.bribes.org/perl/ppm, for thewww.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 theuwinnipeg Perl 5.8 repository
  • http://trouchelle.com/ppm/, for thetrouchelle Perl 5.8 repository
  • http://ppm.tcool.org/archives/, for theppm.tcool.org Perl 5.8 repository

针对版本5.10的有

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

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

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

执行 perl add bugzillahttp://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:\>

        


TAG:

FISHY'S TRIBE 引用 删除 fishy   /   2009-09-24 10:57:28
链接的图片地址有防盗链。。所以我们看不到。。
 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

Open Toolbar