Professional Documents
Culture Documents
Home
About
Free eBook
Linux Command
Archives
Contact
Install Linux
Ads by Google
Windows Install
PDF Linux
you@address.com
4 576 3
Sign Up
Like Confirm
RSS
Bugzilla is the best open source bug tracking system. Very simple to use with lot of features. Bugzilla allows you to track the bugs and collaborate with developers and other teams in your organization effectively. This is a detailed step-by-step bugzilla installation guide for Linux.
Search
EBOOKS
Most Linux distributions comes with perl. If you dont have it on yours, download and install it from corresponding distribution website.
Step-by-Step Bugzilla Installation Guide for Linux # mysql -V mysql Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using readline 5.1
If you dont have mysql, install it as using yum groupinstall, or based on LAMP install article, or based on mysql rpm article.
3. Install Apache
If you already have apache installed, make sure you are able to access it by using http://{yourip-address}.
If you dont have apache, install is using yum based on LAMP install article, or install apache from source.
POPULAR POSTS 12 Amazing and Essential Linux Books To Enrich Your Brain and Library 50 UNIX / Linux Sysadmin Tutorials
How To Be Productive and Get Things Done Using GTD 30 Things To Do When you are Bored and have a Computer Linux Directory Structure (File System Structure) Explained with Examples Linux Crontab: 15 Awesome Cron Job Examples Get a Grip on the Grep! 15 Practical Grep Command Examples Unix LS Command: 15 Practical Examples
# cd /var/www/html/bugzilla-3.4.6 # ./checksetup.pl --check-modules COMMANDS TO INSTALL OPTIONAL MODULES: GD: /usr/bin/perl install-module.pl GD Chart: /usr/bin/perl install-module.pl Chart::Base Template-GD: /usr/bin/perl install-module.pl Template::Plugin::GD::Image GDTextUtil: /usr/bin/perl install-module.pl GD::Text GDGraph: /usr/bin/perl install-module.pl GD::Graph XML-Twig: /usr/bin/perl install-module.pl XML::Twig MIME-tools: /usr/bin/perl install-module.pl MIME::Parser libwww-perl: /usr/bin/perl install-module.pl LWP::UserAgent PatchReader: /usr/bin/perl install-module.pl PatchReader PerlMagick: /usr/bin/perl install-module.pl Image::Magick perl-ldap: /usr/bin/perl install-module.pl Net::LDAP Authen-SASL: /usr/bin/perl install-module.pl Authen::SASL RadiusPerl: /usr/bin/perl install-module.pl Authen::Radius SOAP-Lite: /usr/bin/perl install-module.pl SOAP::Lite HTML-Parser: /usr/bin/perl install-module.pl HTML::Parser HTML-Scrubber: /usr/bin/perl install-module.pl HTML::Scrubber Email-MIME-Attachment-Stripper: /usr/bin/perl install-module.pl Email::MIME::Attachment::Stripper Email-Reply: /usr/bin/perl install-module.pl Email::Reply TheSchwartz: /usr/bin/perl install-module.pl TheSchwartz Daemon-Generic: /usr/bin/perl install-module.pl Daemon::Generic mod_perl: /usr/bin/perl install-module.pl mod_perl2 YOU MUST RUN ONE OF THE FOLLOWING COMMANDS (depending on which database you use): PostgreSQL: /usr/bin/perl install-module.pl DBD::Pg MySQL: /usr/bin/perl install-module.pl DBD::mysql Oracle: /usr/bin/perl install-module.pl DBD::Oracle http://www.thegeekstuff.com/2010/05/install-bugzilla-on-linux/[11/11/2011 4:30:37 PM]
15 Examples To Master Linux Command Line History Top 10 Open Source Bug Tracking System Vi and Vim Macro Tutorial: How To Record and Play Mommy, I found it! -- 15 Practical Linux Find Command Examples 15 Awesome Gmail Tips and Tricks 15 Awesome Google Search Tips and Tricks RAID 0, RAID 1, RAID 5, RAID 10 Explained with Diagrams Can You Top This? 15 Practical Linux Top Command Examples Top 5 Best System Monitoring Tools Top 5 Best Linux OS Distributions How To Monitor Remote Linux Host using Nagios 3.0 Awk Introduction Tutorial 7 Awk Print Examples How to Backup Linux? 15 rsync Command Examples The Ultimate Wget Download Guide With 15 Awesome Examples Top 5 Best Linux Text Editors Packet Analyzer: 15 TCPDUMP Command Examples The Ultimate Bash Array Tutorial with 15 Examples 3 Steps to Perform SSH Login Without Password Using ssh-keygen & ssh-copy-id Unix Sed Tutorial: Advanced Sed Substitution Examples
Step-by-Step Bugzilla Installation Guide for Linux COMMANDS TO INSTALL REQUIRED MODULES (You *must* run all these commands and then rerun checksetup.pl): /usr/bin/perl install-module.pl CGI /usr/bin/perl install-module.pl Digest::SHA /usr/bin/perl install-module.pl Date::Format /usr/bin/perl install-module.pl DateTime /usr/bin/perl install-module.pl DateTime::TimeZone /usr/bin/perl install-module.pl Template /usr/bin/perl install-module.pl Email::Send /usr/bin/perl install-module.pl Email::MIME /usr/bin/perl install-module.pl Email::MIME::Encodings /usr/bin/perl install-module.pl Email::MIME::Modifier /usr/bin/perl install-module.pl URI To attempt an automatic install of every required and optional module with one command, do: /usr/bin/perl install-module.pl --all
UNIX / Linux: 10 Netstat Command Examples The Ultimate Guide for Creating Strong Passwords 6 Steps to Secure Your Home Wireless Network Turbocharge PuTTY with 12 Powerful Add-Ons
Please review the output of the above install-module.pl to make sure everything got install properly. There is a possibility that some of the modules failed to install (may be because some required OS packages were missing). Execute the checksetup.pl to verify whether all the modules got installed properly. Following is the output of 2nd run of the checksetup.pl:
# ./checksetup.pl --check-modules COMMANDS TO INSTALL OPTIONAL MODULES: GD: /usr/bin/perl install-module.pl GD Chart: /usr/bin/perl install-module.pl Chart::Base Template-GD: /usr/bin/perl install-module.pl Template::Plugin::GD::Image GDTextUtil: /usr/bin/perl install-module.pl GD::Text GDGraph: /usr/bin/perl install-module.pl GD::Graph http://www.thegeekstuff.com/2010/05/install-bugzilla-on-linux/[11/11/2011 4:30:37 PM]
Step-by-Step Bugzilla Installation Guide for Linux XML-Twig: /usr/bin/perl install-module.pl XML::Twig PerlMagick: /usr/bin/perl install-module.pl Image::Magick SOAP-Lite: /usr/bin/perl install-module.pl SOAP::Lite mod_perl: /usr/bin/perl install-module.pl mod_perl2 YOU MUST RUN ONE OF THE FOLLOWING COMMANDS (depending on which database you use): PostgreSQL: /usr/bin/perl install-module.pl DBD::Pg MySQL: /usr/bin/perl install-module.pl DBD::mysql Oracle: /usr/bin/perl install-module.pl DBD::Oracle
# ./checksetup.pl --check-modules * This is Bugzilla 3.4.6 on perl 5.8.8 * Running on Linux 2.6.18-164.el5PAE #1 SMP Thu Sep 3 04:10:44 EDT 2009 Checking Checking Checking Checking Checking Checking Checking perl modules... for CGI.pm (v3.21) for Digest-SHA (any) for TimeDate (v2.21) for DateTime (v0.28) for DateTime-TimeZone (v0.71) for DBI (v1.41) Template-Toolkit (v2.22) Email-Send (v2.00)
ok: found v3.49 ok: found v5.48 ok: found v2.24 ok: found v0.55 ok: found v1.17 ok: found v1.52 ok: found v2.22 ok: found v2.198
Checking for Email-MIME (v1.861) ok: found v1.903 Checking for Email-MIME-Encodings (v1.313) ok: found v1.313 http://www.thegeekstuff.com/2010/05/install-bugzilla-on-linux/[11/11/2011 4:30:37 PM]
Step-by-Step Bugzilla Installation Guide for Linux Checking for Email-MIME-Modifier (v1.442) Checking for URI (any) Checking Checking Checking Checking available perl DBD modules... for DBD-Pg (v1.45) for DBD-mysql (v4.00) for DBD-Oracle (v1.19) ok: found v1.903 ok: found v1.54
The following Perl modules are optional: Checking for Checking for Checking for Checking for Checking for Checking for Checking for Checking for Checking for Checking for Checking Checking Checking Checking Checking Checking Checking Checking Checking Checking Checking GD (v1.20) Chart (v1.0) Template-GD (any) GDTextUtil (any) GDGraph (any) XML-Twig (any) MIME-tools (v5.406) libwww-perl (any) PatchReader (v0.9.4) PerlMagick (any) ok: found v2.44 ok: found v2.4.1 ok: found v1.56 ok: found v0.86 ok: found v1.44 ok: found v3.34 ok: found v5.427 ok: found v5.834 ok: found v0.9.5 ok: found v6.2.8
for perl-ldap (any) ok: found v0.4001 for Authen-SASL (any) ok: found v2.1401 for RadiusPerl (any) ok: found v0.17 for SOAP-Lite (v0.710.06) ok: found v0.711 for HTML-Parser (v3.40) ok: found v3.65 for HTML-Scrubber (any) ok: found v0.08 for Email-MIME-Attachment-Stripper (any) ok: found v1.316 for Email-Reply (any) ok: found v1.202 for TheSchwartz (any) ok: found v1.10 for Daemon-Generic (any) ok: found v0.61 for mod_perl (v1.999022) ok: found v2.000004
# ./checksetup.pl Reading ./localconfig... 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 rerun checksetup.pl. The following variables are new to ./localconfig since you last ran checksetup.pl: create_htaccess, webservergroup, db_driver, db_host, db_name, db_user, db_pass, db_port, db_sock, db_check, index_html, cvsbin, interdiffbin, diffpath, http://www.thegeekstuff.com/2010/05/install-bugzilla-on-linux/[11/11/2011 4:30:37 PM]
# cat /etc/my.cnf [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 # Disabling symbolic-links is recommended to prevent assorted security risks; # to do so, uncomment this line: # symbolic-links=0 # Allow packets up to 4MB max_allowed_packet=4M [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid
Step-by-Step Bugzilla Installation Guide for Linux # mysql -u root -p mysql> GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY 'Bugs4All'; mysql> FLUSH PRIVILEGES;
# ./checksetup.pl Creating database bugs... Building Schema object from database... Adding new table bz_schema ... Initializing the new Schema storage... Adding new table attach_data ... Adding new table attachments ... Adding new table bug_group_map ... Adding new table bug_see_also ... Adding new table bug_severity ... Adding new table bug_status ... Inserting values into the 'priority' table: Inserting values into the 'bug_status' table: Inserting values into the 'rep_platform' table: Creating ./data directory... Creating ./data/attachments directory... Creating ./data/duplicates directory... Adding foreign key: attachments.bug_id -> bugs.bug_id... Adding foreign key: attachments.submitter_id -> profiles.userid... Adding foreign key: bug_group_map.bug_id -> bugs.bug_id...
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: ramesh@thegeekstuff.com Enter the real name of the administrator: Ramesh Natarajan Enter a password for the administrator account: NotRealPwd Please retype the password to verify: welcome ramesh@4medica.com is now set up as an administrator. Creating default classification 'Unclassified'... 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.
# cd /var/www/html/bugzilla/ # grep webservergroup localconfig $webservergroup = 'apache'; # grep Group /etc/httpd/conf/httpd.conf Group apache
# ./checksetup.pl Reading ./localconfig... Removing existing compiled templates... Precompiling templates...done. Fixing file permissions... 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.
# /usr/bin/perl install-module.pl DBD::mysql dbdimp.h:22:49: error: mysql.h: No such file or directory dbdimp.h:23:45: error: mysqld_error.h: No such file or directory dbdimp.h:25:49: error: errmsg.h: No such file or directory In file included from dbdimp.c:20: dbdimp.h:144: error: expected specifier-qualifier-list before MYSQL http://www.thegeekstuff.com/2010/05/install-bugzilla-on-linux/[11/11/2011 4:30:37 PM]
Step-by-Step Bugzilla Installation Guide for Linux dbdimp.h:236: error: expected specifier-qualifier-list before MYSQL_RES
# rpm -qa | grep -i mysql MySQL-python-1.2.1-1 mysql-5.0.77-4.el5_4.2 mysql-connector-odbc-3.51.26r1127-1.el5 mysql-server-5.0.77-4.el5_4.2 libdbi-dbd-mysql-0.8.1a-1.2.2 perl-DBD-MySQL-3.0007-2.el5
# /usr/bin/perl install-module.pl GD **UNRECOVERABLE ERROR** Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher. If you want to try to compile anyway, please rerun this script with the option -ignore_missing_gd. Running make test Make had some problems, maybe interrupted? Won't test Running make install Make had some problems, maybe interrupted? Won't install
# /usr/bin/perl install-module.pl GD
# /usr/bin/perl install-module.pl XML::Twig Expat.xs:12:19: error: expat.h: No such file or directory Expat.xs:60: error: expected specifier-qualifier-list before XML_Parser
Image::Magick installation failed with magick/MagickCore.h: No such file or directory error message as shown below.
# /usr/bin/perl install-module.pl Image::Magick Note (probably harmless): No library found for -lMagickCore Magick.xs:64:31: error: magick/MagickCore.h: No such file or directory Magick.xs:171: error: expected specifier-qualifier-list before MagickRealType Magick.xs:192: error: expected specifier-qualifier-list before ImageInfo Magick.xs:214: error: MagickNoiseOptions undeclared here (not in a function) Magick.xs:214: warning: missing initializer
In my case, ImageMagic-devel was missing. So, installed it as shown below. After that, Image::Magick perl module got installed successfully.
#/usr/bin/perl install-module.pl SOAP::Lite Failed test 'use SOAP::Lite;' at t/SOAP/Data.t line 5. Tried to use 'SOAP::Lite'. Error: Can't locate version.pm in @INC
OK
Starting httpd: Syntax error on line 994 of /etc/httpd/conf/httpd.conf: Can't locate Template/Config.pm in @INC
# cpan cpan> i /Template-Toolkit/ Distribution A/AB/ABEL/Eidolon-Driver-Template-Toolkit-0.01.tar.gz Distribution A/AB/ABW/Template-Toolkit-1.07.tar.gz Distribution A/AB/ABW/Template-Toolkit-2.22.tar.gz Distribution I/IN/INGY/Template-Toolkit-Simple-0.03.tar.gz 4 items found cpan> install A/AB/ABW/Template-Toolkit-2.22.tar.gz
Starting apache failed with Cannot locate DateTime/Locale.pm in @INC error message.
OK
Starting httpd: Syntax error on line 994 of /etc/httpd/conf/httpd.conf: Can't locate DateTime/Locale.pm in @INC
Also, in your apache error_log if you see Digest/SHA.pm issue, you should install it as shown below.
# tail -f /etc/httpd/logs/error_log Can't locate Digest/SHA.pm in @INC (@INC contains: # cpan cpan> install Digest::SHA
Like Confirm
576 3
Comment
Share
Tags: Bugzilla Install on CentOS, Bugzilla Install on Debian, Bugzilla Install on Ubuntu
Great article, works like a champ. Saved a lot of time. Thank you. Any chance for a subversion install in the near future?
sh
# cpan
http://www.thegeekstuff.com/2010/05/install-bugzilla-on-linux/[11/11/2011 4:30:37 PM]
Dinesh
Antti
Hello
Thanks for the step-by-step guide. It was good. I had a problem with Centos 5.5. The Apache couldnt find the DateTime.pm. The problem was solved by different configuration in the httpd.conf. ScriptAlias /cgi-bin/ /var/www/html/bugzilla/ AddHandler cgi-script .cgi Options +Indexes +ExecCGI DirectoryIndex index.cgi AllowOverride Limit Hopefully this will help somebody.
antti
My last post should have had two more lines: ScriptAlias /cgi-bin/ /var/www/html/bugzilla/ Directory /var/www/html/bugzilla AddHandler cgi-script .cgi Options +Indexes +ExecCGI DirectoryIndex index.cgi AllowOverride Limit Directory
http://www.thegeekstuff.com/2010/05/install-bugzilla-on-linux/[11/11/2011 4:30:37 PM]
Surround the directories with the Apache configuration syntax and you are good to go.
Zaher Shalak
thanks for this great article but i face problem in : service httpd restart Starting httpd: Syntax error on line 898 of /etc/httpd/conf/httpd.conf: $s->add_config() has failed: Option ExecCGI not allowed here at /var/www/html/bugzilla/mod_perl.pl line 82.\nCompilation failed in require at (eval 2) line 1.\n; where line 898 of /etc/httpd/conf/httpd.conf: , is the line putted in step 15 (PerlConfigRequire ) Could any body help me please thanks a lot & Best Regards
Rahul
Hi Ramesh The step by step guide was really helpful. Thank you. Im facing a couple of problems though. Firstly I was not able to install ImageMagick no matter what I tried. Secondly, the lines PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -T PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl that were added in http.conf while are causing the service to fail. Like you mentioned above I have installed the various packages at the cpan prompt. You have given only 2 instances above but Im facing more cant locate errors. I install each one and then restart httpd and something else is missing. Hope you can help me on this, I,m using CentOS 5.4
chifor andrei
Hello,
first of all i would like to say that the article is a very good one. But i have the same problem as Rahul here: the lines PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -T PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl that were added in http.conf while are causing the service to fail. Thank you.
Rahul
Hi Chifor
The http service will fail a no. of times. Each time the service fails check the error it is throwing . Usually you a cant locate error. Every you get this check the module that it cannot locate and install it from the cpan prompt. After a no. of such attempts I was able to successfully start the http service. Even then I was not able to view the Bugzilla home page through the browser. Every time I entered the url I just got to view the various Bugzilla files as HTML documents. Now go the file /var/log/httpd/error_log and check what is the error you are getting. Again install each missing module from the cpan prompt. If everything goes well all dependencies should be resolved and you should be able to view the Bugzilla home page.
Robert Liu
10
I have a question, after I installed the bugzilla, I open the Mozilla Firefox and key in the address http://localhost/bugzilla, it only show the files on the bugzilla directory, What should I do? Thanks. Robert
bunny
11
HI all, There some thing to be done at the end of installation.. change the httpd conf file so it detects your cgi files then only we can have a GUI interface to bugzilla else it wont work properly.
Alan
12
Does this apply with Ubuntu Server 32bits ?? Im getting some troubles installing Perl modules YAML is one of the problems but I would like to solve this cauz I cant find the lights
yunus
Hi,
13
I am unable install /usr/bin/perl install-module.pl DateTime and below are my errors. CPAN.pm: Going to build D/DR/DROLSKY/DateTime-0.66.tar.gz Cant locate Module/Build.pm in @INC (@INC contains: /var/www/html/bugzilla/lib/i386-linuxthread-multi /var/www/html/bugzilla/lib /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linuxthread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386linux-thread-multi /usr/lib/perl5/5.8.8 .) at Build.PL line 5. BEGIN failedcompilation aborted at Build.PL line 5. Warning: No success on command[/usr/bin/perl Build.PL ] DROLSKY/DateTime-0.66.tar.gz /usr/bin/perl Build.PL NOT OK Skipping test because of notest pragma Running Build install Make had some problems, wont install Could not read metadata file. Falling back to other methods to determine prerequisities I am eagerly awaiting your reply on this issue in order to complete my bugzilla installation. Regards Yunus
momnotmom
Yunus,
14
I installed the Build module /usr/bin/perl install-module.pl Build and then I was able to install DateTime
sXing
15
Hey there thx your guide so far is really awesome but I got a problem with the last step. When trying to find httpd.conf the directory doesnt even exist, I installed the packages apache2 & libapache2. The only httpd.conf I found is in the apache2 directory and is empty, please Im stuck at this part, could u help me? Thx in advance
sXing
16
an additional comment from my side: Where exactly do I have to put the lines from step15
indira
17
installing Active perl removes Not locate issues in installing certain perl modules ?
Suma Ramesh
18
Excellent tutorial Literally spoon feeding Thanks i was able to set up my New Bugzilla in 20 mins..
Anonymous
19
for the YAML problem what is did was , in the terminal Type yum install *YAML* Then the problem was solved
Leave a Comment
Name E-mail Website
Submit
Contact Us
Email Me : Use this Contact Form to get in touch me with your comments, questions or suggestions about this site. You can also simply drop me a line to say hello!.
Support Us
Support this blog by purchasing one of my ebooks. Bash 101 Hacks eBook
write articles that will either teach you or help you resolve a problem. Read more about Ramesh Natarajan and the blog.
Sed and Awk 101 Hacks eBook Vim 101 Hacks eBook Nagios Core 3 eBook
Copyright 20082011 Ramesh Natarajan. All rights reserved | Terms of Service | Advertise