≡ Menu

Step-by-Step Bugzilla Installation Guide for Linux

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.

1. Verify Perl Version

Make sure your perl version is >= 5.8.1 as shown below.

# perl -v

This is perl, v5.8.8 built for i386-linux-thread-multi

Most Linux distributions comes with perl. If you don’t have it on yours, download and install it from corresponding distribution website.

2. Install MySQL Database

Make sure your MySQL version is >= 4.1.2 as shown below.

# mysql -V
mysql  Ver 14.12 Distrib 5.0.77, for redhat-linux-gnu (i686) using readline 5.1

If you don’t 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://{your-ip-address}.

If you don’t have apache, install is using yum based on LAMP install article, or install apache from source.

4. Download latest Bugzilla tar ball

Download the latest stable release from bugzilla download page. Extract the bugzilla*.tar.gz file to the apache document root directory as shown below.

# cd ~

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

# cd /var/www/html

# tar xvfz /usr/save/bugzilla-3.4.6.tar.gz

5. Execute the bugzilla checksetup.pl

Bugzilla checksetup.pl program will verify whether all the required perl modules are installed. This will also display a list of all missing bugzilla modules that needs to be installed.

You can run the checksetup.pl program as many times as you like until you’ve verified all the required perl modules are installed.

Following is the output of 1st run of checksetup.pl, where is has listed all the missing optional and required modules.

# 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

COMMANDS TO INSTALL REQUIRED MODULES (You *must* run all these commands and then re-run 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

6. Execute bugzilla install-module.pl

As suggested by the output of the checksetup.pl, you can execute the install-module.pl to install all bugzilla required and optional perl modules.

# /usr/bin/perl install-module.pl --all

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
       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

7. Install missing Perl Modules

As we see from the above checksetup.pl output, some of the optional modules and required module installed was not completed when we ran the install-module.pl.

So, we have to install the missing modules manually one-by-one to figure out the issues and fix it one-by-one.

Refer to the “Troubleshooting Section” at the end for list of all the issues that I faced while installing the perl modules required for bugzilla (along with the solution on how to fix those issues).

8. Final checksetup.pl –check-modules verification

Execute checksetup.pl –check-modules again as shown below as final verification to make sure all the modules got installed successfully.

# ./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 perl modules...
Checking for              CGI.pm (v3.21)   ok: found v3.49
Checking for          Digest-SHA (any)     ok: found v5.48
Checking for            TimeDate (v2.21)   ok: found v2.24
Checking for            DateTime (v0.28)   ok: found v0.55
Checking for   DateTime-TimeZone (v0.71)   ok: found v1.17
Checking for                 DBI (v1.41)   ok: found v1.52
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.861)  ok: found v1.903
Checking for Email-MIME-Encodings (v1.313)  ok: found v1.313
Checking for Email-MIME-Modifier (v1.442)  ok: found v1.903
Checking for                 URI (any)     ok: found v1.54 

Checking available perl DBD modules...
Checking for              DBD-Pg (v1.45)    not found
Checking for           DBD-mysql (v4.00)   ok: found v4.013
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 (v1.0)    ok: found v2.4.1
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            XML-Twig (any)     ok: found v3.34
Checking for          MIME-tools (v5.406)  ok: found v5.427
Checking for         libwww-perl (any)     ok: found v5.834
Checking for         PatchReader (v0.9.4)  ok: found v0.9.5
Checking for          PerlMagick (any)     ok: found v6.2.8
Checking for           perl-ldap (any)     ok: found v0.4001
Checking for         Authen-SASL (any)     ok: found v2.1401
Checking for          RadiusPerl (any)     ok: found v0.17
Checking for           SOAP-Lite (v0.710.06) ok: found v0.711
Checking for         HTML-Parser (v3.40)   ok: found v3.65
Checking for       HTML-Scrubber (any)     ok: found v0.08
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.61
Checking for            mod_perl (v1.999022) ok: found v2.000004

9. Create localconfig file using checksetup.pl

Execute checksetup.pl without any argument, which will create a localconfig file in the current directory. The localconfig file contains the key configuration parameters used by the bugzilla (for example, mysql db username and password).

# ./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, site_wide_secret

10. Modify the localconfig file.

The only thing you need to modify the localconfig file is MySQL database db password by changing the $db_pass variable as shown below.

# vi ./localconfig
$db_pass = 'Bugs4All';

11. Modify /etc/my.cnf to increase bugzilla attachment size

Set the max_allowed_packet to 4M in the /etc/my.cnf to increase bugzilla attachment size.

# 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

Restart the mysqld after this change.

# service mysqld restart

12. Create bugs mysql user

Add bugzilla user (bugs) to the mysql database as shown below.

# 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;

13. Create the bugzilla database

Execute the checksetup.pl (without any arguments) again to create the mysql bugzilla database. Since the localconfig file already exist, the second time when you execute the checksetup.pl, it will create the mysql database based on the information from localconfig file.

# ./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...

14. Create bugzilla administrator account.

At the end of the ./checksetup.pl execution, it will detect that you don’t have an adminsitrator account and request you to enter administration login information as shown below.

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@thegeekstuff.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.

15. Configure apache for mod_perl

Rename the bugzilla directory. (i.e remove the version number in it)

# cd /var/www/html

# mv bugzilla-3.4.6/ bugzilla

Add the following two lines to httpd.conf

# tail -2 /etc/httpd/conf/httpd.conf
PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -T
PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl

Verify the Group in httpd.conf matches the webservergroup in localconfig

# cd /var/www/html/bugzilla/

# grep webservergroup localconfig
$webservergroup = 'apache';

# grep Group /etc/httpd/conf/httpd.conf
Group apache

16. Final checksetup.pl execution

Execute the checksetup.pl again.

# ./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.

17. Login to bugzilla and complete one time setup.

Start the apache, go to http://{your-ip-address}/bugzilla and login using the administrator account you created above.
From the bugzilla UI, at the footer -> Administration -> Parameters -> ‘Required Settings’ section -> Fill-out following information:
maintainer: ramesh@thegeekstuff.com

urlbase: http://{your-ip-address}/
Note: Depending on your setup, go to -> User Authentication -> and you might want to change requiredlogin and emailregexp parameter.

Troubleshooting Bugzilla Install Issues

Issue1: DBD::mysql module failed

The DBD:mysql perl module failed with the “mysql.h: No such file or directory” error message as shown below.

# /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â
dbdimp.h:236: error: expected specifier-qualifier-list before âMYSQL_RESâ

Solution1: install mysql-devel

Error message “mysql.h: No such file or directory” is because mysql-devel package was missing as shown below.

# 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

Install the mysql-devel package as shown below.

# yum install mysql-devel

# rpm -qa | grep -i "mysql-devel"
mysql-devel-5.0.77-4.el5_4.2

DBD::mysql installation will go through without any issues now.

# /usr/bin/perl install-module.pl DBD::mysql

Issue2: GD failed with missing gdlib-config / libgd

Installing GD module failed with the following error message.

# /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

Solution2: Install gd-devel package

Install libgd (i.e gd-devel package) as shown below to fix the GD module issue.

# yum install gd-devel

# rpm -qa | grep gd
gd-2.0.33-9.4.el5_4.2
gd-devel-2.0.33-9.4.el5_4.2

GD got installed without any issues after insingalling gd-devel package.

# /usr/bin/perl install-module.pl GD

Issue3: Twig Failed with expat.h error

Twig module failed to install with the error message “expat.h: No such file or directory” as shown below.

# /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

Solution3: Install expat and expat-devel for Twig

Install expat and expat-devel package as shown below.

# yum install expat

# yum install expat-devel

Now install Twig without any issues.

# /usr/bin/perl install-module.pl XML::Twig

