Google Search Within opentiss.uk

2009-07-29

SLES 11之安装配置Bugzilla 3.4

昨天著名的Bug跟踪管理工具Bugzilla 3.4正式发布了,因为openJDiary项目管理的内部需要及其他一些必要的用途,我就在我的小机器上配置了一个bugzilla系统。
首先下载Bugzilla 3.4,解压缩到相应的虚拟主机目录:
dws:/srv/www/htdocs # tar xzf bugzilla-3.4.tar.gz
将目录bugzilla-3.4更改为需要的名称,如:
dws:/srv/www/htdocs # mv bugzilla-3.4 bugzilla
进行安装之前,需要检查一下是否具备了所有需要的模块及perl工具包:
dws:/srv/www/htdocs # cd bugzilla
dws:/srv/www/htdocs/bugzilla # ./checksetup.pl
一般情况下,是缺少一些软件包的,不过没有问题,按照提示,只需要运行以下命令自动下载安装所需的软件包即可,过程中可能需要若干次确认操作:
dws:/srv/www/htdocs/bugzilla # /usr/bin/perl install-module.pl --all
顺利完成后,再次执行以下命令:
dws:/srv/www/htdocs/bugzilla # ./checksetup.pl
此时如果安装条件均具备,会自动生成localconfig,提示您对MySQL数据库参数进行设置,如果建立全新的bugzilla数据库,可参考以下MySQL数据库脚本建立数据库并进行相应权限设置:
create database `bugzilla` default character set utf8 collate utf8_general_ci;
GRANT SELECT, INSERT,UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES,CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugzilla.* TO bugzilla@localhost IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
另外,因为SLES 11.0使用的Apache用户组名为www,还需要更改第25行的参数$webservergroup,由apache更改为www。
一切就绪后,再次执行以下命令,结束安装:
dws:/srv/www/htdocs/bugzilla # ./checksetup.pl
安装的最后阶段,会提示你输入系统管理员的Email,真实名字,以及登录密码。
Bugzilla 3.4安装结束后,就需要配置Apache的相应参数了,我采用了虚拟主机方式,配置文件(/etc/apache2/vhosts.d/yast2_vhosts.conf)参考如下:
<VirtualHost 10.15.76.105>
 DocumentRoot /srv/www/htdocs/bugzilla
 ServerName bugzilla.dws.cn
 ServerAdmin opentiss@gmail.com
 <Directory /srv/www/htdocs/bugzilla>
    AddHandler cgi-script .cgi
    Options +Indexes +ExecCGI
    DirectoryIndex index.cgi
    AllowOverride Limit
 </Directory>
</VirtualHost>
重启Apache,就可以使用刚才安装的Bugzilla了:
/etc/init.d/apache2 restart
Bugzilla的主页如下图所示:

以系统管理员账号登录后,请先在Parameters->Required Settings中将参数urlbase修改为正确的值。
最后,如果你想以gmail的smtp做为Bugzilla通知邮件服务器的话,可以参照BugZilla alerts using GMAIL进行如下配置:首先安装Perl模块Email::Send::SMTP::TLS,采用CPAN SHELL:
perl -MCPAN -e shell
cpan[1]> install Email::Send::SMTP::TLS
因为安装过程中需要两个模块perl-Test-Pod和perl-Test-Pod-Coverage,所以需要先在YaST中事先安装好。在安装过程中可能需要自动安装一些其他有依赖的包,直接确认安装即可。
安装完成后,备份Bugzilla/Mailer.pm,然后对其进行如下修改:
176a177,186
>     if ($method eq "SMTP::TLS") {
>         my ($smtp_server,$smtp_port) = split /:/,Bugzilla->params->{"smtpserver"};
>         push @args, Host  => $smtp_server,
>                     User => Bugzilla->params->{"smtp_username"},
>                     Password => Bugzilla->params->{"smtp_password"},
>                     Hello => $smtp_server,
>                     Port => $smtp_port,
>                     Debug => Bugzilla->params->{'smtp_debug'};
>     }
>
即添加针对SMTP::TLS的处理代码,然后以系统管理员账号登录,在Parameters->Email中修改如下设置:
mail_delivery_method > SMTP::TLS
mailfrom > username@gmail.com
smtpserver > smtp.gmail.com:587
smtp_username > username@gmail.com
smtp_password > userpassword
保存以上设置之后,您就可以通过gmail发送您的Bugzilla通知邮件了。
以上参考文章将会在维勘翻译中有中方参考译文发布(对原文perl代码错误有所修正),敬请关注。

13 条评论:

匿名 说...

I tеnd not to leave many reѕponses, howeѵeг I bгοwsed
a fеw οf the rеmarkѕ
on "SLES 11之安装配置Bugzilla 3.4".
I dо have a few questions for yоu if you ԁo nоt mind.
Is it only mе οг dο a few of the гesρonses look like they arе ωгitten by brаin ԁeаd
individuals? :-P Αnd, if you are writing on аdԁitional online
ѕіtes, I'd like to keep up with you. Could you make a list of all of all your shared pages like your Facebook page, twitter feed, or linkedin profile? where to find raspberry ketones max - raspberry ketone side effects - raspberry ketones maximum dosage

