Bugzilla Windows 安装手册

Bugzilla Windows 安装手册

钱五哥

http://spaces.msn.com/members/qianwuge/

July 19,2005

(针对bugzilla 2.18.1版本)

需要的其他模块
1. Apache Server, 我用了最新的2.0.54
2. Active Perl, 使用 ActivePerl-5.8.7.813-MSWin32-x86-148120.msi, 这里有反复, 后来得以解决, 参见后面
注: Active Perl 5.6.1.638 已经无法工作, 因为Bugzilla需要Active Perl 5.8.1+

set http_proxy=http://ch.proxy.lucent.com:8000
ppm repository add landfill
http://www.landfill.bugzilla.org/ppm/
ppm install modules

3. MySQL: 使用mysql-4.0.15-win.zip, 原本安装的居然是3.23.xx, 比需要的版本低
但是因为原来的数据库里面已经安装了AgentX的数据, 所以首先安装phpmyadmin, 导出AgentX的数据库
然后覆盖安装, 启动服务器, 居然数据库都在, user Table里面用户也都在, 强!

mysql> GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, DROP, REFERENCES ON bugs.* tobugs@localhost IDENTIFIED BY  ‘bugs_password’;

4. php:php-4.3.11-Win32.zip, 主要是为了安装phpmyadmin
5. phpmyadmin: phpMyAdmin-2.6.3-rc1.tar.gz

安装和配置:
关键在于使用perl checksetup.pl, 这个脚本给出了所有问题的解决方法

修改:
2.4.1.3. Code changes required to run on Win32
Bugzilla on Win32 is mostly supported out of the box; one remaining issue is related to bug email. To make bug email work on Win32 (until bug 49893 lands), the simplest way is to have the Net::SMTP Perl module installed and change these lines in the file Bugzilla/Bugmail.pm:

open(SENDMAIL, “|/usr/lib/sendmail $sendmailparam -t -i”) ||
die “Can’t open sendmail”;

print SENDMAIL trim($msg) . “\n”;
close SENDMAIL;

to

use Net::SMTP;
my $smtp_server = ‘smtp.mycompany.com’;  # change this

($enableSendMail && $rcpt_to) || return;

# Use die on error, so that the mail will be in the ‘unsent mails’ and
# can be sent from the sanity check page.
my $smtp = Net::SMTP->new($smtp_server) ||
die ‘Cannot connect to server \’$smtp_server\”;

$smtp->mail(‘bugzilla-daemon@mycompany.com’);  # change this
$smtp->to($rcpt_to);
$smtp->data();
$smtp->datasend($msg);
$smtp->dataend();
$smtp->quit;

Don’t forget to change the name of your SMTP server and the domain of the sending email address (after the ‘@’) in the above lines of code.

所有的CGI脚本都需要修改首行的
/usr/bin/perl 为本机安装的perl.exe目录

(转载请事先征得作者同意)

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注