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 http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.2.2.tar.gz
$ 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

> CREATE DATABASE bugs ;
> exit

Run checksetup script to find needed modules

$ ./checksetup.pl

Install required modules

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

Run checksetup script again to generate localconfig file

$ ./checksetup.pl

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

$ vi ./localconfig

Run checksetup script to set initial configuration

$ ./checksetup.pl

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

</Directory>

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.

bugzilla

Comments