How to Install Bugzilla on CentOS 6

Status: This OS is no longer supported

This article, “How to Install Bugzilla on CentOS 6,” covers a version of CentOS that reached end of life (EOL). covers a version of CentOS that reached end of life (EOL). The developing company no longer supports it. As such, we no longer maintain this guide. If you are currently operating a server running CentOS 6, we highly recommend contacting RoseHosting’s fully managed support. They can upgrade or migrate you to a supported version of AlmaLinux.

Installing Bugzilla

bugzilla_on_centos_6_4_vpsBugzilla is the most popular bug-tracking system, designed to help software development groups keep track of their software development.

It is a free and feature-rich application that finds itself at the service of a large number of teams and organizations, helping them organize and synchronize their development work.

This article will guide you through the installation process of Bugzilla on a CentOS VPS.

First, let’s begin by installing the necessary packages. Type the following:

# yum install perl* mod_perl-devel -y

After the installation of the necessary packages is over, execute the following command in order to download the latest version of Bugzilla (adapt the URL to match the current version):

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

Unpack it to the desired directory:

# tar zxvf bugzilla-4.2.2.tar.gz -C /var/www/html/

Enter the directory that contains the unpacked Bugzilla installation and rename the “bugzilla-${VERSION}” directory to something more convenient for web access:

# cd /var/www/html/

# mv -v bugzilla-4.4 bugzilla

Login to mysql using ‘root’ as user and your mysql ‘root’ password, and create a database for the Bugzilla installation:

# mysql -uroot -p
mysql> create database bugzilla_DB;

Grant all privileges on the database you just created to a newly created user and identify it by his own password:

mysql> grant all on bugzilla_DB.* to some_user@localhost identified by 'random_password';

and exit mysql:

mysql> \q

Run the following command to find the necessary modules:

# ./checksetup.pl

After the checksetup.pl script finishes, execute the following to install the required and optional modules:

# /usr/bin/perl install-module.pl --all

Once the modules are installed, run the checksetup.pl script again to generate the localconfig file:

# ./checksetup.pl

Use your favorite text editor (in this case vim) and edit the $db_name, $db_user and $db_pass entries in the ‘localconfig’ file and fill them with the mysql database information we set earlier:

# vim ./localconfig

Again, run the checksetup script to set initial configuration:

# ./checksetup.pl

Next, these few lines need to be appended to the apache config file:

# vim /etc/httpd/conf/httpd.conf


AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit FileInfo Indexes

Save the file and execute the following command to restart the webserver:

# service httpd restart

Congratulations

That’s it! Open http:///bugzilla and start organizing your software development!

NOTE: In case of “500 Internal Server Error” on your first try to access Bugzilla, please check for the “Options” line in the .htaccess file and comment it out.

Of course, if you are one of our Linux VPS Hosting customers, you don’t have to do any of this, simply ask our admins, sit back and relax. Our admins will install Bugzilla for you immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

3 thoughts on “How to Install Bugzilla on CentOS 6”

Leave a Comment