搜索 »
高级搜索 免费注册 用户帮助 繁體中文

  全部文章 | 软件测试技术类 | 网络类 | 系统类 | 数据库类 | 编程类 | 情感生活 | 书籍类 | 兴趣爱好

作者: linuxsky1001   发表日期: 2007-03-15 10:02   复制链接




UML软件工程组织

win2000下安装配置bugzilla心得 詰i(枢  
文章出处:51testing博客  作者:娟子 

决定将上星期安装BUGZILLA的经验告诉大家,希望能对那些正在为装BUGZILLA的朋友们有所帮助

网上有很多关于bugzilla 在windows环境下安装的资料,但是也有部分不适合自已,走到某一步总会出现一些错误提示,我整整花了一周的时间才配置好,现将我的安装步骤写下来,希望对大家有些启发。

我的配置清单如下:Mysql 5.0 + ActivePerl 5.8.8 + IIS + Bugzilla-2.20.2

具体安装步骤如下:

一、装mysql 5.0,安装的时候很简单,默认方式下安装,一直按下一步就行了记住安装路径和设置的password,如果有问题可以到MySQL官方网站(http://dev.mysql.com/doc/)上查看在线手册。

接下来要配置MySQL。有些文章里写道需要手工修改root用户的密码,其实这一步在MySQL安装程序里就已经完成了,因此不用再去设置。我们要新建一个Bug数据库和一个Bugzilla访问这个数据库的用户。操作如下:

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 ;

Query OK, 1 row affected (0.11 sec)

mysql> grant all privileges on .* to ''@'' identified by '';

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 ''@'' = OLD_PASSWORD ('');

Query OK, 0 rows affected (0.00 sec)

mysql> quit

Bye

C:\mysql\bin>

OK!到此MYSQL已经安装配置完毕。这此为止才安装了四分之一。 F]N鼂睁毇  
箼孷h  
 一、 装ActivePerl

1、 安装Perl也很容易,按照安装程序提示一步一步装就可以了。稍微复杂一点的是安装它的模块。不过有了Bugzilla汉化项目提供的批处理程序,这个步骤也非常简单了。只要双击Setup.bat文件就OK了

2、 如果没有批处理程序并且安装的机器不能上网,那只能自已手工安装了,首先到网站 http://landfill.bugzilla.org/ppm/ 下载Modules到本机,然后在DOS环境下运行以下命令:

c:\ppm ,会出现一个perl pack manager,在这里设置存入modules的路径。 繱棷!n  
榆+< 魂碛  
  蹼.债攞搃  
祗W浭C&ia  
 设置完以后再输入:c:\ppm install <包名> 另:在输入install命令之前需要到记着,别偷懒,一个一个装 完。

3、 如果将要安装bugzilla的机器能上网,不用下载那些Modules按以下操作将会更省事(蓝色字体需要手工输入的),这种方法我没试,但应该能成功。

C:\>ppm -潔者^2  
鋤g Bz圠  
PPM - Programmer's Package Manager version 3.1 H蓬彥茖  
.Copyright (c) 2001 ActiveState Corp. jo反廝  
All Rights Reserved.ActiveState is a devision of Sophos. 篓+_gx1E  
Entering interactive shell. $辯惌渐笣  
Using Term::ReadLine::Stub as readline library. /7%⑨  
Type 'help' to get started. 吠寜P=9  
ppm> rep add Bugzilla http://landfill.bugzilla.org/ppmRepositories:[1] ActiveState PPM2 Repository[2] ActiveState Package Repository[3] Bugzillappm> install AppConfig 蠕>0`韩  
==================== u峀胱}危  
Install 'AppConfig' version 1.52 in ActivePerl 5.8.7.813. 肘 嚈A*sf  
==================== <勀&垓戣  
Downloaded 50508 bytes....Successfully installed AppConfig version 1.52 in ActivePerl 5.8.7.813.ppm> install TimeDate +fx%  
==================== l 4钇変紓  
Install 'TimeDate' version 1.16 in ActivePerl 5.8.7.813. 砟Cn;脍糒  
==================== o荨岘浳R*I  
Downloaded 19235 bytes....Successfully installed TimeDate version 1.16 in ActivePerl 5.8.7.813.ppm> install DBI 鳦Z〖  
==================== 骼鷦+ =s`  
Install 'DBI' version 1.43 in ActivePerl 5.8.7.813. lO<[m鱓"  
==================== 4u7V髊M炉  
Downloaded 508164 bytes....Successfully installed DBI version 1.43 in ActivePerl 5.8.7.813.ppm> install DBD-mysql -O氮  
==================== ]k #!R6  
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 倾%柄九e  
==================== 怑+t掰  
Install 'Template-Toolkit' version 2.13 in ActivePerl 5.8.7.813 . 赩鎨琕y)  
==================== 4阫曙:榥  
Downloaded 530770 bytes....Successfully installed Template-Toolkit version 2.13 in ActivePerl 5.8.7.813.ppm> install MailTools 懺wL18  
==================== _v5bj  
Install 'MailTools' version 1.67 in ActivePerl 5.8.7.813. 禋G轌E#  
==================== " 7S芉  
Downloaded 46881 bytes....Successfully installed MailTools version 1.67 in ActivePerl 5.8.7.813.ppm> install GD A!啭nlC  
==================== 罍X9+CU  
Install 'GD' version 2.07 in ActivePerl 5.8.7.813. k湴釨≠  
==================== 盘[3轐  
Downloaded 363039 bytes....Successfully installed GD version 2.07 in ActivePerl 5.8.7.813.ppm> install Chart 蟨勃馡v  
==================== U"5闃-Z  
Install 'Chart' version 2.3 in ActivePerl 5.8.7.813. 7 *蔺旒8  
==================== Z}+鳆 尢  
Downloaded 58641 bytes....Successfully installed Chart version 2.3 in ActivePerl 5.8.7.813.ppm> install GDGraph F敮{:m b  
==================== )鳭M赑%銼  
Install 'GDTextUtil' version 0.86 in ActivePerl 5.8.7.813. $e^'\委繌  
==================== I5"r棔忒  
Downloaded 19178 bytes....Successfully installed GDTextUtil version 0.86 in ActivePerl 5.8.7.813. 霮x輎ZSE褹  
==================== 梩R褥h晙m  
Install 'GDGraph' version 1.43 in ActivePerl 5.8.7.813. `qT<建  
==================== f鑶祛熝{E  
Downloaded 71764 bytes....Successfully installed GDGraph version 1.43 in ActivePerl 5.8.7.813.ppm> install PatchReader [仳)爱,  
==================== .鞉A0  
Install 'PatchReader' version 0.9.4 in ActivePerl 5.8.7.813. 櫳塱V觬(S  
==================== z殭虄霣$t  
Downloaded 9558 bytes....Successfully installed PatchReader version 0.9.4 in ActivePerl 5.8.7.813.ppm> install Net::LDAP #^I!跃to禫  
==================== <骻齦g  
Install 'Convert-ASN1' version 0.19 in ActivePerl 5.8.7.813. 堑剣旍  
==================== :麹l拎+>a  
Downloaded 26326 bytes....Successfully installed Convert-ASN1 version 0.19 in ActivePerl 5.8.7.813. 懺砟┰牦b  
==================== >櫩埖敾  
Install 'perl-ldap' version 0.33 in ActivePerl 5.8.7.813. 丅 ^M  
==================== 鵗皓僂C訠  
Downloaded 188548 bytes....Successfully installed perl-ldap version 0.33 in ActivePerl 5.8.7.813. 10蚌  
==================== 0竤荳&:  
Install 'Net-LDAP-Express' version 0.11 in ActivePerl 5.8.7.813. N搨鏫?陵  
==================== ;-$图娓-  
Downloaded 7693 bytes....Successfully installed Net-LDAP-Express version 0.11 in ActivePerl 5.8.7.813.ppm>

三、配置IIS

1、打开IIS管理界面。新建一个虚拟路径,指向Bugzilla所在文件夹

epii  
扴餒倓cR  
 2、然后按应用程序设置按钮。增加一个映射,将.cgi文件映射到perl.exe。

点ADD

埶9㏎魧  
N`V訏範  
 这里特别注意,有些文档里写成:perl.exe “%s” %s(全角下的双引号),这样不正确,在运行时出错(又花去一个小时)。正确的配置应该如下:

\perl.exe -x -wT "%s" %s例如:c:\perl\bin\perl.exe -xc:\bugzilla -wT "%s" %s

3、最后,将index.cgi加入到默认文档列表中。最好移到最前面,这样可以加快查询速度。如果不希望/不能把index.cgi加入到默认文档列表中,也可以在安装Bugzilla的时候,将localconfig文件中$index_html的值改为1。这样运行checksetup.pl时,就会生成一个index.html,自动重定向到index.cgi。

钙C d::  
u徥7猙c  
 4、OK! 到此IIS已配置完成,接下来才开始安装bugzilla了。

四、安装bugzilla

其实这一步不叫安装的,将你下的bugzilla解压缩到一个文件夹里,我放到了c:\根目录下。进入到DOS环境,运行命令:perl checksetup.pl 它会检查你有没有将所有的Modules安装成功,安装不成功的Modules会提示no found.。出现以下界面证明已安装成功:

C:\>cd bugzilla 閛藯3fj0  
C:\bugzilla>perl checksetup.pl $n揦j2yA  
Checking perl modules ... ~趸剈]卫h  
Checking for AppConfig (v1.52) ok: found v1.55 yb鷣憰  
Checking for CGI (v2.93) ok: found v3.10 逅)花t  
Checking for Data::Dumper (any) ok: found v2.121_04 鐙"F(~  
Checking for Date::Format (v2.21) ok: found v2.22 L< j  
Checking for DBI (v1.38) ok: found v1.48 ;f蝿V/(  
Checking for File::Spec (v0.84) ok: found v3.05 '錌Z辘@漎  
Checking for File::Temp (any) ok: found v0.16 vk3あq鵊  
Checking for Template (v2.08) ok: found v2.13 劢O珠   
Checking for Text::Wrap (v2001.0131) ok: found v2001.09293 ^[ 徟慸  
Checking for Mail::Mailer (v1.65) ok: found v1.67 1駴Q竄殢  
Checking for Storable (any) ok: found v2.13The following Perl modules are optional: ZN瓊L!&  
Checking for GD (v1.20) ok: found v2.16 .e驃雗H  
Checking for Chart::Base (v1.0) ok: found v2.3 獩鐢Fs.  
Checking for XML::Parser (any) ok: found v2.34 詻猌   
Checking for GD::Graph (any) ok: found v1.43 R+隼働郻  
Checking for GD::Text::Align (any) ok: found v1.18 O嬷_.!  
Checking for PatchReader (v0.9.4) ok: found v0.9.5 %В-瘛9,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/ MJL<o鴸6  
You can add the repository with the following command: }厠1鉬l堜  
ppm rep add apache http://www.apache.org/dist/perl/win32-bin/ppms/Checking user setup ... @Q产漾#  
This version of Bugzilla contains some variables that you may wantto change and adapt to your local settings. I簈/"0卨  
Please edit the file'./localconfig' and rerun checksetup. <j鷲  
plThe following variables are new to localconfig since you last ranchecksetup. =譼⒚3_W  
pl: index_html cvsbin interdiffbin diffpath create_htaccesswebservergroup db_driver db_host db_pass db_sock db_check e怇& G:  
C:\bugzilla>

2、接下来,在bugzilla的目录下打开localconfig文件,找到以下几行并修改蓝色字体的内:

## How to access the SQL database:#$db_host = "localhost"; 翼]z噡鮉O  
# where is the database?$db_port = 3306; YqO?s  
# which port to use$db_name = "bugs"; A﹃u粅|R`  
# name of the MySQL database$db_user = "bugs"; ay崘抽  
# user to attach to the MySQL database o鈏(m暀  
## Enter your database password here. It's normally advisable to specify 絯)L0欏E霗  
# a password for your bugzilla database user. 蔢鞥8"  
# If you use apostrophe (') or a backslash (\) in your password, you'll Q飊K嚡P  
# need to escape it by preceding it with a \ character. (\') or (\\) (/诪薜-  
#$db_pass = 'sockmonkey';

3、保存以后再次运行checksetup.pl。出现以下内容:别忘了记下输入的管理员的帐号和密码做为第一次登陆的用户和密码。

C:\bugzilla>perl u碷!S3W/O  
checksetup.plChecking perl modules ... 钜]煇  
Checking for AppConfig (v1.52) ok: found v1.55 ]代艣  
Checking for CGI (v2.93) ok: found v3.10 qR謅鞊ah  
Checking for Data::Dumper (any) ok: found v2.121_04 v6釭/  
Checking for Date::Format (v2.21) ok: found v2.22 8-旺漼  
Checking for DBI (v1.38) ok: found v1.48 |u虒撺@D  
Checking for File::Spec (v0.84) ok: found v3.05 #史h逆x  
Checking for File::Temp (any) ok: found v0.16 :r2r樘6  
Checking for Template (v2.08) ok: found v2.13 7w忾H E  
Checking for Text::Wrap (v2001.0131) ok: found v2001.09293 铳F紖z贼  
Checking for Mail::Mailer (v1.65) ok: found v1.67 9瀏qm]覔  
Checking for Storable (any) ok: found v2.13The following Perl modules are optional: x始书)劤|  
Checking for GD (v1.20) ok: found v2.16Checking for Chart::Base (v1.0) ok: found v2.3 O奫钕镲盞  
Checking for XML::Parser (any) ok: found v2.34 霧'撻厬pX  
Checking for GD::Graph (any) ok: found v1.43 囉V;W汋5,  
Checking for GD::Text::Align (any) ok: found v1.18 >oǎ$|  
Checking for PatchReader (v0.9.4) ok: found v0.9.5 齣脢劉Y  
Most ActivePerl modules are available at Apache's ppm repository. 7薸蒋Qi蛀8  
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 ... r鏹!^=`  
Creating data directory (./data) ... 0斅P喸9  
Creating graphs directory... 9[淄P:潔夑  
Creating .htaccess... 喴A棧)  
Creating Bugzilla/.htaccess... 乾熥嗾b嚓  
Creating ./data/.htaccess... 裐萯@估  
Creating ./template/.htaccess... z{$挑v2mJ  
Creating ./data/webdot/.htaccess... X鸄l 緃  
Precompiling templates ... LmD湫 .  
Checking for MySQL Server (v3.23.41) ok: found v4.0.20a-debugCreating table user_group_map ... )x:鶇么蔭  
Creating table series_data ... T僮y9,#2  
Creating table longdescs ... K倠~堔嘑  
Creating table dependencies ... 噔6f3#  
Creating table components ... x阖豓  
Creating table keywords ... 粩冃釀涐a  
Creating table cc ... 5橩煣C w  
Creating table duplicates ... 庰mI 茦赇  
Creating table groups ... ' k邝uUp  
Creating table flagtypes ... 歫歡鮕  
Creating table profiles ... =N?循.剽睗  
Creating table products ... 馟彚苷鯤  
Creating table bugs_activity ... 1wr篴5lO  
Creating table series_categories ... i麷钺s盽v  
Creating table keyworddefs ... 媐MR瘶N<  
Creating table fielddefs ... 刞q握 {  
Creating table group_control_map ... 氞H賏耗w  
Creating table profiles_activity ... G19w抏蒈r  
Creating table group_group_map ... 塉籔.  
Creating table user_series_map ... 蝺龝)圉  
Creating table bugs ... !榋.+S  
Creating table series ... 5SPY喡禚鑵  
Creating table versions ... "@~銔酋厗  
Creating table flagexclusions ... 鵉<爔3:9S  
Creating table logincookies ... 湣O%nM  
Creating table watch ... 鴯蟛a6遦u  
Creating table bug_group_map ... Ez7i硛刖E  
Creating table votes ... 踃顒/5<嗥  
Creating table attachments ... L:抃\嗊#  
Creating table flags ... .m禯畈栱.  
Creating table milestones ... m犬lX旅P  
Creating table tokens ... 偷 a檗OV┠  
Creating table flaginclusions ... <42垹  
Creating table quips ... ~_檋魩齈  
Creating table namedqueries ... >朏J,=  
Creating initial dummy product 'TestProduct' ... }T篺 ̄榰  
Populating duplicates table... :A,97  
Creating duplicates directory... @2 鞝  
Migrating old chart data into database ... 绅%F)屎  
Adding group tweakparams ... ?t琺:啣蠝  
Adding group editusers ... 樉J蘬咷8  
Adding group creategroups ... w毇喲廤{  
Adding group editcomponents ... ;S$4 却抁  
Adding group editkeywords ... :O##  
Adding group admin ... 8wv>稪`  
Adding group editbugs ... >k璊euM  
Adding group canconfirm ... I鐽N* )  
Looks like we don't have an administrator set up yet. +嶪G9蹗Q  
Either this is yourfirst time using Bugzilla, or your administrator's privileges might haveaccidently been deleted.Enter the e-mail address of the administrator: byron@example.com (此将是默认超级用户)You entered 'byron@example.com'. v踗質*#  
Is this correct? [Y/n] yEnter the real name of the administrator: Byron JonesEnter a password for the administrator account: beefPlease retype the password to verify: beef'byron@example.com' is now set up as an administrator account. B风D`  
C:\bugzilla>OK

到此,bugzilla已安装完毕,接下来最后一步是配置邮箱了。 頫$鏮L  
w爨z80>2  
 五、配置邮箱。 5g擏Y{  
虉秵䲟哗0  
 由于bugzilla已经提供了内置的SMTP支持,如果是局域网内用的话只要安装一个windows 下的sendmail.exe,文件,将此文件放到和你的bugzilla同一目录下即可。如果发到其它邮件服务器中,可能还需要设置bugmail里的内容,(由于我是在局域网下配置的,这种方法没有试,请见谅)具体请参见bugzila的官方网站:http://www.bugzilla.org 稫#熘  
堨刔0{’鮎  
 六、登陆bugzilla 到这里,Bugzilla的安装就基本上搞定了。 藍詤熈*  
Q! .J:'  
 在IE浏览器地址栏里输入:http://localhost/ 登陆bugzilla,至此你就能使用等待以久的bugzill缺陷跟踪体系统了。  (鍶崚  
郋争w燆  
 经过漫长的安装过程,如果能和你共同分享成功的喜悦,可以给我留言哦,我的blog是:http://blog.51testing.com/chorry/ 打开登陆界面后,使用你输入的邮箱和密码就可以登陆了 { 皦6裬  
軑炉$U  
 七、最后就是汉化bugzilla不过你不想汉化也没有问题。 0=6& d  
蕝嚽亊  
 将汉化包解压解压到cn文件夹,将整个文件目录 cn 拷贝至 Bugzilla 的子目录 template下;然后以管理员身份登录Bugzilla,点击页脚的 Parameters(系统参数设置)链接,将 languages 一项的值改为 cn,保存,则以后见到的Bugzilla页面就是汉语页面了。如果想返回英文界面,将 cn 改回 en 即可。为保证向后兼容,汉化的文件全部存为 UTF-8 格式。但不管你是否汉化Bugzilla,为强迫Bugzilla采用UTF-8来处理字符串,避免Bugzilla偶然出现的乱码,强烈建议大家将文件 安装目录>\Bugzilla\CGI.pm 的第55行改为 $self->charset('UTF-8')。汉化包的具体下载你可以在http://bugzilla.org/download.html 里找到相应的bugzilla汉化包。 毊! 0ng  
憓`&酋寍 x  
  八、一些bugzilla的参考网站Bugzilla官方网站 NM32`僿睫  
$\W坾1烺  
 http://www.bugzilla.orgBugzilla汉化项目 T袻0藷蠍  
 http://sourceforge.net/projects/bugzilla-cnhttp://cosoft.org.cn/projects/bugzillchinese/Perl官方网站 nS奱E{奌鄰  
 http://www.perl.comActivePerl官方网站 c#鹇壯  
 http://www.activestate.com/Products/ActivePerlMySQL官方网站 y裫D⿺瞙>  
 http://www.mysql.comFake Sendmait for Windows &hV憅O+:  
 http://www.glob.com.au/sendmail/Installing Bugzilla on Microsoft Windows +沦礎'  
 http://www.bugzilla.org/docs/win32install.html The Bugzilla Guide q1yq衖  
 http://www.bugzilla.org/docs/2.20/html Bugzilla windows安装红宝书  鐰P颦  
 http://blog.fz0132.com/trackback.asp?tbID=654 V0O椶妨秪  


版权所有:UML软件工程组织


阅读全文(834) | 回复(0) | 推送
欢迎到 linuxsky1001 的个人主页看更多内容



  共0条回复