Install Bugzilla On Ubuntu Linux

In this article we can see a guide on how to install Bugzilla on Ubuntu Linux. Bugzilla is a free help desk software. You can’t rate bugs according to importance or color code them. But that lack of features also means a clean, simple, easy-to-use interface. It does have some advanced features, such as advanced search which can remember your searches, and editable user profiles. Email preferences and bug permissions are comprehensive. But again a very clean and easy to use free help desk software .


Install Bugzilla On Ubuntu Linux

Install Bugzilla On Ubuntu Linux

Stand-out features

  • Advanced search
  • Remembers your queries

Install the OS

Get Ubuntu Server 14.04 LTS{.reference.external} and install it. Here are some tips:

  • Choose any server name you like.
  • When creating the initial Linux user, call it <span class="pre">bugzilla</span>, give it a strong password, and write that password down.
  • You do not need an encrypted home directory.
  • Choose all the defaults for the “partitioning” part (excepting of course where the default is “No” and you need to press “Yes” to continue).
  • Choose “install security updates automatically” unless you want to do them manually.
  • From the install options, choose “OpenSSH Server” and “LAMP Server“.
  • Set the password for the MySQL root user to a strong password, and write that password down.
  • Install the Grub boot loader to the Master Boot Record.

Reboot when the installer finishes.

Become root

ssh to the machine as the ‘bugzilla’ user, or start a console. Then:

sudo su

Install Prerequisites

apt-get install git nano
apt-get install apache2 mysql-server libappconfig-perl libdate-calc-perl libtemplate-perl libmime-perl build-essential libdatetime-timezone-perl libdatetime-perl libemail-sender-perl libemail-mime-perl libemail-mime-modifier-perl libdbi-perl libdbd-mysql-perl libcgi-pm-perl libmath-random-isaac-perl libmath-random-isaac-xs-perl apache2-mpm-prefork libapache2-mod-perl2 libapache2-mod-perl2-dev libchart-perl 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 libfile-which-perl libgd-dev libmysqlclient-dev lynx-cur graphviz python-sphinx rst2pdf

This will take a little while.

Download Bugzilla

Get it from :

cd /var/www/html

git clone --branch release-X.X-stable bugzilla

(where “X.X” is the 2-digit version number of the stable release of Bugzilla that you want – e.g. 5.0)

Configure MySQL

The following instructions use the simple <span class=“pre”>nano</span> editor, but feel free to use any text editor you are comfortable with.

nano /etc/mysql/my.cnf

Set the following values, which increase the maximum attachment size and make it possible to search for short words and terms:

  • Alter on Line 52: <span class="pre">max_allowed_packet=100M</span>
  • Add as new line 32, in the <span class="pre">[mysqld]</span> section: <span class="pre">ft_min_word_len=2</span>

Save and exit.

Then, add a user to MySQL for Bugzilla to use:

mysql -u root -p -e "GRANT ALL PRIVILEGES ON bugs.* TO bugs@localhost IDENTIFIED BY '$db_pass'"

Replace <span class=“pre”>$db_pass</span> with a strong password you have generated. Write it down. When you run the above command, it will prompt you for the MySQL root password that you configured when you installed Ubuntu. You should make <span class=“pre”>$db_pass</span> different to that password.

Restart MySQL:

service mysql restart

Configure Apache

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

Paste in the following and save:

ServerName localhost

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

a2enmod cgi headers expires

service apache2 restart
comments powered by Disqus