my blog post ... raspberry ketone scam

匿名 说...

ugg boots clearance
furla handbags
uggs outlet
ugg sale
ugg boots clearance sale
cheap uggs
uggs black friday 2014
ugg boots outlet
cheap uggs
ugg outlet
cheap uggs for sale
ugg boots outlet
tory burch black friday sale 2014
jordan 11
ugg sale
uggs on sale
ugg outlet online
uggs sale
pandora jewellery
mcm backpack
discount uggs
ugg outlet
guess outlet store
cheap beats by dre
cheap ugg boots
kobe bryant shoes
nike shoes
tods shoes
nike kd 6
louboutin shoes
uggs sale

Unknown 说...

louis vuitton handbags outlet
nba jerseys
green bay packers
michael kors handbags sale
adidas outlet
the north face outlet
nike trainers
lebron shoes
cheap nike shoes
ralph lauren outlet
ghd uk
ugg boots
coach outlet store
louis vuitton outlet online
cheap jordan shoes
air jordan shoes for sale
swarovski outlet
mulberry uk
black friday 2015
1105minko

Unknown 说...

wedding dresses, moncler, ugg, louis vuitton, ugg, moncler, canada goose jackets, canada goose uk, supra shoes, pandora jewelry, swarovski, ugg pas cher, sac louis vuitton, swarovski crystal, canada goose, barbour, ugg, converse shoes, toms shoes, louis vuitton uk, sac louis vuitton, sac lancel, links of london, juicy couture outlet, canada goose, rolex watches, hollister, pandora jewelry, canada goose, thomas sabo, canada goose outlet, moncler, moncler, barbour, pandora charms, montre homme, doke gabbana, louis vuitton, canada goose, ugg boots, moncler outlet, moncler, pandora charms, moncler, juicy couture, karen millen, marc jacobs, moncler, canada goose, coach outlet store online
ninest123 12.23

柯云 说...

2016-05-07keyun
nike air max uk
cheap ray ban sunglasses
timberlands
nike sb dunks
air max 90
longchamp le pliage
coach outlet online
fitflop sandals
ralph lauren
michael kors handbags
nike blazers uk
michael kors outlet
michael kors handbags
louis vuitton outlet
jordan 3s
oakley outlet
tiffany rings
polo ralph lauren outlet
jordan retro 8
louis vuitton purses
coach factory outlet online
fitflop clearance
adidas factory outlet
vans sneakers
nfl jerseys wholesale
coach outlet
longchamp outlet
louis vuitton outlet
oakley sunglasses wholesale
hollister clearance
nike uk
jordan 3 powder blue
toms shoes
ralph lauren outlet
michael kors handbags
ray ban sunglasses
louis vuitton outlet stores
cheap rolex watches
louboutin femme

Unknown 说...

20160922qiujie
hermes bags
polo ralph lauren outlet online
louis vuitton outlet online
nike free flyknit
ugg boots clearance
jordan retro
cheap jordan shoes
burberry outlet online
canada goose outlet
hugo boss suits

chenmeinv0 说...

ralph lauren outlet
ralph lauren polo outlet
michael kors outlet
nike air max
birkenstock outlet
nike air max 2016
true religion
tory burch outlet
pandora charms
adidas shoes
2017.3.13xukaimin

raybanoutlet001 说...

nike air force 1
michael kors outlet
ray ban sunglasses
jordan shoes
christian louboutin shoes
coach outlet online
fitflops sale
cheap nfl jerseys
nike factory outlet
green bay packers jerseys

Unknown 说...

air max 90
michael kors outlet handbags
nike zoom
vans store
adidas stan smith
golden goose outlet
jordan retro
yeezys
jordan 4
cartier love bracelet

raybanoutlet001 说...

christian louboutin shoes
dallas cowboys jerseys
ray ban sunglasses outlet
cheap ray bans
longchamp outlet
jordan shoes
coach outlet store online
oakley sunglasses
true religion outlet store
coach outlet

Unknown 说...

cheap nhl jerseys
true religion outlet
cardinals jersey
oakley sunglasses
ralph lauren outlet
polo ralph lauren
nike huarache
michael kors handbags
jets jersey
ecco shoes

Unknown 说...

qzz0414
ravens jerseys
boston celtics jersey
jordan 8
polo ralph lauren
tennessee titans jersey
ralph lauren outlet
oakley sunglasses wholesale
fitflops sale clearance
ray ban sunglasses outlet
ray ban sunglasses

jeje 说...

Offre d'approvisionnement: nike air jordan 11 retro femme Reyes est certainement un écrivain spécialiste. Nike annonce qu'elle lancera une Nike Hyperdunk basket homme nike air max 2017 + en juillet 2012. Outre qu'elles sont vendues à l'intérieur chaussure adidas zx 500 des rues, ces guirlandes sont également offertes aux touristes, aux chaussure adidas zx flux femme rose nouveaux diplômés et aux lauréats des concours, soit en air jordan 11 blanche et bleu tant qu'offrandes d'accueil traditionnelles, soit en tant que symboles honorifiques de leurs asics kayano femme soldes réalisations.