How to Install Bugzilla on CentOS/Redhat

Bugzilla is a  software tool  which is developed  to manage software development Lifecycle (SDL). Here we are going to discuss about that how we can install it on CentOS/Redhat. The following steps helps us that How to install the Bugzilla on CentOS/Redhat.

Bugzilla Installation and Configuration guide have prepared for following platform and services.

Operating System       : CentOS release 6.5 (Server) 32bit

Bugzilla               : bugzilla-4.4.4

IP Address             : 192.168.1.68

Bugzilla Installation and configuration Steps:

Step 1 : Install dependency software packages

Step 2 : Download and Install Bugzilla

Step 3 : Configuration of Bugzilla

Let us see the steps in Details :

Step 1 : Install dependency software packages

Install following dependency software packages using the yum command line utility.

#yum install mysql mysql-devl php php-devel httpd httpd-devel  gd gd-devel php-gd perl gcc cpan

Step 2 : Download and Install Bugzilla

Switch to /opt folder, you can download any of the suitable location within the file system.

2.1  Change the Directory to /opt.

#cd /opt

Download latest software package from following URL

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

2.2  Extract bugzilla-4.4.4.tar.gz

[root@experts opt]#tar -zxvf  bugzilla-4.4.4.tar.gz

2.3 Move and rename bugzilla source from /opt/bugzilla-4.4.4 to /var/www/html/bugzilla

[root@experts opt]#mv bugzilla-4.4.4 /var/www/html/bugzilla

switch to /var/www/html/bugzilla

[root@experts opt]# cd /var/www/html/bugzilla

2.4  Change the file permissions

[root@experts]#chown -R apache:apache /var/www/html/bugzilla

2.5  Below script will show you  perl software dependency  list

[root@experts bugzilla]# ./checksetup.pl

Below command will install all the Perl modules, this may take a while to install.

[root@experts bugzilla]#/usr/bin/perl install-module.pl –all

Note: if you encounter errors , install following packages(yum install cpan gcc)

following are optional perl modules

[root@experts bugzilla]#/usr/bin/perl install-module.pl GD

[root@experts bugzilla]#/usr/bin/perl install-module.pl mod_perl2

[root@experts bugzilla]#chkconfig mysqld on

[root@experts bugzilla]#chkconfig httpd on

[root@experts bugzilla]#service mysqld start

[root@experts bugzilla]#service httpd start

Step 3 : Configuration of Bugzilla

3.1  modify apache configuration file httpd.conf , add below parameter.

[root@experts bugzilla]#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>

Save & Exit!

[root@experts bugzilla]#service httpd restart

3.2  Edit my.cnf file and the following lines.

[root@experts bugzilla]#vi /etc/my.cnf

[mysqld]

# Allow packets up to 8MB

max_allowed_packet=8M

Save and Exit!

[root@experts bugzilla]#service mysqld restart

3.3  Login to mysql server

[root@experts bugzilla]#mysql -u root -p

mysql>create database bugs;

mysql> GRANT SELECT, INSERT,UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES,CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY ‘Experts’;

execute below mysql statement after bugzilla installation.

mysql> use bugs;

mysql> ALTER TABLE attachments AVG_ROW_LENGTH=1000000, MAX_ROWS=20000;

mysql>exit;

3.4  configure the database settings like db, user , password and host as created in above step 3.3

[root@experts bugzilla]#vi /var/www/html/bugzilla/localconfig

re-run checksetup.pl to proceed on installation .

[root@experts]# cd /var/www/html/bugzilla

[root@experts bugzilla]# ./checksetup.pl

3.5 

[root@experts]#crontab -e

5 0 * * * cd /var/www/html/bugzilla && ./collectstats.pl

55 0 * * * cd /var/www/html/bugzilla && ./whineatnews.pl

Save and Exit!

[root@experts]#service crond restart

3.6  Invoke the url from a browser http://IP/bugzilla

(error: /var/www/html/bugzilla/.htaccess: Options not allowed here) .

copy / replace  below configuration contents to .htaccess

#vi /var/www/html/bugizlla/.htaccess

<FilesMatch (\.pm|\.pl|\.tmpl|localconfig.*)$>

  deny from all

</FilesMatch>

<IfModule mod_expires.c>

<IfModule mod_headers.c>

<IfModule mod_env.c>

  <FilesMatch (\.js|\.css)$>

    ExpiresActive On

    # According to RFC 2616, “1 year in the future” means “never expire”.

    # We change the name of the file’s URL whenever its modification date

    # changes, so browsers can cache any individual JS or CSS URL forever.

    # However, since all JS and CSS URLs involve a ? in them (for the changing

    # name) we have to explicitly set an Expires header or browsers won’t

    # *ever* cache them.

    ExpiresDefault “now plus 1 years”

    Header append Cache-Control “public”

  </FilesMatch>

 

  # This lets Bugzilla know that we are properly sending Cache-Control

  # and Expires headers for CSS and JS files.

  SetEnv BZ_CACHE_CONTROL 1

</IfModule>

</IfModule>

</IfModule>

For more Detail you can watch the Video and also subscribe for more Videos.

Both comments and pings are currently closed.

Comments are closed.

Copyright ©Solutions@Experts.com
Copyright © NewWpThemes Techmark Solutions - www.techmarksolutions.co.uk