Installing Bugzilla on centos - perl modules and other issues

Here are a few tips I can share from my recent experience installing bugzilla on centos. I won't say this is the best way or the only way, or that it will work with your centos (or god forbid non-centos), but it did work for me, and this roadmap might help you a little.

  1. Download Bugzilla, extract, and run the included setup utility: "./checksetup.pl" (I downloaded and installed as one of my standard users who owns the "/bugs" directory in /var/www/html that I created for this purpose.)
  2. For me, I had a variety of missing required and optional perl modules.
  3. So as root I did:
    • yum install perl-TimeDate-1.16-1.el5.centos.noarch
    • yum install perl-Email-Send-2.183-1.el5.rf.noarch
    • yum install perl-Chart-2.4.1-1.el5.rf.noarch
    • yum install perl-Template-GD-2.66-1.el5.rf.noarch
    • yum install perl-GD-Graph-1.43-1.2.el5.rf.noarch
    • yum install perl-Email-MIME-Modifier-1.442-1.el5.rf.noarch
    • yum install  perl-Template-Toolkit-2.20-1.el5.rf.i386
    • yum upgrade
    • yum update
  4. Unfortunately, Perl's CGI module is included with the main perl module, and even after I had upgraded and updated, the CGI that was installed was 3.12.  Bugzilla will not install without a more recent version.  After searching and fighting, here is how I ultimately installed the most recent perl CGI module (as root, in /root/localrpm):
  5. Now back to the user who owns the website directory where I had unpacked bugzilla, and I'm happy to say that the installer accepted my configuration.
  6. created the mysql database
    • mysql -uroot -p
    • create database bugs
    • grant all privileges on bugs.* to 'bugsuser'@'localhost' identified by 'password';
  7. modified the bugzilla configuration file "localconfig" appropriately
  8. ran "./checksetup.pl" yet again - and installation appears to have been successful.
  9. I also had to run "chmod -R a+r ." and "chmod -R a+x ." - I'm not sure why the tar opened up as if my UMASK had been set too high, but anyhow this fixed the final issue ("Can't locate Bugzilla/WebService/Constants.pm in @INC ...)
  10. One last issue - "chmod 777 data"

 

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Hey hey. It's nice to see

Hey hey. It's nice to see somebody posting the yum instructions. However, there are a few things I'd like to note:

You can install the CGI module by following the instructions of checksetup.pl, instead. That's better.

All the rest of the steps after the module installation are better covered by the standard Bugzilla Guide's "Configuration" section. In particular, you do not have to set permissions yourself--if you had to, then something is wrong with your installation process. -Max

Hi Max - thanks for the feedback

I'm not sure whether the centOS folks would agree that directly installing the perl modules is better  (as suggested by checksetup.pl).  It seems a bit like centOS and bugzilla are not well-coordinated.  Why not write a bugzilla rpm / yum install for centOS?

Perhaps the reason for the permissions issue was because I installed as user "bugs" not as user "apache" though apache is running as "apache".

Peter

Good work

Nice to see this article. It was helpful. This can further be simplified.
The fedora epel repository has all the necessary rpms for bugzilla, and
related perl dependencies.

SO just by adding epel repository in yum, and doing "yum install bugzilla",
will install bugzilla and all its dependencies. (system wide single
installation.). The dependency list isntalled is alot more exhaustive that
what is mentioned above, because the optional modules are also installed.
This ensures that all features of bugzilla will be functional.

However there is a small catch. If for some reason, you want multiple
installations of bugzilla, then this single installation won't help. For that
do the following :
1) Add epel repository
2) yum -y install bugzilla
3) rpm -e bugzilla
(Now u have all the dependencies, essentials and optional ones.)
4) download bugzilla source and run './checksetup.pl' within the extracted
folder.
Ideally this run, should not complain, about any dependency. But thats not
the case. Thats where this initial post helped me to get things to work. For
some reason "perl-CGI" still remains an uninstalled dependency.
5) So install perl-CGI
* yum install perl-FCGI-0.67-1.2.el5.rf.i386
* wget http://dl.atrpms.net/all/perl-CGI-3.42-8.el5.noarch.rpm [1]
* wget
ftp://distro.ibiblio.org/pub/linux/distributions/smeserver/releases/7.4/
[2]...
* rpm -i atrpms-73.1-1.noarch.rpm
* rpm -i perl-CGI-3.42-8.el5.noarch.rpm
6) In bugzilla folder run "./checksetup.pl" and your "./localconfig" gets
generated.
7) Installation complete! create as many copies of this folder. And keep
changing the db connection parameters in localconfig.

./Ritesh