Bugzilla Setup on CentOS


Bugzilla Setup


Download latest stable bugzilla version from the website.


#wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.1.3.tar.gz
Change to the apache directory from where it serves files
#cd /var/www/html/
Unzip the tar here /var/www/html/ so that apache can see it
#tar -xzvf ~/bugzilla-3.4.4.tar.gz
(optional) Rename the directory to hide the version
#mv bugzilla-3.4.4/ bugzilla
Change ownership so that apache can read/write to it
#chown -R apache.apache /var/www/html/bugzilla/
Change to bugzilla directory
#cd /var/www/html/bugzilla/
Run checksetup.pl – this will show you the perl modules missing
# ./checksetup.pl –check-modules
Install gcc (if the linux distro doesn’t already come it), as you will need it to make/compile the modules
#yum install gcc.x86_64
Install dependencies for bugzilla
#yum install mysql-server mod_perl mod_perl-devel httpd-devel graphviz patchutils gcc perl-DateTime perl-Template-Toolkit perl-Email-Send perl-Email-MIME perl-GD perl-Chart perl-Template-GD perl-GDGraph perl-GDTextUtil perl-PatchReader perl-MIME-tools perl-LDAP perl-Authen-SASL perl-RadiusPerl perl-SOAP-Lite perl-JSON-RPC perl-JSON-XS perl-Test-Taint perl-HTML-Scrubber perl-Email-MIME-Attachment-Stripper perl-Email-Reply perl-TheSchwartz perl-Daemon-Generic perl-Math-Random-Secure perl-YAML perl-Class-Inspector perl-CPAN
To install all module required for bugzilla run
# /usr/bin/perl install-module.pl –all
Run the checksetup.pl without any parameters to create a localconfig file.
# ./checksetup.pl
Output will be like this
.
.
.
This version of Bugzilla contains some variables that you may want to
change and adapt to your local settings. Please edit the file
./localconfig and then rerun checksetup.pl.


The following variables are new to ./localconfig since you last ran
checksetup.pl: create_htaccess, webservergroup, use_suexec, db_driver, db_host, db_name, db_user, db_pass, db_port, db_sock, db_check, index_html, cvsbin, interdiffbin, diffpath, site_wide_secret


Change the permissions in case there should be a conflict.
# chmod -R 777 /var/www/html/bugzilla/
Edit localconfig
#vim localconfig
Update the database connection details like username and password
# The DNS name of the host that the database server runs on.
$db_host = ‘localhost’;
# The name of the database
$db_name = ‘bugs’;
# Who we connect to the database as.
$db_user = ‘bugs’;
# Enter your database password here. It’s normally advisable to specify
# a password for your bugzilla database user.
# If you use apostrophe (‘) or a backslash (\) in your password, you’ll
# need to escape it by preceding it with a ‘\’ character. (\’) or (\)
# (Far simpler just not to use those characters.)
$db_pass = ‘password’;
# Sometimes the database server is running on a non-standard port. If that’s
# the case for your database server, set this to the port number that your
# database server is running on. Setting this to 0 means “use the default
# port for my database server.”
$db_port = 0;
# With the introduction of a configurable index page using the
# template toolkit, Bugzilla’s main index page is now index.cgi.
# Most web servers will allow you to use index.cgi as a directory
# index, and many come preconfigured that way, but if yours doesn’t
# then you’ll need an index.html file that provides redirection
# to index.cgi. Setting $index_html to 1 below will allow
# checksetup.pl to create one for you if it doesn’t exist.
# NOTE: checksetup.pl will not replace an existing file, so if you
# wish to have checksetup.pl create one for you, you must
# make sure that index.html doesn’t already exist
$index_html = 1;



Re-run the checksetup.pl
# ./checksetup.pl
###OUTPUT####
* This is Bugzilla 4.1.3 on perl 5.10.1
* Running on Linux 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011


Checking perl modules...
Checking for CGI.pm (v3.51) ok: found v3.59
Checking for Digest-SHA (any) ok: found v5.47
Checking for TimeDate (v2.21) ok: found v2.22
Checking for DateTime (v0.28) ok: found v0.53
Checking for DateTime-TimeZone (v0.71) ok: found v1.08
Checking for DBI (v1.41) ok: found v1.609
Checking for Template-Toolkit (v2.22) ok: found v2.22
Checking for Email-Send (v2.00) ok: found v2.198
Checking for Email-MIME (v1.904) ok: found v1.910
Checking for URI (v1.37) ok: found v1.40
Checking for List-MoreUtils (v0.22) ok: found v0.22
Checking for Math-Random-ISAAC (v1.0.1) ok: found v1.004