Issue4: Image::Magick failed to install

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

Solution4: Image::Magick failed to install

Make sure following ImageMagic related packages are present.

# rpm -qa | grep -i Image
ImageMagick-6.2.8.0-4.el5_1.1
ImageMagick-c++-devel-6.2.8.0-4.el5_1.1
ImageMagick-devel-6.2.8.0-4.el5_1.1
ImageMagick-c++-6.2.8.0-4.el5_1.1
ImageMagick-perl-6.2.8.0-4.el5_1.1

In my case, ImageMagic-devel was missing. So, installed it as shown below. After that, Image::Magick perl module got installed successfully.

# yum install ImageMagick-devel

# /usr/bin/perl install-module.pl Image::Magick

Issue5: SOAP::Lite failed to install

SOAP::Lite module failed to install with “Cannot locate version.pm in @INC” message as shown below.

#/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

Solution5: Install version.pm required for SOAP::Lite

Installed version.pm as shown below. After this, SOAP::Lite got installed without any issue.

# perl -MCPAN -e 'install version' 

# /usr/bin/perl install-module.pl SOAP::Lite

Issue6 (and Solution6): mod_perl was missing

Don’t install mod_perl using /usr/bin/perl install-module.pl mod_perl2 . Insetad, use yum to install mod_perl as shown below.

# yum install mod_perl

Issue7: Apache start failed

Starting apache failed with “Cannot locate Template/Config.pm in @INC” error message.

# service httpd restart
Stopping httpd:                                            [  OK  ]

Starting httpd: Syntax error on line 994 of /etc/httpd/conf/httpd.conf:
Can't locate Template/Config.pm in @INC

Solution7: Install Template-Tool Kit as shown below

Install Template-Tool kit to fix the above apache error message

# 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

Issue8: Apache start failed again

Starting apache failed with “Cannot locate DateTime/Locale.pm in @INC” error message.

# service httpd restart
Stopping httpd:                                            [  OK  ]

Starting httpd: Syntax error on line 994 of /etc/httpd/conf/httpd.conf:
Can't locate DateTime/Locale.pm in @INC

Solution8: Install DateTime/Locale.pm as shown below

Install DateTime/Locale.pm to fix the above apache error message

# cpan

cpan> install DateTime:Locale

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
Add your comment

If you enjoyed this article, you might also like..

  1. 50 Linux Sysadmin Tutorials
  2. 50 Most Frequently Used Linux Commands (With Examples)
  3. Top 25 Best Linux Performance Monitoring and Debugging Tools
  4. Mommy, I found it! – 15 Practical Linux Find Command Examples
  5. Linux 101 Hacks 2nd Edition eBook Linux 101 Hacks Book

Bash 101 Hacks Book Sed and Awk 101 Hacks Book Nagios Core 3 Book Vim 101 Hacks Book

