BUGZILLA
第一步:Bugzilla
下载并安装Bugzilla
下载Bugzilla:http://bugzilla.org/download.html
本文是以Bugzilla2.20版本为例子进行安装,同时可以在网站上找到相应的汉化包,感谢汉化作者为我们提供的方便与支持。
下载解压缩到C:\Bugzilla,保证Bugzilla文件放在C:\Bugzilla文件夹下,避免解压时生成多余的文件夹。
下载MySQL 4.1.x
下载MySQL "Windows Essentials"版本:http://dev.mysql.com/downloads/mysql/4.1.html
不推荐使用MySQL 5.x
安装
可以选择典型(Typial)安装MySQL,笔者安装时选择的自定义安装,并将安装目录设置为:C:\mysql。
使用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 toserverversion:
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>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
下载ActiveStatePerl
安装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 interactiveshell. 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> installAppConfig
====================
Install 'AppConfig' version
====================
Downloaded 50508 bytes.
...
Successfully installed AppConfig version
ppm> installTimeDate
====================
Install 'TimeDate' version
====================
Downloaded 19235 bytes.
...
Successfully installed TimeDate version
ppm> installDBI
====================
Install 'DBI' version
====================
Downloaded 508164 bytes.
...
Successfully installed DBI version
ppm> installDBD-mysql
====================
Install 'DBD-mysql' version
====================
Downloaded 178803 bytes.
...
Successfully installed DBD-mysql version
ppm> installTemplate-Toolkit
====================
Install 'Template-Toolkit' version
====================
Downloaded 530770 bytes.
...
Successfully installed Template-Toolkit version
ppm> installMailTools
====================
Install 'MailTools' version
====================
Downloaded 46881 bytes.
...
Successfully installed MailTools version
ppm> installGD
====================
Install 'GD' version
====================
Downloaded 363039 bytes.
...
Successfully installed GD version
ppm> installChart
====================
Install 'Chart' version
====================
Downloaded 58641 bytes.
...
Successfully installed Chart version
ppm> installGDGraph
====================
Install 'GDTextUtil' version
====================
Downloaded 19178 bytes.
...
Successfully installed GDTextUtil version
====================
Install 'GDGraph' version
====================
Downloaded 71764 bytes.
...
Successfully installed GDGraph version
ppm> installPatchReader
====================
Install 'PatchReader' version
====================
Downloaded 9558 bytes.
...
Successfully installed PatchReader version
ppm> install Net::LDAP
====================
Install 'Convert-ASN1' version
====================
Downloaded 26326 bytes.
...
Successfully installed Convert-ASN1 version
====================
Install 'perl-ldap' version
====================
Downloaded 188548 bytes.
...
Successfully installed perl-ldap version
====================
Install 'Net-LDAP-Express' version
====================
Downloaded 7693 bytes.
...
Successfully installed Net-LDAP-Express version
ppm>
第四步:配置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 (v
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(5kb)文件用记事本编辑它,内容如下,请对照是否有蓝字所标出的内容,如没有显示如下内容请在localconfig文件中修改。
#
# How to access theSQLdatabase:
#
$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
#
#
TAG:
标题搜索
日历
|
|||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
1 | 2 | 3 | 4 | ||||||
5 | 6 | 7 | 8 | 9 | 10 | 11 | |||
12 | 13 | 14 | 15 | 16 | 17 | 18 | |||
19 | 20 | 21 | 22 | 23 | 24 | 25 | |||
26 | 27 | 28 | 29 | 30 | 31 |
我的存档
数据统计
- 访问量: 42801
- 日志数: 84
- 建立时间: 2010-11-25
- 更新时间: 2013-07-30