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

Source: Internet
Author: User
Tags bug tracking system

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

Here we will show you how to install Bugzilla on a Ubuntu 14.04 or CentOS 6.5/7. Bugzilla is a web-based bug tracking software used to track defect databases. It is also a free and open-source software (FOSS ), its bug Tracking System allows individuals and development groups to effectively record some of the highlights of their products. Although it is "free", Bugzilla still has the "Precious" features that many similar products do not have. Therefore, Bugzilla quickly becomes the favorite bug management tool of thousands of organizations around the world.

Bugzilla has strong adaptability to different application scenarios. Today they are applied in different IT fields, such as system management deployment management, chip design and deployment problem tracking (Pre-and Post-manufacturing), and for those such as RedHat, NASA, famous companies such as Linux-Mandrake and VA Systems provide software and hardware bug tracking.

1. Install the dependency program

Installing Bugzilla is quite simple. This article specifically targets Ubuntu 14.04 and CentOS 6.5 (but also applies to older versions ).

To obtain and run Bugzilla on Ubuntu or CentOS, We need to install the Apache network server (enable SSL), MySQL database server, and some tools to install and configure Bugzilla.

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

  • Perl (5.8.1 or later)
  • MySQL
  • Apache2
  • Bugzilla
  • Perl Module
  • Use apache Bugzilla

As we mentioned in this article, we will describe the installation process of Ubuntu 14.04 and CentOS 6.5/7, which will be divided into two parts.

To install Bugzilla on your Ubuntu 14.04 LTS and CentOS 7 machines, follow these steps:

Prepare the required dependency packages:

Run the following command to install necessary packages:

Ubuntu version:

$ sudo apt-get install apache2 mysql-server libapache2-mod-perl2 libapache2-mod-perl2-dev libapache2-mod-perl2-doc perl postfix make gcc g++

CentOS version:

$ sudo yum install httpd mod_ssl mysql-server mysql php-mysql gcc perl* mod_perl-devel

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

2. Start the Apache service

You have installed the apache service according to the preceding steps. Now we need to configure the apache service and run it. We need to use sodo or root to complete the command. We need to switch to the root connection first.

$ sudo -s

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:

# service httpd start

We will make sure that Apache will be started together every time you restart the machine:

# /sbin/chkconfig httpd on

Ubuntu version:

# service apache2 start

Now, because we have started apache's http service, we can open the apache service at the default 127.0.0.1 address.

3. Configure the MySQL server

Now we need to start our MySQL service:

CentOS version:

# chkconfig mysqld on# service start mysqld

Ubuntu version:

# service mysql-server start

Log on to MySQL as the root user and create a database for Bugzilla. Change your mysql password to what you want and use it later when configuring Bugzilla.

CentOS 6.5 and Ubuntu 14.04 Trusty versions:

# mysql -u root -p# password: (You'll need to enter your password)# mysql > create database bugs;# mysql > grant all on bugs.* to root@localhost identified by "mypassword";#mysql > quit

Note: Remember the Database Name and mysql password. We will use them later.

4. install and configure Bugzilla

Now that all the required packages have been set and run, we need to configure our Bugzilla.

First, we need to download the latest version of the Bugzilla package. Here we download version 4.5.2.

Use the wget tool to download from a shell or terminal:

wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.5.2.tar.gz

You can also download it from the official website. Http://www.bugzilla.org/download/

Extract the file from the downloaded bugzilla package and rename it:

# 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 main directory of Bugzilla.

Now, let's configure buzilla:

# cd /var/www/html/bugzilla/

 

./Checksetup. pl -- check-modules

After the check, we will find that some components are missing. We need to install them and use the following command to implement them:

# cd /var/www/html/bugzilla# perl install-module.pl --all

This step takes a little time to download and install all the dependent programs, and then run the checksetup. pl -- check-modules command again to verify whether the installation is missing.

Run the following command to automatically generate a file named localconfig in the/var/www/html/bugzilla path.

# ./checksetup.pl

Check whether the database name, user, and password you entered in the localconfig file are correct.

# nano ./localconfig# checksetup.pl

If everything is normal, checksetup. pl should now successfully configure Bugzilla.

Now we need to add Bugzilla to our Apache configuration file. Then, open the/etc/httpd/conf/httpd. conf file (CentOS version) or/etc/apache2/apache2.conf file (Ubuntu version) in the 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 need 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>

Next, we need to edit the. htaccess file and comment out the top line "Options-Indexes".

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

CentOS version:

# service httpd restart

Ubuntu version:

# service apache2 restart

In this way, our Bugzilla is ready to obtain the bug report on our Ubuntu 14.04 LTS and CentOS 6.5, you can browse the bugzilla through the local loopback address or the IP address on your web browser.

Release of all Bugzilla updates to fix important vulnerabilities

Install Bugzilla 4.2 On Fedora 16

Bugzilla Installation Process

Configure Bugzilla in Debian7 & Ubuntu 13.10

For details about Bugzilla, click here
For Bugzilla: click here

59

Related Article

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: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.