Install Bugzilla 4.4 On 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 is highly adaptable 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
The installation of Bugzilla is equivalentSimple. 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:$sudoapt-getinstallapache2mysql-serverlibapache2-mod-perl2libapache2-mod-perl2-devlibapache2-mod-perl2-docperlpostfixmakegccg++
CentOS version:$sudoyuminstallhttpdmod_sslmysql-servermysqlphp-mysqlgccperl*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 serviceYou 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-IINPUT-ptcp--dport80-jACCEPT#serviceiptablessave
Now, we need to start the service:
CentOS version:
#servicehttpdstart
We will make sure that Apache will be started together every time you restart the machine:
#/sbin/chkconfighttpdon
Ubuntu version:
#serviceapache2start
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 serverNow we need to start our MySQL service:
CentOS version:
#chkconfigmysqldon#servicestartmysqld
Ubuntu version:
#servicemysql-serverstart
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-uroot-p#password:(You'llneedtoenteryourpassword)#mysql>createdatabasebugs;#mysql>grantallonbugs.*toroot@localhostidentifiedby"mypassword";#mysql>quit
Note: Remember the Database Name and mysql password. We will use them later. 4. install and configure BugzillaNow 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:
wgethttp://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:#tarzxvfbugzilla-4.5.2.tar.gz-C/var/www/html/#cd/var/www/html/#mv-vbugzilla-4.5.2bugzilla
Note: Here,/Var/www/html/bugzilla/isBugzilla main directory.
Now, let's configure buzilla:
#cd/var/www/html/bugzilla/
./Checksetup. pl -- check-modulesAfter 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#perlinstall-module.pl--all
This step will take a little time to download and install all the dependent programs, and then run againChecksetup. pl -- check-modules command to verify whether there is anything 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:
#nanoetc/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>AddHandlercgi-script.cgiOptions+Indexes+ExecCGIDirectoryIndexindex.cgiAllowOverrideLimitFileInfoIndexes</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:
#servicehttpdrestart
Ubuntu version:
#serviceapache2restart
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.
Via: http://linoxide.com/tools/install-bugzilla-ubuntu-centos/
Author: Arun Pyasi Translator: ZTinoZ Proofreader: wxy
This article was originally translated by LCTT and launched with the Linux honor in China