Google Search Within opentiss.uk

2007-05-11

Install Bugzilla 3.0 on SLES 10

SLES 10 Eval请在Novell网站登录注册新用户登录后从SUSE Linux Enterprise Server 10上下载安装。
www.bugzilla.org上下载最新的Bugzilla 3.0,然后解压缩并更改解压缩后的目录名称为bugzilla:
tar -xjvf bugzilla-3.0.tar.gz
mv bugzilla-3.0/ bugzilla

首先检查相应的perl模块是否已经安装完毕:
./checksetup.pl --check-modules
检查结果的详细信息请参阅:bugzilla3.txt。其中,DBD-Pg(PostgreSQL database driver for the DBI module),如果选择MySQL数据库,则无需安装,此安装即采用SLES 10自带的MySQL 5.0.18。

以下缺少的模块已经由SLES 10提供了相应rpm安装包,直接添加即可(括号中为具体的rpm名称):
MIME-tools(perl-MIME-tools)
libwww-perl(perl-libwww-perl)
perl-ldap(perl-ldap)
HTML-Parser(perl-HTML-Parser)
mod_perl(apache2-mod_perl)

另外,还需要添加gd及gd-devel包,因为后面安装perl附加模块时需要用到,否则会报编译错误。截图如下:
添加gd、gd-devel
添加gd、gd-devel后由依赖关系而添加的相关rpm

安装完需要的rpm后,再执行命令./checksetup.pl --check-modules,得到一个新的需要安装的perl模块列表。详细列表参见:bugzilla3a.txt

安装必需的perl包:
/usr/bin/perl -MCPAN -e 'install Email::Send'
/usr/bin/perl -MCPAN -e 'install Template'
/usr/bin/perl -MCPAN -e 'install Email::MIME::Modifier'

安装可选的perl包:
/usr/bin/perl -MCPAN -e 'install GD::Graph'
/usr/bin/perl -MCPAN -e 'install Template::Plugin::GD::Image'
/usr/bin/perl -MCPAN -e 'install Email::Reply'
/usr/bin/perl -MCPAN -e 'install Email::MIME::Attachment::Stripper'
/usr/bin/perl -MCPAN -e 'install HTML::Scrubber'
/usr/bin/perl -MCPAN -e 'install XML::Twig'
/usr/bin/perl -MCPAN -e 'install Chart::Base'
/usr/bin/perl -MCPAN -e 'install Apache::DBI'

无法正常安装的可选perl包:
/usr/bin/perl -MCPAN -e 'install Image::Magick'

一切准备就绪后,将bugzilla目录的所有者及组进行更改:
chown -R wwwrun:www bugzilla/

生成localconfig文件,并更改默认设置:
./checksetup.pl

更改localconfig的以下设置(line 86):
$interdiffbin = '';

$interdiffbin = '/usr/bin/diff';

在/etc/my.cnf中添加如下选项
[mysqld]
# Allow small words in full-text indexes
ft_min_word_len=2

登录并创建数据库:
mysql> create database bugs DEFAULT CHARACTER SET utf8;
Query OK, 1 row affected (0.00 sec)
创建数据库用户并设置密码与相应的数据库权限:
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY 'c6c2c8b3mz';
Query OK, 0 rows affected (0.03 sec)

更改localconfig的以下设置(line 46):
$db_pass = '';

$db_pass = 'c6c2c8b3mz';

更改localconfig的以下设置(line 25):
$webservergroup = 'apache';

$webservergroup = 'www';

以上步骤就绪后,执行以下命令完成安装过程:
./checksetup.pl
这一过程中,需要设置系统管理员的电子邮件及密码,如截图所示:
设置系统管理员的电子邮件及密码

最后,配置apache服务器,使Bugzilla 3.0可用。这一步只需添加以下文件即可:
/etc/apache2/conf.d/bugzilla.conf
文件/etc/apache2/conf.d/bugzilla.conf的内容如下:
#
# This configuration file is bugzilla.
#

Alias /bugzilla "/apache/bugzilla"

<Directory "/apache/bugzilla">
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit
Order allow,deny
Allow from all
</Directory>

对文件/etc/apache2/conf.d/bugzilla.conf的说明:
目录/apache/bugzilla为Bugzilla 3.0的安装目录。
添加安apache配置文件后,需要重启apache2,如果重启后不能生效,可能需要重启一下服务器主机:
apache2ctl restart

安装完成后,通过Firefox 2.0直接访问Bugzilla 3.0,页面截图如下:
Bugzilla 3.0首页

如果能看到以上页面,则基本可以确定Bugzilla 3.0安装正常,可以正常使用了。如果需要定制Bugzilla 3.0,请以系统管理员登录Bugzilla 3.0,进行相应定制设置即可。

3 条评论:

匿名 说...

ugg boots outlet
ugg uk
ugg boots uk
genuine ugg boots
genuine uggs
ugg boots cheap
pandora charms
cheap ugg boots
ralph lauren outlet
ugg boots sale
north face jackets
discount ugg boots
chloe bags
ugg outlet online
air max pas cher
ugg boots sale
fendi handbags
genuine ugg boots
nike outlet
cheap uggs
ugg uk
uggs on sale
nike shox
cheap uggs uk
uggs sale
cheap ugg boots
ugg boots sale
ugg black friday
discount uggs
uggs black friday 2014
dansko clearance
ugg boots clearance

Unknown 说...

20160922qiujie
uggs
polo ralph lauren outlet
adidas nmd r1
mlb jerseys
cheap ray bans
fitflops
michael kors
canada goose outlet
michael kors outlet store
red bottom shoes for women

jeje 说...

Construire un personnel de travail virtuel par rapport à un chaussure nike blazer basse femme pas cher groupe d'hommes et de femmes placé au centre a reçu une importance dans les entreprises mondiales actuelles. Un personnel virtuel multiculturel tire ses récompenses de la façon dont il est composé. Le principe de fonctionnement de Lunar est une structure extrêmement compliquée. Les méthodes de conservation approuvées doivent noter les points suivants. Ils avaient l'intention de faire en sorte que les exercices d'échauffement soient rentables. En plus de cela, asics stormhawk femme avis vous pouvez l'utiliser pour arroser votre cheval ou arroser vous-même.