Checking available perl DBD modules...
Checking for DBD-Pg (v1.45) not found
Checking for DBD-mysql (v4.001) ok: found v4.013
Checking for DBD-SQLite (v1.29) ok: found v1.35
Checking for DBD-Oracle (v1.19) not found


The following Perl modules are optional:
Checking for GD (v1.20) ok: found v2.44
Checking for Chart (v2.1) ok: found v2.4.4
Checking for Template-GD (any) ok: found v1.56
Checking for GDTextUtil (any) ok: found v0.86
Checking for GDGraph (any) ok: found v1.44
Checking for MIME-tools (v5.406) ok: found v5.502
Checking for libwww-perl (any) ok: found v5.833
Checking for XML-Twig (any) ok: found v3.39
Checking for PatchReader (v0.9.6) ok: found v0.9.6
Checking for perl-ldap (any) ok: found v0.40
Checking for Authen-SASL (any) ok: found v2.13
Checking for RadiusPerl (any) ok: found v0.20
Checking for SOAP-Lite (v0.712) ok: found v0.714
Checking for JSON-RPC (any) ok: found v1.01
Checking for JSON-XS (v2.0) ok: found v2.32
Checking for Test-Taint (any) ok: found v1.04
Checking for HTML-Parser (v3.40) ok: found v3.64
Checking for HTML-Scrubber (any) ok: found v0.09
Checking for Encode (v2.21) ok: found v2.35
Checking for Encode-Detect (any) ok: found v1.01
Checking for Email-MIME-Attachment-Stripper (any) ok: found v1.316
Checking for Email-Reply (any) ok: found v1.202
Checking for TheSchwartz (any) ok: found v1.10
Checking for Daemon-Generic (any) ok: found v0.81
Checking for mod_perl (v1.999022) ok: found v2.000004
Checking for Apache-SizeLimit (v0.93) ok: found v0.96
Checking for mod_headers (any) ok
Checking for mod_expires (any) ok
Checking for mod_env (any) ok
Reading ./localconfig...
Checking for DBD-mysql (v4.001) ok: found v4.013


Adding new table bz_schema...
Initializing bz_schema...
Creating tables...
Converting attach_data maximum size to 100G...
Setting up choices for standard drop-down fields:
priority bug_status rep_platform resolution bug_severity op_sys
Creating ./data directory...
Creating ./data/attachments directory...
Creating ./data/db directory...
Creating ./data/extensions directory...
Creating ./data/mining directory...
Creating ./data/webdot directory...
Creating ./graphs directory...
Creating ./skins/custom directory...
Creating ./data/extensions/additional...
Creating ./data/mailer.testfile...
Creating index.html...
Creating ./Bugzilla/.htaccess...
Creating ./data/.htaccess...
Creating ./data/attachments/.htaccess...
Creating ./data/webdot/.htaccess...
Creating ./graphs/.htaccess...
Creating ./lib/.htaccess...
Creating ./template/.htaccess...
Creating contrib/.htaccess...
Creating t/.htaccess...
Creating xt/.htaccess...
Precompiling templates...done.
Fixing file permissions...
Initializing "Dependency Tree Changes" email_setting ...
Marking closed bug statuses as such...
Creating default classification 'Unclassified'...
Setting up foreign keys...
Setting up the default status workflow...
Creating default groups...
Setting up user preferences...


Looks like we don't have an administrator set up yet. Either this is
your first time using Bugzilla, or your administrator's privileges
might have accidentally been deleted.



Enter the e-mail address of the administrator: kousikster@gmail.com
Enter the real name of the administrator: kousik
Enter a password for the administrator account:
Please retype the password to verify:
kousikster@gmail.com is now set up as an administrator.
Creating initial dummy product 'TestProduct'...



Now that you have installed Bugzilla, you should visit the 'Parameters'
page (linked in the footer of the Administrator account) to ensure it
is set up as you wish - this includes setting the 'urlbase' option to
the correct URL.





Restart the httpd server
#/etc/init.d/httpd restart

and you are good to go!



Try http:///bugzilla and Enjoy!

1 comment:

  1. Hi,
    I am getting a error "Cannot determine local time zone" in ......./bugzilla/post_bug.cgi" page.
    Could you please share your help

    ReplyDelete