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 Latest.
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
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
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
Once checksetup.pl finishes checking modules, run it again to configure Bugzilla.
sudo ./checksetup.pl
During the configuration process, you will be asked several questions. Answer them accordingly.
At the end of the configuration process, Bugzilla will generate a localconfig file.
sudo cp localconfig localconfig.bak
sudo nano localconfig
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';
Save and close the localconfig file.
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
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 Latest.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!