Method of installing database monitoring program bugzilla on Linux system

Time:2022-5-8

Here, we will show how to install bugzilla on an Ubuntu 14.04 or CentOS 6.5/7. Bugzilla is a web-based bug tracking software used to record and track the defect database. It is also a free and open source software (FOSS). Its bug tracking system allows individuals and development groups to effectively record some prominent problems of their products. Although it is “free”, bugzilla still has many “precious” features that other similar products do not have. As a result, bugzilla quickly became the favorite bug management tool for thousands of organizations around the world.

Bugzilla is very adaptable to different scenarios. Today, they are applied in various IT fields, such as deployment management in system management, chip design and deployment problem tracking (pre manufacturing and post manufacturing), as well as providing software and hardware bug tracking for famous companies such as RedHat, NASA, Linux Mandrake and VA systems.
1. Install dependent programs

Installing bugzilla is fairly simple. This article is specifically for Ubuntu 14.04 and CentOS 6.5 (but also for older versions).

In order to obtain and run bugzilla in Ubuntu or CentOS system, we need to install Apache Web 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 above)
        MySQL
        Apache2
        Bugzilla
    Perl module
    Bugzilla using Apache

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

Here are the steps to install bugzilla on your Ubuntu 14.04 lts and CentOS 7 Machines:

Prepare the required dependent packages:

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

Ubuntu version:

Copy code

The code is as follows:

$ 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:

Copy code

The code is as follows:

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

Note: make sure that all users are running the sudo command on your terminal.
2. Start Apache service

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

Copy code

The code is as follows:

$ sudo -s

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

Copy code

The code is as follows:

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

Now we need to start the service:

CentOS version:

Copy code

The code is as follows:

# service httpd start

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

Copy code

The code is as follows:

# /sbin/chkconfig httpd on

Ubuntu version:

Copy code

The code is as follows:

# service apache2 start

Now, since we have started our Apache HTTP service, we can open the Apache service under the default 127.0.0.1 address.
3. Configure MySQL server

Now we need to start our MySQL service:

CentOS version:

Copy code

The code is as follows:

# chkconfig mysqld on
# service start mysqld

Ubuntu version:

Copy code

The code is as follows:

# service mysql-server start

2015612180850180.png (405×56)

Log in to MySQL with root user and create a database for bugzilla. Change your MySQL password to what you want. You will use it later when configuring bugzilla.

CentOS 6.5 and Ubuntu 14.04 Trust:

Copy code

The code is as follows:

# mysql -u root -p</p>
<p># password: (You’ll need to enter your password)</p>
<p># mysql > create database bugs;</p>
<p># mysql > grant all on bugs.* to [email protected] identified by “mypassword”;</p>
<p>#mysql > quit

Note: please remember the database name and MySQL password, which we will use later.
4. Install and configure bugzilla

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

Well, first of all, we need to download the latest version of bugzilla package. Here I download version 4.5.2.

Use WGet tool to download on shell or terminal:

Copy code

The code is as follows:

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:

Copy code

The code is as follows:

# tar zxvf bugzilla-4.5.2.tar.gz -C /var/www/html/</p>
<p># cd /var/www/html/</p>
<p># mv -v bugzilla-4.5.2 bugzilla

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

Now let’s configure buzilla:

Copy code

The code is as follows:

# cd /var/www/html/bugzilla/</p>
<p>./checksetup.pl –check-modules

2015612180912385.png (300×198)

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

Copy code

The code is as follows:

# 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 checksetup again PL — check modules command to verify whether there is anything missing.

Now we need to run the following command, which will automatically generate a file named localconfig in the path of / var / www / HTML / bugzilla.

Copy code

The code is as follows:

# ./checksetup.pl

Make sure that the database name, user and password you just entered in the localconfig file are correct.

Copy code

The code is as follows:

# nano ./localconfig</p>
<p># checksetup.pl

2015612180940271.png (439×82)

If everything is normal, check setup PL should now successfully configure bugzilla.

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

CentOS version:

Copy code

The code is as follows:

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

Ubuntu version:

Copy code

The code is as follows:

# nano etc/apache2/apache2.conf

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

Copy code

The code is as follows:

<VirtualHost *:80>
DocumentRoot /var/www/html/bugzilla/
</VirtualHost></p>
<p><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 Htaccess file and comment out the line “options – indexes” at the top with “#”.

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

CentOS version:

Copy code

The code is as follows:

# service httpd restart

Ubuntu version:

Copy code

The code is as follows:

# service apache2 restart

2015612181001792.png (985×689)

In this way, our bugzilla is ready to get bug reports on our Ubuntu 14.04 lts and CentOS 6.5. You can browse bugzilla through the local loopback address or the IP address on your web browser.

Recommended Today

Description of the Chinese version of Apache’s latest official configuration file

Apache latest official configuration file Chinese version#URL:http://httpd.apache.org/docs-2.0/> for detailed information aboutserviceimplementhttp://httpd.apache.org/docs-2.0Learn more about directivesoperationDirective (global environment variable)serviceOr defaultserviceIt responds to requests outside the virtual hostset upThis allows requests to different IP addresses or host names to be processed by the same Apache service # managerserviceThe handler will process as an absolute path. If it does […]