Bugzilla is server software designed to help you manage software development.
1. Download latest stable bugzilla version from the website.
2. Disable selinux
# vi /etc/selinux/config
set SELINUX=disabled
3. Install required components
# yum install perl*
# yum install httpd*
# yum install mysql-server*
# yum install mod_perl-devel
4. Check the version of following to check compatibility
# perl -v
# rpm -qa | grep httpd
# rpm -qa | grep mysql
5. Change to the apache directory from where it serves files
# cd /var/www/html/
# tar xvfz bugzilla-4.0.2.tar.gz
6. Rename the directory and set permissions
# mv bugzilla-4.0.2/ bugzilla
# chmod -R 777 bugzilla
7. Switch to bugzilla directory and run checksetup.pl
# cd /var/www/html/bugzilla/
# ./checksetup.pl
8. Install any missing modules
# /usr/bin/perl install-module.pl –all
9. Display all package
# ./checksetup.pl –check-modules
10. Setup accordingly in mysql
Login as root
# mysql -u root -p
Create the database for bugs in the mysql terminal by using the following sql
# create database bugs;
Create the user bugs
# create user bugs identified by ‘password’;
Grant the permissions to user bugs on bugs database
# GRANT ALL PRIVILEGES ON bugs.*TO 'bugs'@'localhost' IDENTIFIED BY 'password';
# GRANT ALL PRIVILEGES ON bugs.*TO 'bugs'@'%' IDENTIFIED BY 'password';
11. Edit localconfig of bugzilla
# cd /var/www/html/bugzilla
# vim localconfig
set the bugs password
$db_pass = ‘password’;
#./checksetup.pl
Enter the e-mail address of the administrator: xxxxxxxxxxxxx
Enter the real name of the administrator: xxxxxxxxxxxxxxxxxxx
Enter a password for the administrator account: xxxxxxxxxxxxxx
Final checksetup.pl execution:
#./checksetup.pl
Now that you have installed Bugzilla,
http://localhost/bugzilla
12. Apache setup
Configure Port and DocumentRoot
Listen 80
DocumentRoot "var/www/html"
Find the line
DirectoryIndex index.html index.html.var
Change it to
DirectoryIndex index.html index.html.var index.cgi
Add the following lines
Options Indexes FollowSymLinks ExecCGI
Add the following lines in httpd.conf below the ScriptAlias section and comment previous Script Alias section including <Directory> of ScriptAlias
##
#Added for bugzilla
##
ScriptAlias /cgi-bin/ "/var/www/html/bugzilla/"
PerlSwitches -w -T
PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl
<Directory /var/www/html/bugzilla>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride All
</Directory>
restart apache:
#/etc/init.d/httpd restart
13. MySql setup
vi /etc/my.cnf
Set below lines in [mysqld] section
max_allowed_packet = 4M
ft_min_word_len=2
Try http://localhost/bugzilla and have fun!
No comments:
Post a Comment