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:
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:
CentOS version:$ su doapt-get install apache2 mysql-server libapache2-mod-perl2 Libapache2-mod-perl2-dev Libapache2-mod-perl2-doc perl postfix make gcc g++
$ 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.
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:
Let's make sure Apache starts up every time you restart the machine:
#/sbin/chkconfig httpd on
Now, as we have launched our Apache HTTP service, we can open the Apache service under the default 127.0.0.1 address.3. Configure the MySQL server
Now we need to start our MySQL service:
# chkconfig mysqld on# service start mysqld
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:
Note: Remember the database name and MySQL password, which we will use later. 4. Install and configure the Bugzilla"MyPassword"; #mysql > Quit
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. http://www.bugzilla.org/download/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:
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 install-module.pl--all
This step will take a little time to download and install all dependent programs, and then run the checksetup.pl--check-modules 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# checksetup.pl
If all goes well, checksetup.pl 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:
# 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.
# service httpd restart
# 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
How to install Bugzilla 4.4 on Ubuntu/centos 6.x