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.
yum install httpd mod_ssl
After the install is done, open port 80 in the Firewall
iptables -I INPUT -p tcp --dport 80 -j ACCEPTSave the changes to the firewall
service iptables saveStart the Apache service
service httpd startLets make sure that Apache will restart every time you restart the machine:
/sbin/chkconfig httpd on
Lets test our Apache server by opening a browser windows and type our localhost IP, 127.0.0.1:
yum install mysql-server mysql php-mysql
Lets make sure MySql starts at boot
chkconfig mysqld on
service mysqld start
Set up MySql for root access
mysql -u rootSet the root user password
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('some_new_password');Once done, exit MySql
exitInstall gcc and prep packages
yum install gcc perl* mod_perl-devel
Now that we have all the prep work done and ready, lets go ahead and download the latest Bugzilla
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
mv -v bugzilla-4.4 bugzillaLogin 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
\qWe should be in the bugzilla directory still. Lets check for all required bugzilla modules before the install:
./checksetup.plAfter the check is done, we will see some missing modules that needs to be installed:
Type the command below to install all missing modules automatically:
/usr/bin/perl install-module.pl --allLets do a check again to make sure all the modules did install
./checksetup.plIf all is good, we will get a message to edit the localconfig file for installation.
Edit the localconfig file with your favorite text editor. Since I have GUI, I used gedit for a simple quick edit
gedit ./localconfigMake sure you input the correct database name, user, and password we created earlier in the localconfig file
Run ./checksetup.pl again
./checksetup.plIf all is well, checksetup.pl should now successfully configure Bugzilla.
Now we need to add Bugzilla to our Apache config file. Open httpd.conf with a text editor
gedit /etc/httpd/conf/httpd.confAdd the following to the end of httpd.conf file
Lastly, we need to edit .htaccess file and comment out “Options -Indexes” line at the top by adding “#”
Lets restart our apache server and test our installation
service httpd restart
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.