---
title: "How to Install Bugzilla on Ubuntu Server - CloudBlast"
description: "How to Install Bugzilla on Ubuntu Server"
url: "https://cloudblast.io/article/How-to-Install-Bugzilla-on-Ubuntu-Server"
language: "en-US"
---

BLOG

# How to Install Bugzilla on Ubuntu Server

5€ FREE BALANCE when you register

Register to cloudblast and get 5€ cloud credit to deploy your VPS's

[Claim Free 5€](https://console.cloudblast.io/auth/login?ref=2)

-   [Back](https://cloudblast.io/)
-   [All Articles](https://cloudblast.io/blog)

2024-08-29

### How to Install Bugzilla on Ubuntu Server

tutorials

[Add as a preferred source on Google](https://www.google.com/preferences/source?q=cloudblast.io)

Bugzilla is a web-based bug tracking and management tool used by many software development teams worldwide. In this tutorial, we will guide you step-by-step on how to install Bugzilla on Ubuntu Server.

**Prerequisites**

-   A fresh Ubuntu Server installation.
-   A non-root user with sudo privileges.

**Install Required Packages**

First, update the package repository index and install the required packages.

> sudo apt-get update sudo apt-get install apache2 libapache2-mod-perl2 libappconfig-perl libdate-calc-perl libtemplate-perl libmime-perl build-essential libdatetime-timezone-perl libdatetime-perl libemail-sender-perl libemail-mime-perl libdbi-perl libdbd-mysql-perl libcgi-pm-perl libmath-random-isaac-perl libmath-random-isaac-xs-perl libapache2-mod-php libxml-perl libxml-twig-perl perlmagick libgd-graph-perl libtemplate-plugin-gd-perl libsoap-lite-perl libhtml-scrubber-perl libjson-rpc-perl libdaemon-generic-perl libtheschwartz-perl libtest-taint-perl libauthen-radius-perl libfile-slurp-perl libencode-detect-perl libmodule-build-perl libnet-ldap-perl libauthen-sasl-perl libtemplate-perl-doc libfile-mimeinfo-perl libhtml-formattext-withlinks-perl libgd-dev libmysqlclient-dev lynx-cur graphviz python-sphinx

**Download and Extract Bugzilla**

Next, download the latest stable release of Bugzilla from their official website.

> cd /tmp wget https://www.bugzilla.org/download.cgi -O bugzilla.tar.gz

Extract the downloaded archive to your Apache root directory.

> sudo tar -xzf bugzilla.tar.gz -C /var/www/html sudo mv /var/www/html/bugzilla-\* /var/www/html/bugzilla

**Configure Bugzilla**

Before we proceed to configure Bugzilla, we need to create a new MySQL database and user for Bugzilla.

> sudo mysql -u root -p

Create a new MySQL database and user for Bugzilla.

> CREATE DATABASE bugzilla; GRANT ALL PRIVILEGES ON bugzilla.\* TO 'bugzillauser'@'localhost' IDENTIFIED BY 'password'; FLUSH PRIVILEGES; exit;

Change directory to /var/www/html/bugzilla and run the checksetup.pl script to check the requirements.

> cd /var/www/html/bugzilla sudo ./checksetup.pl --check-modules

Run it again to configure Bugzilla.

> sudo ./checksetup.pl

Make the necessary changes to the localconfig file to match your database settings.

> $db\_driver = 'mysql'; $db\_host = 'localhost'; $db\_name = 'bugzilla'; $db\_user = 'bugzillauser'; $db\_pass = 'password';

**Configure Apache**

Create a new virtual host file for Apache.

> sudo nano /etc/apache2/sites-available/bugzilla.conf

Add the following content to the file and save it.

> <VirtualHost \*:80> ServerAdmin admin@example.com DocumentRoot /var/www/html/bugzilla/ ServerName example.com ServerAlias www.example.com <Directory /var/www/html/bugzilla> AddHandler cgi-script .cgi Options +Indexes +ExecCGI DirectoryIndex index.cgi AllowOverride All Require all granted </Directory> ErrorLog ${APACHE\_LOG\_DIR}/error.log CustomLog ${APACHE\_LOG\_DIR}/access.log combined </VirtualHost>

Enable the new virtual host.

> sudo a2ensite bugzilla.conf

Disable the default Apache virtual host.

> sudo a2dissite 000-default.conf

Restart the Apache service for the changes to take effect.

> sudo systemctl restart apache2

**Access Bugzilla Web Interface**

You can now access the Bugzilla web interface by visiting your server's IP address or domain name in your web browser.

> http://example.com

Log in to Bugzilla with the administrator account you created during the configuration process.

Congratulations! You have successfully installed Bugzilla on Ubuntu Server.

Share

## Continue Reading

[2026-07-25 How to Install and Set Up Mailcow on Ubuntu and Debian VPS tutorials](https://cloudblast.io/article/how-to-install-and-setup-mailcow-on-ubuntu-and-debian-vps)

[2026-07-25 How to Install Chatwoot on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-chatwoot-on-ubuntu-and-debian-server)

[2026-07-25 How to Install Mattermost on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-mattermost-on-ubuntu-and-debian-server)

[2026-07-25 How to Install RustDesk on the Latest Ubuntu and Debian Server tutorials](https://cloudblast.io/article/how-to-install-rustdesk-on-ubuntu-and-debian-server)