Comments on this entry are closed.

  • jeff August 10, 2010, 6:31 am

    Great article, works like a champ. Saved a lot of time. Thank you. Any chance for a subversion install in the near future?

  • sh August 22, 2010, 2:46 am

    # cpan
    cpan> install DateTime:Locale

    wrong
    =>
    # cpan

    cpan> install DateTime::Locale

  • Dinesh October 8, 2010, 3:22 am

    Very worthful article.

  • Antti October 26, 2010, 2:21 am

    Hello

    Thanks for the step-by-step guide. It was good. I had a problem with Centos 5.5. The Apache couldn’t 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 October 26, 2010, 2:23 am

    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

    Surround the directories with the Apache configuration syntax and you are good to go.

  • Zaher Shalak October 28, 2010, 5:26 am

    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 December 21, 2010, 7:07 am

    Hi Ramesh

    The step by step guide was really helpful. Thank you.
    I’m 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 I’m 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 December 22, 2010, 2:43 am

    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 December 30, 2010, 5:29 am

    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 February 18, 2011, 4:26 am

    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 February 28, 2011, 11:57 pm

    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 March 31, 2011, 3:53 pm

    Does this apply with Ubuntu Server 32bits ??
    I´m getting some troubles installing Perl modules

    YAML is one of the problems but I would like to solve this cauz I can´t find the lights

  • yunus March 31, 2011, 9:37 pm

    Hi,

    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

    Can’t locate Module/Build.pm in @INC (@INC contains: /var/www/html/bugzilla/lib/i386-linux-thread-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-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at Build.PL line 5.
    BEGIN failed–compilation 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, won’t 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 April 13, 2011, 2:21 pm

    Yunus,

    I installed the Build module

    /usr/bin/perl install-module.pl Build

    and then I was able to install DateTime

  • sXing April 18, 2011, 12:32 pm

    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 April 18, 2011, 12:42 pm

    an additional comment from my side: Where exactly do I have to put the lines from step15

  • indira June 3, 2011, 1:04 am

    installing Active perl removes “Not locate” issues in installing certain perl modules ?

  • Suma Ramesh August 4, 2011, 7:59 am

    Excellent tutorial… Literally spoon feeding…

    Thanks i was able to set up my New Bugzilla in 20 mins…..

  • Anonymous October 25, 2011, 5:18 am

    for the YAML problem what is did was , in the terminal Type

    yum install *YAML*

    Then the problem was solved

  • Hitesh November 16, 2011, 2:58 am

    Above steps are really great and in detail however, Can some one give me step by step details to install the Bugzilla on CentOS linux

  • Ram December 8, 2011, 3:53 am

    while starting apache server after all installation steps of bugzilla, it shows error as “syntax error on line 2 of /etc/apache2/mods-enabled/perl-conf” : Apache2::SizeLimit at moment works only with non threaded MPMS at /../SizeLimit.pm.

    How to rectify this error.. pl help…

  • Pratap Koppal January 23, 2012, 7:55 am

    point no. 10
    vi ./localconfig.
    iam confused of location of this. Please tell me where this file can found.

  • Mathin January 31, 2012, 4:44 am

    Hi Ramesh i am new to Linux my i am having some problem in Bugzilla server configuration i usinge RHEL 6 and Bugzill 4.01 if am running the script it say there modules not install

    Checking for DateTime (v0.28) not found
    Checking for DateTime-TimeZone (v0.71) not found

    i am tried may ways not able to do can u help me out please
    Thanks in Advance

  • Ravindra Singh Gohil February 17, 2012, 2:08 pm

    Hi Ramesh,
    I am getting the below error on http://localhost/bugzilla.

    Software error:

    The /var/lib/bugzilla/data/params file does not exist. You probably need to run checksetup.pl. at Bugzilla/Config.pm line 344.
    Compilation failed in require at /usr/share/bugzilla/index.cgi line 34.
    BEGIN failed–compilation aborted at /usr/share/bugzilla/index.cgi line 34.

    and if I put the following two lines in httpd.conf file, the browser shows me the bugzilla directory and its contents.

    PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -T
    PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl
    Please help me out.
    Thanks in advance.

  • Ravindra Singh Gohil February 17, 2012, 2:29 pm

    Getting following error while restarting apache.

    Stopping httpd: [ OK ]
    Starting httpd: Syntax error on line 1020 of /etc/httpd/conf/httpd.conf:
    Base class package “JSON::RPC::Server::CGI” is empty.\n (Perhaps you need to ‘use’ the module which defines that package first,\n or make that module available in @INC (@INC contains: /var/www/html/bugzilla/lib/x86_64-linux-thread-multi /var/www/html/bugzilla/lib /var/www/html/bugzilla /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /etc/httpd).\n at /var/www/html/bugzilla/Bugzilla/WebService/Server/JSONRPC.pm line 25\nBEGIN failed–compilation aborted at /var/www/html/bugzilla/Bugzilla/WebService/Server/JSONRPC.pm line 25.\nCompilation failed in require at /var/www/html/bugzilla/jsonrpc.cgi line 35.\nBEGIN failed–compilation aborted at /var/www/html/bugzilla/jsonrpc.cgi line 35.\nCompilation failed in require at (eval 2) line 1.\n
    [FAILED]

    Sorry I forgot to mention in my previous comment, my Linus-os i.e. centos 6.2

    I’m sure you’ll help me out.
    Thanks in advance

  • Cooper April 9, 2012, 6:07 pm

    I use the command
    #yum install mod_perl

    The result is no package mod_perl available.

  • Ravindra Gohil April 21, 2012, 2:59 am

    Hi Ramesh,
    I have installed the latest version of bugzilla(4.2.1) on CentOS 6.2, but getting the following error when I try to restart apache.

    Stopping httpd: [FAILED]
    Starting httpd: Syntax error on line 1022 of /etc/httpd/conf/httpd.conf:
    You must install Linux::Pid for Apache::SizeLimit to work on your platform. at /var/www/html/bugzilla/lib/Apache/SizeLimit/Core.pm line 128.\nBEGIN failed–compilation aborted at /var/www/html/bugzilla/lib/Apache/SizeLimit/Core.pm line 171.\nCompilation failed in require at /var/www/html/bugzilla/lib/Apache2/SizeLimit.pm line 48.\nBEGIN failed–compilation aborted at /var/www/html/bugzilla/lib/Apache2/SizeLimit.pm line 48.\nCompilation failed in require at /var/www/html/bugzilla/mod_perl.pl line 60.\nBEGIN failed–compilation aborted at /var/www/html/bugzilla/mod_perl.pl line 60.\nCompilation failed in require at (eval 2) line 1.\n
    [FAILED]
    Please help me out.

    Thanks in advance,
    Ravindra Gohil

  • Ankit Shah April 23, 2012, 10:35 pm

    After adding below lines in httd.conf
    AddHandler cgi-script .cgi
    LoadModule perl_module modules/mod_perl.so
    PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/RP/bugzilla/lib -w -T
    PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl

    got error

    Syntax error on line 1045 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 89.\nCompilation failed in require at (eval 2) line 1.\n

    My apache version is Apache 2.2.11. How can i check my mod_perl version & updrade it.

  • Ankit Shah April 24, 2012, 1:21 am

    When i access bugzilla in browser it gives

    403 Forbidden

    You don’t have permission to access /bugzilla/ on this server.

  • Ravindra Singh Gohil April 24, 2012, 1:57 am

    Hi Ankit,

    403 Forbidden error occurs when user don’t have permission to the particular directory.

    Do the following to get rid of it.

    # restorecon –Rv /var/www/html/
    # chown –R 751 bugzilla
    # chown root:apache –R bugzilla

    Please follow the below link for complete solution:
    http://ravindrasinghgohil.blogspot.in/2012/02/steps-to-install-bugzilla-42-on-centos.html

    Hope this would help you.

  • Ankit Shah April 26, 2012, 7:08 am

    Hi Ravindra,

    Thanks for the help.

    after running final step & changing permission i’m still getting

    403 Forbidden error

    You don’t have permission to access /bugzilla/index.cgi on this server.

  • Girish May 7, 2012, 12:24 am

    Hello,

    I am on my CentOS. This step by step guide is very simple and has made me and easy task for installing the bugzilla on my centos. I have one major issue, I have executed all the 17 steps correctly. All the mandatory perl modules and optional perl modules are also installed. When I go to the browser and give http://localhost/ I get the Apache 2 Test Page powered by CentOS. when I type http://localhost/bugzilla. I get the error “Index of /redhat/el5/en/i386/rpmforge/RPMS ” and a huge list of rpm’s. I am not getting the bugzilla UI. Could anyone please help me to come out of this. I am struggling since last 3 to 4 days.

    Thanks in advance.

    Thanks and Warm Regards,
    Girish P.Deshpande

  • Satya May 7, 2012, 1:33 am

    Hi i have one problem with bugzilla

    /etc/init.d/httpd restart
    Stopping httpd: [ OK ]
    Starting httpd: Syntax error on line 1005 of /etc/httpd/conf/httpd.conf:
    Base class package “JSON::RPC::Server::CGI” is empty.\n (Perhaps you need to ‘use’ the module which defines that package first,\n or make that module available in @INC (@INC contains: . lib/i386-linux-thread-multi lib /var/www/html/bugzilla /var/www/html/bugzilla/lib/i386-linux-thread-multi /var/www/html/bugzilla/lib /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/local/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl /etc/httpd).\n at Bugzilla/WebService/Server/JSONRPC.pm line 25\nBEGIN failed–compilation aborted at Bugzilla/WebService/Server/JSONRPC.pm line 25.\nCompilation failed in require at /var/www/html/bugzilla/jsonrpc.cgi line 35.\nBEGIN failed–compilation aborted at /var/www/html/bugzilla/jsonrpc.cgi line 35.\nCompilation failed in require at (eval 2) line 1.\n
    [FAILED]

    Please help me out this problem ..

    Thanks in advance
    satya

  • @nico May 9, 2012, 8:14 pm

    PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/RP/bugzilla/lib -w -T
    PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl

    this error: yum install mod_perl

    ou must install Linux::Pid for Apache::SizeLimit to work on your platform
    this error: cpan Linux::Pid

  • Ravindra Gohil May 10, 2012, 8:03 am

    Hi Ramesh,
    Could you please tell me the steps about setting up email configuration using SMTP for sending new account invitation. I have done this by changing the following parameters in Bugzilla Administration page:

    Mail_Method: SMTP
    Mailfrom : bugzilla@mydomain.com
    Smtpserver : smtpout.asia.secureserver.net
    Smtp_username : bugzilla@mydomain.com
    Smtp_password : bugzillaemailpassword

    With the above email configuration, it will display that the new account invitation is sent to username@mydomain.com, this link will expires after 72 hours.

    But the corresponding user is not receiving any mail from bugzilla@mydomain.com

    Thanks in Advance.

  • vk1dadhich July 2, 2012, 3:14 am

    Hii everyone,

    I am using centos 6.2 and facing a error so please help me out from this error, thanks a lot in advance

    error_log : /var/log/httpd/error_log

    Mon Jul 02 12:54:45 2012] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
    [Mon Jul 02 12:54:45 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Mon Jul 02 12:54:45 2012] [notice] Digest: generating secret for digest authentication …
    [Mon Jul 02 12:54:45 2012] [notice] Digest: done
    [Mon Jul 02 12:54:47 2012] [warn] ./mod_dnssd.c: No services found to register
    [Mon Jul 02 12:54:47 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_perl/2.0.7 Perl/v5.10.1 configured — resuming normal operations
    [Mon Jul 02 12:54:58 2012] [error] [client 192.168.1.25] Directory index forbidden by Options directive: /var/www/html/
    [Mon Jul 02 12:55:05 2012] [error] [client 192.168.1.25] File does not exist: /var/www/html/bugzilla
    [Mon Jul 02 13:02:24 2012] [error] [client 192.168.1.25] Directory index forbidden by Options directive: /var/www/html/
    [Mon Jul 02 13:54:36 2012] [notice] caught SIGTERM, shutting down
    [Mon Jul 02 13:54:36 2012] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0
    [Mon Jul 02 13:54:36 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
    [Mon Jul 02 13:54:36 2012] [notice] Digest: generating secret for digest authentication …
    [Mon Jul 02 13:54:36 2012] [notice] Digest: done
    [Mon Jul 02 13:54:36 2012] [warn] ./mod_dnssd.c: No services found to register
    [Mon Jul 02 13:54:36 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_perl/2.0.7 Perl/v5.10.1 configured — resuming normal operations
    [Mon Jul 02 13:54:55 2012] [notice] caught SIGTERM, shutting down

    [root@localhost ~]# service httpd restart
    Stopping httpd: [FAILED]
    Starting httpd: [Mon Jul 02 14:06:32 2012] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 804 will probably never match because it overlaps an earlier ScriptAlias.
    Syntax error on line 1026 of /etc/httpd/conf/httpd.conf:
    Base class package “JSON::RPC::Server::CGI” is empty.\n (Perhaps you need to ‘use’ the module which defines that package first,\n or make that module available in @INC (@INC contains: . lib /var/www/html/bugzilla /var/www/html/bugzilla/lib/i386-linux-thread-multi /var/www/html/bugzilla/lib /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 /etc/httpd).\n at /var/www/html/bugzilla/Bugzilla/WebService/Server/JSONRPC.pm line 25.\nBEGIN failed–compilation aborted at /var/www/html/bugzilla/Bugzilla/WebService/Server/JSONRPC.pm line 25.\nCompilation failed in require at /var/www/html/bugzilla/jsonrpc.cgi line 35.\nBEGIN failed–compilation aborted at /var/www/html/bugzilla/jsonrpc.cgi line 35.\nCompilation failed in require at (eval 2) line 1.\n
    [FAILED]

  • Girish Deshpande July 4, 2012, 11:22 am

    Hello,

    I am setting up sending the Emails to all the persons who are in the cc list and the watch list, whenever there is a change in the bug or a new bug is raised. But I am getting the following error

    There was an error sending mail from ‘admin@mobilitas.in’ to ‘xyz’: Couldn’t connect to smtpout.asia.secureserver.net .. Is there any problem with our bugzilla setup or is there any problem with the SMTP services of the hosting site.

    Please help me to come out of this situation.

    Thanks in advance.

    Regards,
    Girish

  • prashansa August 6, 2012, 3:24 am

    how can we install required perl module on fedora 17
    i have used command /usr/bin/perl install-module.pl –all
    but it’s not working it’s giving an error Can’t open perl script “install-module.pl”: No such file or directory

  • prashansa August 7, 2012, 4:46 am

    hi Rahul
    i am using fedora 17
    i have same paoblem as Chifor
    you have told to chk out the error_log file ,there is noting in that file (that file is blank)

    and when i do ./checksetup.pl it’s giving an error

    /*install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted.
    Compilation failed in require at (eval 1314) line 3, line 558.

    at Bugzilla/DB.pm line 1284*/

  • shafeequ September 4, 2012, 9:19 am

    HI,
    Thanks for helping out, but while following your tutorial line by line,

    here is the error i am getting.

    Syntax error on line 387 of /usr/local/apache/conf/httpd.conf:
    Invalid command ‘PerlConfigRequire’, perhaps misspelled or defined by a module not included in the server configuration

    Please help me to resolve this issue.

    Thanks,
    shafeeq

  • Nitto October 20, 2012, 2:38 pm

    For error related to Datetime

    try

    perl install-module.pl Math::Round

  • Cipher October 31, 2012, 1:40 am

    Dear all. Nice article. really appriciate your efforts. i am facing failed Apache restart with folling error.

    Starting httpd: [Wed Oct 31 12:37:46 2012] [warn] module perl_module is already loaded, skipping
    Syntax error on line 1015 of /etc/httpd/conf/httpd.conf:
    Can’t locate object method “set_max_unshared_size” via package “Apache2::SizeLimit” at /var/www/html/bugzilla/mod_perl.pl line 64.\nCompilation failed in require at (eval 2) line 1.\n
    [FAILED]

    i am new to perl and bugzilla. need your kind support.
    Regards,
    Cipher

  • Chrisjan October 31, 2012, 4:55 am

    When adding the following to the httpd.conf file:

    PerlSwitches -I/var/www/html/bugzilla -I/var/www/html/bugzilla/lib -w -T
    PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl

    I get a syntax error on

    PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl

    Any suggestions?

  • Herm October 31, 2012, 12:08 pm

    Hi, i´m trying to run on a Red hat 5 server:

    /usr/bin/perl install-module.pl –all

    Got this message:

    Can’t open perl script “install-module.pl”: No such file or directory

    Perl version is:
    This is perl, v5.8.8 built for x86_64-linux-thread-multi

    Came with Red hat, am I missing something?

    Regards.

  • winux28 November 18, 2012, 1:08 am

    Hi,

    Anyone there solved this problem:

    /etc/init.d/httpd restart
    Stopping httpd: [FAILED]
    Starting httpd: [Sun Nov 18 15:04:02 2012] [warn] module perl_module is already loaded, skipping
    Syntax error on line 1013 of /etc/httpd/conf/httpd.conf:
    Can’t locate /var/www/html/bugzilla/mod_perl.pl in @INC (@INC contains: /var/www/html/bugzilla /var/www/html/bugzilla/lib /usr/local/lib/perl5 /usr/local/share/perl5 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5 /usr/share/perl5 /etc/httpd) at (eval 2) line 1.\n
    [FAILED]

    Best Regards,
    winux28

  • prashansa December 10, 2012, 3:21 am

    while i am typing ./checksetup.pl ti’s giving an output like
    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.

    but while open and typing URL http://{IP address}/bugzilla
    then giving an error :
    Software error:

    Can’t connect to the database.
    Error: Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (13)
    Is your database installed and up and running?
    Do you have the correct username and password selected in localconfig?

  • Tushar December 23, 2012, 10:24 pm

    you also got to install mod_perl-devel otherwise you will get apache-sizelimit error

  • Kiyana January 8, 2013, 4:16 pm

    Hi Ramesh,

    Great tutorial! I was wondering if you could possibly help me though. I’m getting stuck at Step #9 – when I try to run the command ./checksetup.pl, I get this error:

    ./checksetup.pl: Command not found.

    Why is this happening? Can you help at all?

    Thank you!!

  • Sumit Dalvi March 28, 2013, 8:42 am

    Hey hi..

    i have finished all the steps and reached upto final screen which is

    “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.”

    but when i tried to hit URL , it throws error ‘ page not found’
    i have configured my apache port at 8045 for bugzilla
    at starting of installation.. need help.

    Thanks
    Sumit Dalvi.

  • Jay Jay July 18, 2013, 2:39 am

    Hello

    Thanks for the great article.
    I am not able to start the service and get this error.

    [root@xxx bugzilla]# service httpd start
    Starting httpd: Syntax error on line 1016 of /etc/httpd/conf/httpd.conf:
    Can’t locate object method “set_max_unshared_size” via package “Apache2::SizeLimit” at /var/www/html/bugzilla/mod_perl.pl line 64.\nCompilation failed in require at (eval 2) line 1.\n [FAILED]

    This was due to the fact that Apache2::SizeLimit was not installed properly. But when I install it I get the below error. Please help.

    [root@xxx bugzilla]# /usr/bin/perl install-module.pl Apache2::SizeLimit
    Checking for CPAN (v1.81) ok: found v1.94
    Checking for YAML (any) ok: found v0.84
    Checking for ExtUtils-MakeMaker (v6.31) ok: found v6.68
    CPAN: Storable loaded ok (v2.20)
    Going to read ‘/root/.cpan/Metadata’
    Database was generated on Wed, 17 Jul 2013 11:08:13 GMT
    Installing Apache2::SizeLimit version 0.96…
    Running install for module ‘Apache2::SizeLimit’
    Running make for P/PH/PHRED/Apache-SizeLimit-0.96.tar.gz
    CPAN: Digest::SHA loaded ok (v5.47)
    CPAN: Compress::Zlib loaded ok (v2.02)
    Checksum for /root/.cpan/source/authors/id/P/PH/PHRED/Apache-SizeLimit-0.96.tar.gz ok
    CPAN: Archive::Tar loaded ok (v1.58)
    Apache-SizeLimit-0.96/
    Apache-SizeLimit-0.96/Changes
    Apache-SizeLimit-0.96/INSTALL
    Apache-SizeLimit-0.96/lib/
    Apache-SizeLimit-0.96/LICENSE
    Apache-SizeLimit-0.96/Makefile.PL
    Apache-SizeLimit-0.96/MANIFEST
    Apache-SizeLimit-0.96/MANIFEST.SKIP
    Apache-SizeLimit-0.96/META.yml
    Apache-SizeLimit-0.96/README
    Apache-SizeLimit-0.96/t/
    Apache-SizeLimit-0.96/t/apache/
    Apache-SizeLimit-0.96/t/apache2/
    Apache-SizeLimit-0.96/t/pod.t
    Apache-SizeLimit-0.96/t/response/
    Apache-SizeLimit-0.96/t/response/TestApache/
    Apache-SizeLimit-0.96/t/response/TestApache2/
    Apache-SizeLimit-0.96/t/response/TestApache2/basic.pm
    Apache-SizeLimit-0.96/t/response/TestApache2/check_n_requests2.pm
    Apache-SizeLimit-0.96/t/response/TestApache2/deprecated.pm
    Apache-SizeLimit-0.96/t/response/TestApache2/zzz_check_n_requests.pm
    Apache-SizeLimit-0.96/t/response/TestApache/basic.pm
    Apache-SizeLimit-0.96/t/response/TestApache/check_n_requests2.pm
    Apache-SizeLimit-0.96/t/response/TestApache/deprecated.pm
    Apache-SizeLimit-0.96/t/response/TestApache/zzz_check_n_requests.pm
    Apache-SizeLimit-0.96/t/apache2/all.t
    Apache-SizeLimit-0.96/t/apache/all.t
    Apache-SizeLimit-0.96/lib/Apache/
    Apache-SizeLimit-0.96/lib/Apache2/
    Apache-SizeLimit-0.96/lib/Apache2/SizeLimit.pm
    Apache-SizeLimit-0.96/lib/Apache/SizeLimit/
    Apache-SizeLimit-0.96/lib/Apache/SizeLimit.pm
    Apache-SizeLimit-0.96/lib/Apache/SizeLimit/Core.pm
    CPAN: File::Temp loaded ok (v0.22)

    CPAN.pm: Going to build P/PH/PHRED/Apache-SizeLimit-0.96.tar.gz

    Can’t locate ModPerl/MM.pm in @INC (@INC contains: /var/www/html/bugzilla/lib/x86_64-linux-thread-multi /var/www/html/bugzilla/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at Makefile.PL line 60.
    Warning: No success on command[/usr/bin/perl Makefile.PL LIB=”/var/www/html/bugzilla/lib” INSTALLMAN1DIR=”/var/www/html/bugzilla/lib/man/man1″ INSTALLMAN3DIR=”/var/www/html/bugzilla/lib/man/man3″ INSTALLBIN=”/var/www/html/bugzilla/lib/bin” INSTALLSCRIPT=”/var/www/html/bugzilla/lib/bin” INSTALLDIRS=perl]
    PHRED/Apache-SizeLimit-0.96.tar.gz
    /usr/bin/perl Makefile.PL LIB=”/var/www/html/bugzilla/lib” INSTALLMAN1DIR=”/var/www/html/bugzilla/lib/man/man1″ INSTALLMAN3DIR=”/var/www/html/bugzilla/lib/man/man3″ INSTALLBIN=”/var/www/html/bugzilla/lib/bin” INSTALLSCRIPT=”/var/www/html/bugzilla/lib/bin” INSTALLDIRS=perl — NOT OK
    Skipping test because of notest pragma
    Running make install
    Make had some problems, won’t install

    Many thanks

  • agapito July 20, 2013, 2:03 pm

    ModPerl::MM try install this package on your cpan command is perl -MCPAN -e “install ModPerl::MM”

  • Kevin July 24, 2013, 6:08 pm

    I had to comment out the line in /etc/httpd/conf/httpd.conf:
    #PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl
    …in order to get httpd to start.

    Previous reply to do a ‘yum install mod_perl’ did not help, as yum reported that mod_perl was already installed.

  • agapito July 28, 2013, 9:59 am

    hi kevin

    You can try to install it on cpan, perl -MCPAN -e “install ModPerl::MM”

  • Kevin July 29, 2013, 11:17 am

    That was not the issue, and the step you suggested did not help.
    ModPerl is already installed. There’s a syntax error when the line:

    “PerlConfigRequire /var/www/html/bugzilla/mod_perl.pl”

    …is not commented out. Maybe I’m just missing a typo, but here’s the error.

    [root@tracker01 bugzilla]# service httpd restart
    Stopping httpd: [ OK ]
    Starting httpd: Syntax error on line 1024 of /etc/httpd/conf/httpd.conf:
    Can’t locate XMLRPC/Transport/HTTP.pm in @INC (@INC contains: /var/www/html/bugzilla/lib/x86_64-linux-thread-multi /var/www/html/bugzilla/lib /var/www/html/bugzilla /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 /etc/httpd) at /var/www/html/bugzilla/Bugzilla/WebService/Server/XMLRPC.pm line 11.\nBEGIN failed–compilation aborted at /var/www/html/bugzilla/Bugzilla/WebService/Server/XMLRPC.pm line 11.\nCompilation failed in require at /var/www/html/bugzilla/xmlrpc.cgi line 21.\nBEGIN failed–compilation aborted at /var/www/html/bugzilla/xmlrpc.cgi line 21.\nCompilation failed in require at (eval 2) line 1.\n
    [FAILED]

  • agapito July 29, 2013, 4:09 pm

    hi kevin
    sorry it didn’t help you cause i saw on your previous paste thought it was mod perl.pl

    how ever this error “arting httpd: Syntax error on line 1024 of /etc/httpd/conf/httpd.conf:
    Can’t locate XMLRPC/Transport/HTTP.pm in @INC (@INC contains: ”

    you can try installing this to cpan SOAP::Transport::HTTP and see if the error will be gone

    perl -MCPAN -e “install XMLRPC::Transport::HTTP”

    by the way if you’re having this similar erros “Can’t locate XMLRPC/Transport/HTTP.pm in @INC” you can try to search cpan package for them to install for fix if I’m not mistaking, correct me if I’m wrong

  • agapito July 29, 2013, 4:10 pm

    also if there as an error on installation can you post it also

  • Leif August 22, 2013, 8:15 am

    @Kevin

    Or if you are on a yum based distro and you prefer installing HTTP.pm from yum:

    $ yum install perl-SOAP-Lite

  • Kevin August 22, 2013, 10:49 am

    It worked, following your advice from July 29. I think there was a problem on CPAN when I tried it the first time, and some of the required pieces were unavailable. So, it’s working, I’ve got mod-perl installed. Thanks!

  • agapito August 22, 2013, 5:03 pm

    Glad it helped!

  • Wei August 28, 2013, 3:11 am

    Very useful!

  • BB September 19, 2013, 12:11 pm

    I’ve had no errors installing mod-perl or any of the other suggestions made by other commenters, but I am unable to restart apache. i get this error:

    Starting httpd: Syntax error on line 1013 of /etc/httpd/conf/httpd.conf:
    Unknown error\nCompilation failed in require at /usr/src/bugzilla/mod_perl.pl line 33.\nBEGIN failed–compilation aborted at /usr/src/bugzilla/mod_perl.pl line 33.\nCompilation failed in require at (eval 2) line 1.\n

    like Kevin experienced above, I can start the service when I comment out the last line in httpd.conf, but then I am unable to properly view bugzilla.

    any suggestions? please help!

  • Islipidyow October 14, 2013, 7:02 am

    i’m getting this error when i start apache. i’m on debian 7.1

    root@bugs:/var/log/apache2# service apache2 start
    [….] Starting web server: apache2Syntax error on line 2 of /etc/apache2/conf.d/bugzilla:
    Apache2::SizeLimit at the moment works only with non-threaded MPMs at /usr/local/lib/perl/5.14.2/Apache2/SizeLimit.pm line 31.\nCompilation failed in require at /var/www/bugzilla/mod_perl.pl line 52.\nBEGIN failed–compilation aborted at /var/www/bugzilla/mod_perl.pl line 52.\nCompilation failed in require at (eval 2) line 1.\n
    Action ‘start’ failed.
    The Apache error log may have more information.
    failed!
    root@bugs:/var/log/apache2#

    And the error logs only show these:

    root@bugs:/var/log/apache2# cat /var/log/apache2/error.log
    [Mon Oct 14 16:22:59 2013] [notice] Apache/2.2.22 (Debian) configured — resuming normal operations
    [Mon Oct 14 19:29:52 2013] [notice] caught SIGTERM, shutting down
    [Mon Oct 14 19:29:53 2013] [warn] module perl_module is already loaded, skipping
    [Mon Oct 14 19:29:53 2013] [notice] Apache/2.2.22 (Debian) mod_perl/2.0.7 Perl/v5.14.2 configured — resuming normal operations
    [Mon Oct 14 19:30:53 2013] [notice] caught SIGTERM, shutting down
    [Mon Oct 14 19:30:54 2013] [notice] Apache/2.2.22 (Debian) mod_perl/2.0.7 Perl/v5.14.2 configured — resuming normal operations
    [Mon Oct 14 19:35:27 2013] [notice] caught SIGTERM, shutting down
    [Mon Oct 14 19:35:28 2013] [notice] Apache/2.2.22 (Debian) mod_perl/2.0.7 Perl/v5.14.2 configured — resuming normal operations
    [Mon Oct 14 19:37:59 2013] [notice] caught SIGTERM, shutting down
    [Mon Oct 14 19:38:00 2013] [notice] Apache/2.2.22 (Debian) mod_perl/2.0.7 Perl/v5.14.2 configured — resuming normal operations
    [Mon Oct 14 20:50:38 2013] [notice] caught SIGTERM, shutting down
    root@bugs:/var/log/apache2#

    Now i’m stuck 🙁

    Can you point me to the right direction?

    TIA,
    Aaron

  • Karthik December 5, 2013, 11:41 am

    Hi,

    very nice article. thank you.
    I would like to install bugzilla on shared hosting site (godaddy) where we can only copy the files/binaries and no other permissions apart from that

    do you have any steps for that?

    Thanks,
    Karthik

  • Kiran Antony December 22, 2013, 4:12 am

    I just deleted a table from the bug database after that when i am rtying to log a bug am getting an error like
    undef error – DBD::mysql::db selectall_arrayref failed: Unknown column ‘value’ in ‘field list’ [for Statement “SELECT id,value,sortkey,isactive,visibility_value_id FROM cf_ios WHERE visibility_value_id = ? ORDER BY sortkey, value”] at Bugzilla/Object.pm line 269 Bugzilla::Object::_do_list_select(‘Bugzilla::Field::Choice::cf_ios’, ‘visibility_value_id = ?’, ‘ARRAY(0x2d5b318)’, undef) called at Bugzilla/Object.pm line 246 Bugzilla::Object::match(‘Bugzilla::Field::Choice::cf_ios’, ‘HASH(0x2d5b408)’) called at Bugzilla/Field/ChoiceInterface.pm line 134 Bugzilla::Field::ChoiceInterface::controlled_values(‘Bugzilla::Field::Choice::rep_platform=HASH(0x29a4100)’) called at template/en/default/bug/field-events.js.tmpl line 59 eval {…} called at template/en/default/bug/field-events.js.tmpl line 59 eval {…} called at template/en/default/bug/field-events.js.tmpl line 70 eval {…} called at template/en/default/bug/field-events.js.tmpl line 18 Template::Provider::__ANON__(‘Bugzilla::Template::Context=HASH(0x2762108)’) called at /usr/local/lib64/perl5/Template/Document.pm line 163 eval {…} called at /usr/local/lib64/perl5/Template/Document.pm line 161 Template::Document::process(‘Template::Document=HASH(0x2d81740)’, ‘Bugzilla::Template::Context=HASH(0x2762108)’) called at /usr/local/lib64/perl5/Template/Context.pm line 351 eval {…} called at /usr/local/lib64/perl5/Template/Context.pm line 321 Template::Context::process(‘Bugzilla::Template::Context=HASH(0x2762108)’, ‘bug/field-events.js.tmpl’, ‘HASH(0x2d81fb0)’, ‘localize me!’) called at Bugzilla/Template/Context.pm line 31 Bugzilla::Template::Context::process(‘Bugzilla::Template::Context=HASH(0x2762108)’, ‘bug/field-events.js.tmpl’, ‘HASH(0x2d81fb0)’, ‘localize me!’) called at /usr/local/lib64/perl5/Template/Context.pm line 409 Template::Context::include(‘Bugzilla::Template::Context=HASH(0x2762108)’, ‘bug/field-events.js.tmpl’, ‘HASH(0x2d81fb0)’) called at template/en/default/bug/field.html.tmpl line 138 eval {…} called at template/en/default/bug/field.html.tmpl line 18 Template::Provider::__ANON__(‘Bugzilla::Template::Context=HASH(0x2762108)’) called at /usr/local/lib64/perl5/Template/Document.pm line 163 eval {…} called at /usr/local/lib64/perl5/Template/Document.pm line 161 Template::Document::process(‘Template::Document=HASH(0x2cc7ae8)’, ‘Bugzilla::Template::Context=HASH(0x2762108)’) called at /usr/local/lib64/perl5/Template/Context.pm line 351 eval {…} called at /usr/local/lib64/perl5/Template/Context.pm line 321 Template::Context::process(‘Bugzilla::Template::Context=HASH(0x2762108)’, ‘bug/field.html.tmpl’, ‘HASH(0x2d1b770)’, ‘localize me!’) called at Bugzilla/Template/Context.pm line 31 Bugzilla::Template::Context::process(‘Bugzilla::Template::Context=HASH(0x2762108)’, ‘bug/field.html.tmpl’, ‘HASH(0x2d1b770)’, ‘localize me!’) called at /usr/local/lib64/perl5/Template/Context.pm line 409 Template::Context::include(‘Bugzilla::Template::Context=HASH(0x2762108)’, ‘bug/field.html.tmpl’, ‘HASH(0x2d1b770)’) called at template/en/default/bug/create/create.html.tmpl line 277 eval {…} called at template/en/default/bug/create/create.html.tmpl line 18 Template::Provider::__ANON__(‘Bugzilla::Template::Context=HASH(0x2762108)’) called at /usr/local/lib64/perl5/Template/Document.pm line 163 eval {…} called at /usr/local/lib64/perl5/Template/Document.pm line 161 Template::Document::process(‘Template::Document=HASH(0x2964758)’, ‘Bugzilla::Template::Context=HASH(0x2762108)’) called at /usr/local/lib64/perl5/Template/Context.pm line 351 eval {…} called at /usr/local/lib64/perl5/Template/Context.pm line 321 Template::Context::process(‘Bugzilla::Template::Context=HASH(0x2762108)’, ‘Template::Document=HASH(0x2964758)’) called at Bugzilla/Template/Context.pm line 31 Bugzilla::Template::Context::process(‘Bugzilla::Template::Context=HASH(0x2762108)’, ‘Template::Document=HASH(0x2964758)’) called at /usr/local/lib64/perl5/Template/Service.pm line 94 eval {…} called at /usr/local/lib64/perl5/Template/Service.pm line 91 Template::Service::process(‘Template::Service=HASH(0x26b2b98)’, ‘bug/create/create.html.tmpl’, ‘HASH(0x2644818)’) called at /usr/local/lib64/perl5/Template.pm line 66 Template::process(‘Bugzilla::Template=HASH(0x2674f68)’, ‘bug/create/create.html.tmpl’, ‘HASH(0x2644818)’) called at Bugzilla/Template.pm line 548 Bugzilla::Template::process(‘Bugzilla::Template=HASH(0x2674f68)’, ‘bug/create/create.html.tmpl’, ‘HASH(0x2644818)’) called at /var/www/html/bugzilla/enter_bug.cgi line 352

    Can any one help me in this.. its very urgent.. 🙁

  • Hardik Sompura January 8, 2014, 11:18 pm

    When i run ./checkstep.pl got error message which given below:-

    Checking for Email-Reply (any) ok: found v1.202
    Checking for TheSchwartz (any) ok: found v1.10
    Subroutine File::Slurp::O_RDWR redefined at lib/File/Slurp.pm line 11
    Subroutine File::Slurp::O_CREAT redefined at lib/File/Slurp.pm line 11
    Subroutine File::Slurp::O_EXCL redefined at lib/File/Slurp.pm line 11
    Checking for Daemon-Generic (any) ok: found v0.82
    Checking for mod_perl (v1.999022) ok: found v2.000004
    Checking for Apache-SizeLimit (v0.96) ok: found v0.96
    WARNING: We could not check the configuration of Apache. This sometimes
    happens when you are not running checksetup.pl as root. To see the
    problem we ran into, run: /usr/sbin/apachectl -t -D DUMP_MODULES

    Reading ./localconfig…
    Checking for DBD-mysql (v4.001) ok: found v4.025
    /usr/bin/perl: symbol lookup error: lib/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so: undefined symbol: mysql_init

  • Anonymous February 25, 2014, 3:51 am

    I’m getting following error after installing
    /usr/bin/perl install-module.pl –all
    the following modules are not found even after sudo cpan App::cpanminus
    ————————–
    Checking perl modules…
    Checking for CGI.pm (v3.51) ok: found v3.63
    Checking for Digest-SHA (any) ok: found v5.61
    Checking for TimeDate (v2.21) ok: found v2.24
    Checking for DateTime (v0.28) not found
    Checking for DateTime-TimeZone (v0.71) not found
    Checking for DBI (v1.614) ok: found v1.616
    Checking for Template-Toolkit (v2.22) ok: found v2.25
    Checking for Email-Send (v2.00) ok: found v2.199
    Checking for Email-MIME (v1.904) ok: found v1.926
    Checking for URI (v1.37) ok: found v1.60
    Checking for List-MoreUtils (v0.22) ok: found v0.33
    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.020
    Checking for DBD-SQLite (v1.29) ok: found v1.40
    Checking for DBD-Oracle (v1.19) not found

    The following Perl modules are optional:

    ———————————-

    Installing /var/www/bugzilla/lib/bin/instmodsh
    Appending installation info to /var/www/bugzilla/lib/x86_64-linux-gnu-thread-multi/perllocal.pod
    BINGOS/ExtUtils-MakeMaker-6.90.tar.gz
    sudo /usr/bin/make install — OK
    cannot unlink file for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot restore permissions to 0100555 for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot remove directory for /var/www/bugzilla/lib/bin: Directory not empty at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    Installing DateTime version 1.07…
    DateTime is up to date (1.07).
    cannot unlink file for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot restore permissions to 0100555 for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot remove directory for /var/www/bugzilla/lib/bin: Directory not empty at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    Installing DateTime::TimeZone version 1.64…
    DateTime::TimeZone is up to date (1.64).
    cannot unlink file for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot restore permissions to 0100555 for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot remove directory for /var/www/bugzilla/lib/bin: Directory not empty at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    Installing GD version 2.52…
    Running install for module ‘GD’
    Running make for L/LD/LDS/GD-2.52.tar.gz
    Checksum for /home/pramod/.cpan/source/authors/id/L/LD/LDS/GD-2.52.tar.gz ok

    CPAN.pm: Going to build L/LD/LDS/GD-2.52.tar.gz

    **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.
    Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site LIB=”/var/www/bugzilla/lib” INSTALLMAN1DIR=”/var/www/bugzilla/lib/man/man1″ INSTALLMAN3DIR=”/var/www/bugzilla/lib/man/man3″ INSTALLBIN=”/var/www/bugzilla/lib/bin” INSTALLSCRIPT=”/var/www/bugzilla/lib/bin” INSTALLDIRS=perl]
    LDS/GD-2.52.tar.gz
    /usr/bin/perl Makefile.PL INSTALLDIRS=site LIB=”/var/www/bugzilla/lib” INSTALLMAN1DIR=”/var/www/bugzilla/lib/man/man1″ INSTALLMAN3DIR=”/var/www/bugzilla/lib/man/man3″ INSTALLBIN=”/var/www/bugzilla/lib/bin” INSTALLSCRIPT=”/var/www/bugzilla/lib/bin” INSTALLDIRS=perl — NOT OK
    Skipping test because of notest pragma
    Running make install
    Make had some problems, won’t install
    Could not read metadata file. Falling back to other methods to determine prerequisites
    cannot unlink file for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot restore permissions to 0100555 for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot remove directory for /var/www/bugzilla/lib/bin: Directory not empty at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    Installing Chart::Lines version 2.004006…
    Chart::Lines is up to date (2.4.6).
    cannot unlink file for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot restore permissions to 0100555 for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot remove directory for /var/www/bugzilla/lib/bin: Directory not empty at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    Installing Template::Plugin::GD::Image version 1.56…
    Template::Plugin::GD::Image is up to date (1.56).
    cannot unlink file for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot restore permissions to 0100555 for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot remove directory for /var/www/bugzilla/lib/bin: Directory not empty at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    Installing GD::Text version 0.86…
    GD::Text is up to date (0.86).
    cannot unlink file for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot restore permissions to 0100555 for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot remove directory for /var/www/bugzilla/lib/bin: Directory not empty at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    Installing GD::Graph version 1.48…
    GD::Graph is up to date (1.48).
    cannot unlink file for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot restore permissions to 0100555 for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot remove directory for /var/www/bugzilla/lib/bin: Directory not empty at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    Installing XML::Twig version 3.44…
    XML::Twig is up to date (3.44).
    cannot unlink file for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot restore permissions to 0100555 for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot remove directory for /var/www/bugzilla/lib/bin: Directory not empty at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    Installing Apache2::SizeLimit version 0.96…
    Running install for module ‘Apache2::SizeLimit’
    Running make for P/PH/PHRED/Apache-SizeLimit-0.96.tar.gz
    Checksum for /home/pramod/.cpan/source/authors/id/P/PH/PHRED/Apache-SizeLimit-0.96.tar.gz ok

    CPAN.pm: Going to build P/PH/PHRED/Apache-SizeLimit-0.96.tar.gz

    Can’t find mod_perl installed
    The error was: Can’t locate mod_perl2.pm in @INC (@INC contains: /var/www/bugzilla/lib/x86_64-linux-gnu-thread-multi /var/www/bugzilla/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at Makefile.PL line 149.
    Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site LIB=”/var/www/bugzilla/lib” INSTALLMAN1DIR=”/var/www/bugzilla/lib/man/man1″ INSTALLMAN3DIR=”/var/www/bugzilla/lib/man/man3″ INSTALLBIN=”/var/www/bugzilla/lib/bin” INSTALLSCRIPT=”/var/www/bugzilla/lib/bin” INSTALLDIRS=perl]
    PHRED/Apache-SizeLimit-0.96.tar.gz
    /usr/bin/perl Makefile.PL INSTALLDIRS=site LIB=”/var/www/bugzilla/lib” INSTALLMAN1DIR=”/var/www/bugzilla/lib/man/man1″ INSTALLMAN3DIR=”/var/www/bugzilla/lib/man/man3″ INSTALLBIN=”/var/www/bugzilla/lib/bin” INSTALLSCRIPT=”/var/www/bugzilla/lib/bin” INSTALLDIRS=perl — NOT OK
    Skipping test because of notest pragma
    Running make install
    Make had some problems, won’t install
    cannot unlink file for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot restore permissions to 0100555 for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot remove directory for /var/www/bugzilla/lib/bin: Directory not empty at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    Installing DBD::Pg version 3.0.0…
    Running install for module ‘DBD::Pg’
    Running make for T/TU/TURNSTEP/DBD-Pg-3.0.0.tar.gz
    Checksum for /home/pramod/.cpan/source/authors/id/T/TU/TURNSTEP/DBD-Pg-3.0.0.tar.gz ok

    CPAN.pm: Going to build T/TU/TURNSTEP/DBD-Pg-3.0.0.tar.gz

    Configuring DBD::Pg 3.0.0
    You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.
    Enter a valid PostgreSQL postgres major version number
    Enter a valid PostgreSQL postgres minor version number
    Enter a valid PostgreSQL postgres patch version number
    You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.
    You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.
    Enter a valid PostgreSQL postgres bin dir
    You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.
    Enter a valid PostgreSQL postgres include dir
    No POSTGRES_HOME defined, cannot find automatically
    Warning: No success on command[/usr/bin/perl Makefile.PL INSTALLDIRS=site LIB=”/var/www/bugzilla/lib” INSTALLMAN1DIR=”/var/www/bugzilla/lib/man/man1″ INSTALLMAN3DIR=”/var/www/bugzilla/lib/man/man3″ INSTALLBIN=”/var/www/bugzilla/lib/bin” INSTALLSCRIPT=”/var/www/bugzilla/lib/bin” INSTALLDIRS=perl]
    TURNSTEP/DBD-Pg-3.0.0.tar.gz
    /usr/bin/perl Makefile.PL INSTALLDIRS=site LIB=”/var/www/bugzilla/lib” INSTALLMAN1DIR=”/var/www/bugzilla/lib/man/man1″ INSTALLMAN3DIR=”/var/www/bugzilla/lib/man/man3″ INSTALLBIN=”/var/www/bugzilla/lib/bin” INSTALLSCRIPT=”/var/www/bugzilla/lib/bin” INSTALLDIRS=perl — NOT OK
    Skipping test because of notest pragma
    Running make install
    Make had some problems, won’t install
    cannot unlink file for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot restore permissions to 0100555 for /var/www/bugzilla/lib/bin/instmodsh: Permission denied at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206
    cannot remove directory for /var/www/bugzilla/lib/bin: Directory not empty at /var/www/bugzilla/Bugzilla/Install/CPAN.pm line 206

  • Chris B. April 28, 2014, 5:19 pm

    Since I came across this page while investigating an ‘Apache2::SizeLimit at the moment works only with non-threaded MPMs’ error I received, I have since figured out what was going wrong and how to fix it. I posted a response here.

    Hope it helps.

  • Fuad D. May 28, 2014, 12:23 pm

    Hello.

    I solved the Apache2::SizeLimit installation here.

    However, after i completed installation I had another problem. I tried to login to Bugzilla and a sent me to a Error 500 page. I checked my logs and and the following showed up:

    Apache2::SizeLimit httpd process too big, exiting at SIZE=654700 KB SHARE=4904 KB UNSHARED=649796 REQUESTS=2 LIFETIME=0 seconds

    I can’t login because of a problem of size limit with Apache2::SizeLimit. I tried several ways to fix this problem but I can’t. Should I change my Apache configuration at httpd.conf, or where should I change the size limit and how?

    Any response or comment will be very appreciated. Thanks in advance.
    Regards.

  • Sriraman P July 31, 2014, 8:56 pm

    Hi Ramesh

    Thank you very much for the artical. I have installed bugzilla-4-4-5 on Redhat 5.10 (64 bint) installation went well however i am getting the belwo error while hitting the page.

    Software error:

    Can’t locate object method “new” via package “Bugzilla::User” at Bugzilla.pm line 283.
    For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.

    how to resolve this issue

    Thanks
    Sriraman

  • Marion September 17, 2014, 7:03 pm

    I know it is 4 years later, but this guide really saved my bacon. I was installing bugzilla-4.4-5 on a rhel5 machine and never could get the documentation to line up with what I needed to do, so this guide did the trick. Thanks again.

  • indseed October 17, 2014, 1:27 am

    Hi,
    I am getting error when try to do this. Buggzilla-4.4.5

    ./checksetup.pl –check-modules
    Out of memory!

    I am running in
    lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 14.04.1 LTS
    Release: 14.04
    Codename: trusty

    Please can you help me in this

  • Daniela Rivera November 20, 2014, 5:28 pm

    I’m trying to install bugzilla4.4.6 on ubuntu 14.04 but i’m stuck on step 6. I run the command to try to install all modules and then run the check again but i get the same results as the first check. I also tried installing modules one by one but still i get no results.

  • sumalatha April 24, 2015, 12:55 am

    Hi Ramesh

    This artical is very good and i have a question.
    Is there any config file that stores template of “Software error:” message.

    Since i wanted to customize the Displayed error message for my application.
    ex:
    for any query related issues, its displaying the complete table structure and complete query information. i wanted to hide the data related to query from displaying.

    Please help me in doing this.

    Thanks
    Sumalatha

  • ankush kalra January 14, 2016, 5:41 pm

    I am installing bugzilla on RHEL 6.x server which is not on internet.

    I have followed below URL for installation:

    As my server is not on internet below command fails which is necessary for installing bugzilla

    /usr/bin/perl install-module.pl –all
    I have googled and failed for find installation of bugzilla without internet.

    Please suggest is there any method to install bugzilla without internet.

    Thanks

  • vicky sharma February 2, 2016, 8:10 am

    hi all,
    i am stuck on this error someone please help me.
    AH00526: Syntax error on line 505 of /home/automation/bugzilla/apache_ssl/apache2/conf/httpd.conf:
    Apache2::SizeLimit at the moment works only with non-threaded MPMs at /usr/local/lib64/perl5/Apache2/SizeLimit.pm line 31.\nCompilation failed in require at /home/automation/bugzilla/apache_ssl/apache2/htdocs/bugzilla/mod_perl.pl line 54.\nBEGIN failed–compilation aborted at /home/automation/bugzilla/apache_ssl/apache2/htdocs/bugzilla/mod_perl.pl line 54.\nCompilation failed in require at (eval 2) line 1.\n

  • Sanjeev Kumar N February 17, 2016, 3:55 am

    Hi All,

    Beautiful link, covers all the topic of Bugzilla installation.
    Need help in configuring different port for Buzilla, as default port is used bye gitlab-CE. Please help me out.

  • Jenny Z March 1, 2016, 7:24 am

    When i run ./checksetup.pl, i get errors below:
    ./localconfig…
    Checking for DBD-mysql (v4.001) ok: found v4.033
    /usr/bin/perl: symbol lookup error: lib/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so: undefined symbol: mysql_options4
    You have new mail in /var/spool/mail/root

    Any suggestions? Thank you!