分类: WINDOWS
2007-08-15 10:48:51
Bugzilla3.0搭建文档
环境WINDOWS 2003 SP1+IIS
软件:1.ActivePerl-
2. mysql-essential-
3. bugzilla-3.0.tar
安装步骤:
把activeper安装到e:\perl
把bugzilla-3.0.tar解压到d盘
Mysql安装到C盘
说明:各个路径根据自己需要,随便改
一.安装数据库
1. 登陆----创建BUGS用户,并且授权
grant all privileges on bugs.* to bugs@"localhost" identified by '123456';
2. 创建bugs数据库
Create database bugs;
二.解压bugzilla-3.0.tar解压到d盘
D:\bugzilla-3.0
三.安装ActivePerl-
四.在dos下进入D:\bugzilla-3.0
1.执行命令D:\bugzilla-3.0>perl checksetup.pl
这个命令作用是检查一些必要的模块是否安装,结果会显示在屏幕上
按这屏幕提示安装就好了,但是还是有几个不能安装,不要着急,跳过去就好了,
为了安装全了,请多次执行这个命令,当你装好了,在执行这个命令时,它会告诉你在D:\bugzilla-3.0这个目录里生成localconfig文件,用记事本打开他修改
$db_host = 'localhost';
$db_name = 'bugs';
$db_user = 'bugs';
$db_pass = '123456';
$db_port = 3306;
当然从这里看出数据库,用户都可以自己设置成其他的,只要写在这里旧好了;
提示:安装时候从这个命令开始依次执行
ppm repo add theory58S
在屏幕找到它的位置然后依次执行他后面的命令,模块安装就没问题了
五.在执行D:\bugzilla-3.0>perl checksetup.pl
这时候会提示你设置管理员邮箱,帐号,密码等
提示:帐号一定要是邮件格式,我就是没注意这一点,害的我浪费一天时间。邮件服务器可以随便添,后面可以自己设置
六.配iis
四、配置IIS
1、打开控制面板->管理工具->Internet Information Services, 再Default Web Site右键选择Properties-> Home Dictory-> Configuration,在App Mappings中可以看到扩展名为.pl和.plx的文件已经添加到了这里面,双击.pl这一行,打开其属性对话框,在“动作”中选“全部动作”,同样修改.plx这一行;然后再添加一行,参数如下:
可执行文件: c:\Perl\bin\perl.exe -T "%s" %s
扩展名: .cgi
动作: 全部动作
注意:这个“-T”一定要加,否则访问时会报错:Too late for "-T" option at D:\bugzilla-2.18rc3\index.cgi line 1.
2、在Default Web Site右键选择“新建-》虚拟目录”,你可以给这个虚假目录起一个名字,例如“bugzill”,指向e:\Bugzilla目录,在默认页中加入“index.cgi”。
3、打开浏览器,在地址栏输入:,看到bugzilla的页面就表示安装成功,现在可以正常使用了。
现在用管理员登陆设置吧
我就不汉化了,这个是目前最新的版本,据说汉化包还没出来
在提示:一定注意版本见的搭配问题,否则问题多多;
部分屏幕提示
D:\bugzilla-3.0>perl checksetup.pl
* This is Bugzilla 3.0 on perl
* Running on WinXP/.Net Build 2600 (Service Pack 2)
Checking perl modules...
Checking for CGI (v2.93) ok: found v3.29
Checking for TimeDate (v2.21) ok: found v2.22
Checking for DBI (v1.41) ok: found v1.58
Checking for PathTools (v0.84) ok: found v3.25
Checking for Template-Toolkit (v2.12) ok: found v2.19
Checking for Email-Send (v2.16) ok: found v2.185
Checking for Email-MIME-Modifier (any) ok: found v1.442
Checking available perl DBD modules...
Checking for DBD-Pg (v1.45) not found
Checking for DBD-mysql (v2.9003) ok: found v4.005
The following Perl modules are optional:
Checking for GD (v1.20) ok: found v2.35
Checking for Template-GD (any) ok: found v1.56
Checking for Chart (v1.0) ok: found v2.3
Checking for GDGraph (any) ok: found v1.4308
Checking for GDTextUtil (any) ok: found v0.86
Checking for XML-Twig (any) ok: found v3.26
Checking for MIME-tools (v5.406) ok: found v5.420
Checking for libwww-perl (any) ok: found v2.036
Checking for PatchReader (v
Checking for PerlMagick (any) not found
Checking for perl-ldap (any) ok: found v0.34
Checking for SOAP-Lite (any) ok: found v0.55
Checking for HTML-Parser (v3.40) ok: found v3.56
Checking for HTML-Scrubber (any) ok: found v0.08
Checking for Email-MIME-Attachment-Stripper (any) ok: foun
Checking for Email-Reply (any) ok: found v1.202
Checking for mod_perl (v1.999022) not found
Checking for CGI (v3.11) ok: found v3.29
Checking for Apache-DBI (v0.96) ok: found v1.06
* NOTE: You must run any commands listed below as Administrato
**************************************************************
* Note For Windows Users
**************************************************************
* In order to install the modules listed below, you first have
* the following command as an Administrator:
*
* ppm repo add theory58S
*
* Then you have to do (also as an Administrator):
*
* ppm repo up theory58S
*
* Do that last command over and over until you see "theory58S"
* top of the displayed list.
**************************************************************
**************************************************************
* OPTIONAL MODULES
**************************************************************
* Certain Perl modules are not required by Bugzilla, but by
* installing the latest version you gain access to additional
* features.
*
* The optional modules you do not have installed are listed be
* with the name of the feature they enable. If you want to ins
* one of these modules, just run the appropriate command in th
* "COMMANDS TO INSTALL" section.
**************************************************************
**************************************************************
* MODULE NAME * ENABLES FEATURE(S)
**************************************************************
* PerlMagick * Optionally Convert BMP Attachments to PNGs
* mod_perl * mod_perl