Thursday, September 9, 2010 20:12

Bugzilla安装笔记

Tagged with:
Posted by Rexleed on Monday, January 5, 2009, 13:25
This news item was posted in IT Consultant category and has 0 Comments so far.

/usr/bin/perl -MCPAN -e ‘install “GD”‘

bugzilla安装步骤(For RHEL AS4):

先装apche-1.3.34
解压:tar zxvf apache-1.3.34.tar.gz
安装:./configure –prefix=/usr/local/apache –enable-module=so

(修改httpd.conf文件,在”DefaultType text/plain”下添加一行”AddDefaultCharset GB2312″)

再装mysql-4.0.26
解压:tar zxvf mysql-4.0.26.tar.gz
安装:./configure –prefix=/usr/local/mysql –with-charset=gbk
建bugs数据库和bugs用户:grant all privileges on bugs.* to ‘bugs’@'%’ identified by ‘bugs’;

最后解压bugzilla到/usr/local/下面

# cd /usr/local/bugzilla
# ./checksetup.pl

安装缺少的perl模块:
AppConfig
Mail::Mailer
Date::Format
IO-stringy
MIME-Base64
MIME::Parser
Template
(PathTools-3.24)
(CGI.pm-3.25)
(DBI-1.53)
安装:perl Makefile.PL
make
(make test)
make install

groupadd apache
修改localconfig文件
$db_host = IP地址
$db_pass = ‘bugs’

./checksetup.pl

# ln -s /usr/local/bugzilla /var/www/bugzilla(之前可能需要mkdir /var/www)

Alias /bugzilla/ “/var/www/bugzilla/”
<Directory “/var/www/bugzilla/”>;
Options ExecCGI
AllowOverride Limit
</Directory>

AddHandler cgi-script .cgi(将其前面的#注释掉,使之生效)
DirectoryIndex index.html index.cgi(添加了一个index.cgi)

# chown root:root bugzilla/ -R
# chmod 777 bugzilla/ -R

Related Posts

Leave a Reply

You can leave a response, or trackback from your own site.