/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