Hyper Expert /Blog

HOW-TO: Install the latest Bugzilla on CentOS

I just went through installing Bugzilla on CentOS at work. I had to follow several guides online in order to get it installed and configured correctly. I thought I combine all of my findings into one simple guide.

I will be installing the latest Bugzilla at the moment which is 4.5.2 on a fresh install of CentOS 6.5 64-Bit.

Ok, Lets get started. Launch Terminal and switch to root:



In order to get Bugzilla up and running, we need to install Apache, MySql, and also gcc for compiling the Bugzilla packages.

Installing Apache

yum install httpd mod_ssl

Install MySql in Bugzilla

After the install is done, open port 80 in the Firewall

iptables -I INPUT -p tcp --dport 80 -j ACCEPT

Save the changes to the firewall

service iptables save

Start the Apache service

service httpd start

Lets make sure that Apache will restart every time you restart the machine:

/sbin/chkconfig httpd on

Apache on Bugzilla

Lets test our Apache server by opening a browser windows and type our localhost IP,

Apache on CentOS

Install MySql

install mysql-server mysql php-mysql

MySql on CentOS

Lets make sure MySql starts at boot

chkconfig mysqld on

Auto start MySql on CentOS

Start MySql

service start mysqld

Start MySql in CentOS

Set up MySql for root access

mysql -u root

Set the root user password

SET PASSWORD FOR 'root'@'localhost' = PASSWORD('some_new_password');

Once done, exit MySql


Install gcc and prep packages

yum install gcc perl* mod_perl-devel

Install gcc in CentOS

Install Bugzilla

Now that we have all the prep work done and ready, lets go ahead and download the latest Bugzilla

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

Download latest Bugzilla for CentOS

unpack the download to the apache directory

tar zxvf bugzilla-4.5.2.tar.gz -C /var/www/html/

browse to the directory we just unpacked the file to and rename it to bugzilla

cd /var/www/html/
mv -v bugzilla-4.4 bugzilla

Login to MySql as root with the root password we set up earlier and create a new Database for Bugzilla

mysql -uroot -p
create database bugzilla_DB;

Grant all privileges to the database we just created to a newly created database user that we will be calling bugz and password bugz

grant all on bugzilla_DB.* to bugz@localhost identified by 'bugz';

Exit MySql


We should be in the bugzilla directory still. Lets check for all required bugzilla modules before the install:


After the check is done, we will see some missing modules that needs to be installed:

Bugzilla install on CentOS

Type the command below to install all missing modules automatically:

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

Lets do a check again to make sure all the modules did install


If all is good, we will get a message to edit the localconfig file for installation.

Bugzilla install on CentOS

Edit the localconfig file with your favorite text editor. Since I have GUI, I used gedit for a simple quick edit

gedit ./localconfig

Make sure you input the correct database name, user, and password we created earlier in the localconfig file

Bugzilla install in CentOS

Run ./checksetup.pl again


If all is well, checksetup.pl should now successfully configure Bugzilla.

Bugzilla install on CentOS

Now we need to add Bugzilla to our Apache config file. Open httpd.conf with a text editor

gedit /etc/httpd/conf/httpd.conf

Add the following to the end of httpd.conf file

<VirtualHost *:80>
     DocumentRoot /var/www/html/bugzilla/

<Directory /var/www/html/bugzilla>
     AddHandler cgi-script .cgi
     Options +Indexes +ExecCGI
     DirectoryIndex index.cgi
     AllowOverride Limit FileInfo Indexes

Bugzilla install on CentOS

Lastly, we need to edit .htaccess file and comment out “Options -Indexes” line at the top by adding “#”

Bugzilla install on CentOS

Lets restart our apache server and test our installation

service httpd restart

Bugzilla 4.5.2 on CentOS 6.5

If all goes well, we should see our successfully installed Bugzilla when we browse to localhost 🙂

Hope this helps. Let me know if you have any questions.


Hi, my name is Ali. I am a Systems Engineer. I live in the beautiful Evergreen state. I have a Bachelor degree of science in Information Technology with a handful of accompanying I.T. certificates. I also have a degree in Computer Networking. I am an Apple Certified Technician, Microsoft MCITP and a Linux expert.


  1. Robert Black · September 3, 2014

    Everything here worked great except I cannot get the site to launch. I continue to get the following error

    AH01215: (13)Permission denied: exec of ‘/var/www/html/bugzilla/index.cgi’ failed

    If I move the index.cgi to cgi-bin I can get it to attempt to run (gets dependency errors as would be expected).

    I have verified that all files and directories are owned by apache:apache and have permissions set to 755.

    Any help would be appreciated.

    This is on a CENTOS 7/apache 2.4 install.

  2. Maura · September 23, 2014

    Thank you!

  3. miguel · October 9, 2014

    Excelente. thxs.

  4. mono · November 6, 2014

    Robert, the permission problem is SElinus. setenforce 0 in the terminal and try again

  5. Sunny · November 10, 2014

    My Gmail not work with Bugzilla
    after installing each and everything

  6. Vivek · November 20, 2014

    Awesome.. this article helped me 3 times! thanks!!

  7. Abhishek Chordia · November 28, 2014

    I am getting below error while accessing the URL : http://localhost after restart the httpd on centos

    [Fri Nov 28 18:12:13.966723 2014] [cgi:error] [pid 321] [client] AH01215: (13)Permission denied: exec of ‘/var/www/html/bugzilla-4.5.6/index.cgi’ failed

  8. pandy · November 29, 2014

    lot n lot of thanks……….buddy

  9. Chathu · May 7, 2015

    Thank You Million Times

  10. Ahmed Elsayed · June 7, 2015

    After install bugzilla and can’t access it through URL as it ask me for administrator account , it there any default administrator for access.

  11. akhil · July 23, 2015

    Cool man. Appreciate this.

  12. vishal khanna · September 8, 2015

    How can we run Bugzilla and apache together. Please share setting of config file.

    Many thanks in adavnce !!

    All the best 🙂

  13. Jaja · March 13, 2016

    When i try to access i can see set of files only please help me bugzilla main page is not loading.

  14. Vivek · June 27, 2016

    excellent, thanks a lot

  15. vivek · July 8, 2016

    What changes need to be done to run 2 Bugzilla instances on the same server?


Would you like to share your thoughts?