reg88.com

fine...I'll blog too

Fresh Installation of Bugzilla on Ubuntu

Install required packages

1
2
apt-get install perl mysql-server mysql-client mysql-admin apache2
apt-get install build-essential libcgi-pm-perl libdigest-sha1-perl timedate libdatetime-event-sunrise-perl libdbi-perl libhtml-template-perl libemail-send-perl libemail-mime-perl libemail-mime-encodings-perl libemail-mime-modifier-perl liburi-perl libdbd-mysql-perl libtoolkit-perl libtemplate-perl libgd-gd2-perl libchart-perl libtemplate-plugin-gd-perl libxml-twig-perl libmime-tools-perl libwww-perl perlmagick libnet-ldap-perl libauthen-sasl-perl libauthen-simple-radius-perl libsoap-lite-perl libhtml-parser-perl libhtml-scrubber-perl libtheschwartz-perl libapache2-mod-perl2 libfile-slurp-perl libfile-flock-perl libyaml-perl

Configure Database

1
2
3
$ mysql -u root -p
mysql> create database bugzilla;
mysql> grant all privileges on bugzilla.* to bugzilla@localhost identified by ‘bugzilla’;

Download and untar bugzilla

1
2
3
4
5
$ tar -zxvf bugzilla-3.x
$ mv bugzilla-3.x /usr/local/bugzilla-3.x
$ ln -s /usr/local/bugzilla3.x /var/www/bugzilla
$ cd /usr/local/bugzilla-3.x
$ ./checksetup.pl –check-modules

Most likely the installer will complain about missing modules. Here’s how you can install them:

1
2
3
4
5
/usr/bin/perl install-module.pl Daemon::Generic
/usr/bin/perl install-module.pl Email::Reply
/usr/bin/perl install-module.pl PatchReader
/usr/bin/perl install-module.pl Email::MIME::Attachment::Stripper
/usr/bin/perl install-module.pl Template

Recheck for missing modules and if successful, continue with the install

1
2
$ ./checksetup.pl –check-modules
$ ./checksetup.pl

Edit bugzilla’s configuration file and enter your database information

1
2
3
4
5
6
$ vim localconfig
Edit following
$webservergroup = ‘www-data’;
$db_name = ‘bugzilla’;
$db_user = ‘bugzilla’;
$db_pass = ‘bugzilla’;

Modify the database to support larger attachement sizes

1
2
3
$ mysql -u root -p
mysql> use bugzilla;
mysql> alter table attachments avg\_row\_length=1000000, max_rows=20000;

Configure Apache2 and your VirtualHost

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$ ./checksetup.pl
$ vim /etc/apache2/sites-available/bugzilla

<VirtualHost *:80>
ServerName bugzilla.test.example.com
ServerAlias bugs bugs.test bugs.test.example.com bugzilla bugzilla.fs
ServerAdmin root@example.com
DocumentRoot /var/www/bugzilla
ErrorLog &#8220;|/usr/sbin/rotatelogs /var/log/apache2/bugzilla.%Y-%m-%d.error 86400&#8243;
CustomLog &#8220;|/usr/sbin/rotatelogs /var/log/apache2/bugzilla.%Y-%m-%d.log 86400&#8243; common
</VirtualHost>
Alias /bugzilla/ /var/www/bugzilla/
<Directory /var/www/bugzilla>
AddHandler cgi-script .cgi .pl
Options +Indexes +ExecCGI +FollowSymLinks
DirectoryIndex index.cgi
AllowOverride Limit
</Directory>

Create a symbolic link to enable bugzilla’s VirtualHost

1
ln -s /etc/apache2/sites-available/bugzilla /etc/apache2/sites-enables/bugzilla

Start/Restart Apache

1
/etc/initd./apache2 restart