How to install Bugzilla 4.4 on Ubuntu/centos 6.x

Source: Internet
Author: User

Here, we'll show you how to install Bugzilla on an Ubuntu 14.04 or CentOS 6.5/7. Bugzilla is a Web-based bug tracking software for tracking defect databases, a free and open source software (FOSS), which allows individuals and development groups to effectively record some of the outstanding issues of their products. Despite being "free", Bugzilla still has a "precious" feature that many other similar products do not have. As a result, Bugzilla quickly became a favorite bug management tool in thousands of organizations around the world.

Bugzilla is very adaptable to different usage scenarios. Today they are used in a variety of it areas, such as deployment management in system management, problem tracking for chip design and deployment (pre-and post-production), and software and hardware bug tracking for reputable companies such as Redhat,nasa,linux-mandrake and VA systems.

1. Installing dependent programs

Installing the Bugzilla is fairly straightforward . This article is specifically for Ubuntu 14.04 and CentOS 6.5 two editions (but also for older versions).

In order to obtain and be able to run Bugzilla in Ubuntu or CentOS systems, we will install the Apache network server (SSL enabled), MySQL database server and some tools that need to be installed and configured bugzilla.

To install using Bugzilla on your server, you need to install the following programs:

    • Perl (5.8.1 or above)
    • Mysql
    • Apache2
    • Bugzilla
    • Perl module
    • Using Apache's Bugzilla

As we mentioned, this article will describe the installation process for Ubuntu 14.04 and CentOS 6.5/72 distributions, which we will be dividing into two parts.

Here are the steps to install Bugzilla on your Ubuntu 14.04 LTS and CentOS 7 machines:

To prepare the required dependency packages:

You need to run the following command to install the necessary packages:

Ubuntu version:
$ su doapt-get install apache2 mysql-server libapache2-mod-perl2 Libapache2-mod-perl2-dev Libapache2-mod-perl2-doc perl postfix make gcc g++ 
CentOS version:
$ su doyum install httpd mod_ssl mysql-server mysql php-mysql gcc perl* mod_perl-devel

Note: Run all commands under the shell or terminal and make sure that you operate the machine with the root user (sudo).

2. Launch Apache Service

You have followed the above steps to install the Apache service, so we now need to configure the Apache service and run it. We need to use Sodo or root to knock the command to complete it, we first switch to the root connection.

$ sudo-s

We need to open port 80 in the firewall and save the changes.

# iptables-i input-p TCP--dport 80-j ACCEPT# service Iptables Save

Now we need to start the service:

CentOS version:


Let's make sure Apache starts up every time you restart the machine:

#/sbin/chkconfig httpd on

Ubuntu version:


Now, as we have launched our Apache HTTP service, we can open the Apache service under the default address.

3. Configure the MySQL server

Now we need to start our MySQL service:

CentOS version:

# chkconfig mysqld on# service start mysqld

Ubuntu version:


Log in with the root user to connect to MySQL and create a database for Bugzilla, change your MySQL password to what you want, and use it later when configuring Bugzilla.

Two versions of CentOS 6.5 and Ubuntu 14.04 trusty:

"MyPassword"; #mysql > Quit
Note: Remember the database name and MySQL password, which we will use later. 4. Install and configure the Bugzilla

Now that all of our required packages have been set up and running, we need to configure our bugzilla.

So, first we want to download the latest version of the Bugzilla package, here I downloaded the version 4.5.2.

Use the Wget tool to download the shell or terminal:  

You can also download it from the official website.

Extract the files from the downloaded Bugzilla compressed package and rename them:
# tar zxvf bugzilla-4.5.2.tar.gz-c/var/www/html/# cd/var/www/html/# mv-v bugzilla-4.5.2 bugzilla 

Note: here, /var/www/html/bugzilla/ is the bugzilla home directory .

Now, let's configure Buzilla:

# cd/var/www/html/bugzilla/

After the check is complete, we find that some components are missing and we need to install them for the following commands:

# Cd/var/www/html/bugzilla# perl

This step will take a little time to download and install all dependent programs, and then run the command again to verify that there are no missing packages.

Now we need to run the following command, which will automatically generate a file named Localconfig under the/var/www/html/bugzilla path.


Confirm that you have just entered the correct database name, user, and password in the Localconfig file.

# Nano./localconfig#

If all goes well, should now be able to successfully configure Bugzilla.

Now we need to add bugzilla to our Apache configuration file. Then we need to open the/etc/httpd/conf/httpd.conf file (CentOS version) or the/etc/apache2/apache2.conf file (Ubuntu version) with a text editor:

CentOS version:

# nano/etc/httpd/conf/httpd.conf

Ubuntu version:

# Nano etc/apache2/apache2.conf

Now, we need to configure the Apache server, we want to add the following configuration to the configuration file:

<VirtualHost *:80>  documentroot/var/www/html/bugzilla/</virtualhost>  <Directory/var/www/html/bugzilla> AddHandler cgi-script. CGI Options + Indexes +execcgi directoryindex index.cgi allowoverride Limit FileInfo Indexes</directory>< /c19> 

Next, we need to edit the. htaccess file and use the "#" comment to drop the top "options-indexes" line.

Let's restart our Apache service and test our installation.

CentOS version:

# service httpd restart

Ubuntu version:

# service Apache2 restart

This way, our bugzilla is ready to get bug reports on our Ubuntu 14.04 Lts and CentOS 6.5, and you can browse the Bugzilla by using the local loopback address or the IP address on your Web browser.


Arun Pyasi Translator: Ztinoz proofreading: Wxy

This article by LCTT original translation, Linux China honors launch

    • This article is from: Linux Learning Tutorial Network

How to install Bugzilla 4.4 on Ubuntu/centos 6.x

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.