Cody Blog

Install Bugzilla on CentOS 6.3 step by step

Install required packages

$ yum install perl* httpd* mysql-server* mod_perl-devel -y

Download the latest bugzilla 4.2.2 (2012/8)

$ cd /var/www/html
$ wget
$ tar zxvf bugzilla-4.2.2.tar.gz
$ mv bugzilla-4.2.2 bugzilla

Start mysql server

$ service mysqld start

Set mysql root password via mysql_secure_installation**

$ sudo /usr/bin/mysql_secure_installation

Create a DB for bugzilla mysql login with root

$ mysql -u root -p

> exit

Run checksetup script to find needed modules

$ ./

Install required modules

$  /usr/bin/perl ––all

Run checksetup script again to generate localconfig file

$ ./

Modify localconfig  for  $db_name, $db_user and $db_pass based on previous settings

$ vi ./localconfig

Run checksetup script to set initial configuration

$ ./

Apache setup, modify httpd.conf, append the following config :

$ vi /etc/httpd/conf/httpd.conf

<Directory /var/www/html/bugzilla>

AddHandler cgi-script .cgi

Options +Indexes +ExecCGI

DirectoryIndex index.cgi

AllowOverride Limit FileInfo Indexes


Restart Apache 

$ service httpd restart

Chkconfig httpd and mysql 

$ chkconfig httpd on 
$ chkconfig mysqld on

Set iptables for httpd 

$ iptables -I INPUT -p tcp &ndash;&ndash;dport 80 -j ACCEPT

That’s it, Open http://localhost/bugzilla and enjoy it.