Install Bugzilla 4.4 On CentOS

Source: Internet
Author: User
Tags bug tracking system

Install Bugzilla 4.4 On CentOS

For open-source tools, Bugzilla is a bug tracking software that tracks defect databases based on web records. It is also a free and open-source software (FOSS ), its bug Tracking System allows individuals and development companies to effectively record product highlights. Despite being a "free" tool, Bugzilla still has many other similar products with no features. Therefore, Bugzilla has become a bug management tool that thousands of users and enterprises like around the world.

It is understood that Bugzilla can provide applications for different use cases. In various IT fields, such as deployment management in system management, problem tracking in chip design and deployment (Pre-and Post-manufacturing), for those such as Redhat, NASA, linux-Mandrake, VASystems, and other companies provide software and hardware bug tracking.

You can use the linoxide website to describe the Bugzilla4.4 on Ubuntu/CentOS. (The application code is from linoxide.com)

1. Installation program Requirements

Installing Bugzilla is quite simple. For Ubuntu14.04 and CentOS6.5 (but also for older versions ). To obtain and run Bugzilla on Ubuntu or CentOS, first install the Apache network server (enable SSL), MySQL database server, and some tools to install and configure Bugzilla.

You need to install and use Bugzilla on the server. The following programs are preferred:

● Perl (5.8.1 or later)

● MySQL

● Apache2

● Bugzilla

● Perl Module

● Use apache's Bugzilla

The Installation Process of Ubuntu14.04 and CentOS6.5/7 is introduced. Follow these steps to install Bugzilla on Ubuntu14.04LTS and CentOS7:

To prepare the required dependent package, run the following command to install the 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 the root user (sudo) operates the machine.

2. Start the Apache service

2. Start the Apache service

If you have installed the apache service following the preceding steps, you need to configure the apache service and run it. You need to use the sodo or root command to complete it, first switch to the root connection status.

\$ sudo -s

Enable port 80 in the firewall and save the changes. Now, we need to start the service:

# iptables -I INPUT -p tcp --dport 80 -j ACCEPT# service iptables save

CentOS version:

# service httpd start

Make sure that Apache is started when the machine is restarted every time:

# /sbin/chkconfig httpd on

Ubuntu version:

# service apache2 start

Since the apachehttp service has been started, you can open the apache service at the default 127.0.0.1 address.

3. Configure the MySQL server

Now we need to start the 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. Set the mysql password to make sure it is valid. It will be used later when you configure Bugzilla.

CentOS6.5 and Ubuntu14.04Trusty 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.

3. install and configure Bugzilla

4. install and configure Bugzilla

All the settings have been completed and run. First, we need to download the latest version of Bugzilla4.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 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.

# cd /var/www/html/bugzilla/

To configure buzilla: after the check is complete, we will find that some components are missing and you need to install them using the following command:

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

Download and install all programs, and run the checksetup. pl -- check-modules command again to verify if any program is missing. Run the following command to automatically generate a file named localconfig in the/var/www/html/bugzilla path.

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

# nano ./localconfig# checksetup.p

If everything is normal, checksetup. pl will successfully configure Bugzilla. You 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 and 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>

Edit the. htaccess file and comment out the "Options-Indexes" line at the top with "#". restart our apache service and test the installation.

CentOS version:

# service httpd restart

Ubuntu version:

# service apache2 restart

After the Bugzilla is installed, you can obtain the bug report on Ubuntu14.04LTS and CentOS6.5. You can browse the bugzilla through the local loopback address or the IP address on the web browser.

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.