Bugzilla 5.0 Is Out Now. Install It On Ubuntu Linux 15.04

Bugzilla is an open source project; it is a well known web based bug tracker and testing tool. It is an optimized, well structured and secure system. It has integrated email capabilities and a comprehensive permission based system. Its most widely used open source bug tracker app, the most recent verion Bugzilla 5.0, was released few days ago. According to the Bugzilla development team, this release is best and most exciting version of Bugzilla ever.

Prominent Features in Bugzilla 5.0

  • Most prominent feature of new release is the addition of REST-like endpoint web service. It lets users access bugzilla data using standard HTTP calls.
  • Enhanced the caching feature of application by adding support for connecting to local or remote Memcached servers.
  • Users can now add tags to bug comments.
  • Improvements have been made to the Bug group membership checking.

Installing Bugzilla 5.0 on Ubuntu 15.04

Let’s see how we can install this new Bugzilla version on our Ubuntu system, first of all, lets review what are the pre-requisites to intall Bugzilla? Following software components must already be installed on your Ubuntu system before your attempt to install Bugzilla.

  • Perl
  • MySQL
  • Apache2
  • Perl modules

Run following command on your Ubuntu system terminal to install these dependencies.

sudo apt-get install apache2 mysql-server libapache2-mod-perl2 libapache2-mod-perl2-dev libapache2-mod-perl2-doc perl postfix make gcc g++ libcgi-pm-perl

During the install process, it will launch a prompt to specify mysql root password. Note down the password you set here, as it will be used later when we will start configuring bugzilla.

Bugzilla MySQL Root

Once the installation is complete, run following command to start apache2 on your ubuntu system.

sudo /etc/init.d/apache2 restart

Now launch your browser and load http://localhost , it should show a page like this:

Bugzilla ubuntu

Lets create a MySQL database for bugzille, Login mysql by running following command and providing your password when prompted.

mysql –uroot –p

Run following command to create database named ”bugzilladb”, replace the name of database with whatever you want to call it.

create database bugzilladb;

Bugzilla MYSQL

Please note that by default, apache document root is /var/www/html, so in order for any web pages to be served successfully by web server, they should be located under this directory. Lets change our working directoty to apache document root by running the following command:

cd /var/www/html

Here download the latest bugzilla 5.0 by running the following command.

sudo wget https://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-5.0.tar.gz

As soon as the download process is complete, extract the downloaded file.

sudo tar xvf bugzilla-5.0.tar.gz

Rename the extracted directory:

sudo mv bugzilla-5.0 bugzilla

Go into the bugzilla directory by running following command:

cd bugzilla

Here run following command to install all required Perl modules. This process should take sweet amount of time, just sit tight and keep eye for any errors.

sudo perl install-module.pl –all

Once installation of perl modules is complete, run following command, it will check whether pre-requisites have been fulfilled and will generate “localconfig” file.

sudo ./checksetup.pl

Now edit the localconfig file in Gedit text editor by running the following command, and specify your database logins [DB name, mysql password] in this file.

sudo gedit localconfig

edit localconfig Bugzilla

Please update the encircled parameters with your own login details. Once done, save the file and restart apache service by using the following command:

sudo /etc/init.d/apache2 restart

Launch http://localhost/bugzilla in browser. There you go, your new Bugzilla is ready to use :)

Bugzilla 5.0


Bugzilla is most popular, widely used and stable bug tracker since 1998. It has hug fan following and user base. We hope this new release satisfies the thirst for advanced and new users. It is easy to install and configure, you can find lot of help regarding bugzilla operations  from online tutorials and wiki pages.

Please follow and like us:

One thought on “Bugzilla 5.0 Is Out Now. Install It On Ubuntu Linux 15.04

  1. Hello,

    I was trying to follow all instructions above but in the end when I launched http://localhost/bugzilla in browser below is what I got instead of Bugzilla starting page. Can you please help and advise what can be the problem?

    #!/usr/bin/perl -T
    # This Source Code Form is subject to the terms of the Mozilla Public
    # License, v. 2.0. If a copy of the MPL was not distributed with this
    # file, You can obtain one at http://mozilla.org/MPL/2.0/.
    # This Source Code Form is “Incompatible With Secondary Licenses”, as
    # defined by the Mozilla Public License, v. 2.0.

    use 5.10.1;
    use strict;
    use warnings;

    use lib qw(. lib);

    use Bugzilla;
    use Bugzilla::Constants;
    use Bugzilla::Error;
    use Bugzilla::Update;

    # Check whether or not the user is logged in
    my $user = Bugzilla->login(LOGIN_OPTIONAL);
    my $cgi = Bugzilla->cgi;
    my $template = Bugzilla->template;
    my $vars = {};

    # And log out the user if requested. We do this first so that nothing
    # else accidentally relies on the current login.
    if ($cgi->param(‘logout’)) {
    $user = Bugzilla->user;
    $vars->{‘message’} = “logged_out”;
    # Make sure that templates or other code doesn’t get confused about this.

    # Return the appropriate HTTP response headers.
    print $cgi->header();

    if ($user->in_group(‘admin’)) {
    # If ‘urlbase’ is not set, display the Welcome page.
    unless (Bugzilla->params->{‘urlbase’}) {
    || ThrowTemplateError($template->error());
    # Inform the administrator about new releases, if any.
    $vars->{‘release’} = Bugzilla::Update::get_notifications();

    if ($user->id) {
    my $dbh = Bugzilla->dbh;
    $vars->{assignee_count} =
    $dbh->selectrow_array(“SELECT COUNT(*) FROM bugs WHERE assigned_to = ?
    AND resolution = ””, undef, $user->id);
    $vars->{reporter_count} =
    $dbh->selectrow_array(“SELECT COUNT(*) FROM bugs WHERE reporter = ?
    AND resolution = ””, undef, $user->id);
    $vars->{requestee_count} =
    $dbh->selectrow_array(‘SELECT COUNT(DISTINCT bug_id) FROM flags
    WHERE requestee_id = ?’, undef, $user->id);

    # Generate and return the UI (HTML page) from the appropriate template.
    $template->process(“index.html.tmpl”, $vars)
    || ThrowTemplateError($template->error());

Leave a Comment

eight − = 7