Home > Support > HOWTO List > Bugzilla


Bugzilla is a "Defect Tracking System" or "Bug-Tracking System". Defect Tracking Systems allow individual or groups of developers to keep track of outstanding bugs in their product effectively.

The easiest way to install this is using the pakage management system on your server. That will allow you to take advantage of the latest updates for your distribution, and should integrate well with the rest of your server. eg

apt-get install bugzilla

Some distribution versions may have an older version, you may prefer to use the latest release and update that yourself as needed. See below for instructions on that.

Bugzilla Source Install

cd /var/www/html
wget the file using the url from http://www.bugzilla.org/download/#stable 
tar xzf "that file"
mv "that directory" bugzilla
cd bugzilla

That will tell you a few things you need to install and a few optional things.  Typically you can just install the things you need and skip the optional bits.  That might involve installing CPAN modules.  e.g. /usr/bin/perl -MCPAN -e 'install "MIME::Parser"' but we recommend checking for a package containing that from your distribution first eg with

:~$ apt-cache search "Parser" | grep MIME
libgmime-2.4-2 - MIME message parser and creator library - runtime
libgmime-2.4-dev - MIME message parser and creator library - development files
libgmime-2.4-doc - MIME message parser and creator library - documentation

If you opt to install the CPAN modules you may need to specifically install some development packages, for example under centos5 do

yum install mysql-devel gd-devel httpd-devel 

Create a mysql user and consider the other tips on that URL.  You may need to first startup mysql (/etc/init.d/mysqld start); set it to run on boot up (chkconfig --level 35 mysqld on) and set a root mysql user password (mysqladmin password somepwhere). We have a script at http://proj.ri.mu/installmysql.sh that can help you get mysql installed and secured to start off with.

If you prefer to manually create the buzilla database, in a mysql shell do the folllowing...

create database bugs;
grant all on bugs.* to bugs@localhost identified by 'yoursecurepassword';

Re-run ./checksetup.pl

That should create a localconfig file.  Edit that file to set the db_pass to the password you set when creating the mysql user above.

Re-run ./checksetup.pl.  That should create the database tables and users you need.  And setup an admin password for the install.

Add something like this to your apache config:

<Directory /var/www/html/bugzilla>
  AddHandler cgi-script .cgi
  Options +Indexes +ExecCGI
  DirectoryIndex index.cgi
  AllowOverride Limit

Then browse to "http://yourip/bugzilla"

See also http://www.bugzilla.org/docs/4.0/en/html/configuration.html#http

If you get stuck or need a hand getting started just pop in a support ticket and one of the RimuHosting sysadmins can get this going for you.