How to build a Bug management system Bugzilla in CentOS

Source: Internet
Author: User

As one of the best Bug management systems, Bugzilla is an open-source software mainly written in Perl. It is used by many companies or organizations, such as RedHat and Linux kernel.
I am also using Bugzilla in my company to manage bugs. Recently I have been customizing Bugzilla. I also want to write about the installation process of Bugzilla.
This document records the process of installing Bugzilla on the Web server using Nginx on the CentOS system. In addition, some details are left blank and some major processes are written, there are also good documents in the references below.

1. Download the source code of Bugzilla.

2. Install necessary software packages:

Yum install perl-CPAN
Yum install mod_perl
Yum install mod_perl-devel
Yum install fcgi-perl

3. Install necessary perl modules and check installation

Cd bugzilla
Perl install-module.pl -- all
./Checksetup. pl

Of course, this also involves interactive input configurations such as the MySQL User name and password.

4. Start the fastcgi wrapper program, download it from here (fastcgi-wrapper), and run it.

5. Modify the Nginx configuration file so that it can normally process the perl CGI program. One of my modifications is as follows:

The code is as follows: Copy code
Diff -- git a/nginx. conf B/nginx. conf
Index 8730c99 .. 114d9d8 100644
--- A/nginx. conf
++ B/nginx. conf
@-83,10 + 83,20 @ http {
# Config_cmd_end
 
Location /{
If (! -F $ request_filename ){
Proxy_pass http: // jboss8080;
Break;
            }
Root/usr/local/nginx/html;
Index index.html index.htm index. cgi index. pl;
# If (! -F $ request_filename ){
# Proxy_pass http: // jboss8080;
# Break;
#}
        }

Location ~ . Pl | cgi $ {
Root html;
Fastcgi_pass 127.0.0.1: 8999;
Fastcgi_index index. pl;
Fastcgi_param SCRIPT_FILENAME $ document_root $ fastcgi_script_name;
Include fastcgi_params;
         }
 
Error_page 500 502 503 x.html;




6. Finally, modify the permissions of the bugzilla directory and restart nginx. For example:

Cd/usr/local/nginx/
Chown nobody: nobody html-R
Service nginx restart

Due to the lack of software packages, possible problems and solutions during installation are as follows:

1. [root @ jay-centos html] # perl install-module.pl-all
Can't locate CPAN. pm in @ INC (@ INC contains: /usr/local/nginx/html/lib/x86_64-linux-thread-multi/usr/local/nginx/html/lib/usr/local/nginx/html/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/usr/local/nginx/html/Bugzilla/Install/CPAN. pm line 24.
BEGIN failed-compilation aborted at/usr/local/nginx/html/Bugzilla/Install/CPAN. pm line 24.
Compilation failed in require at install-module.pl line 21.
BEGIN failed-compilation aborted at install-module.pl line 21.
Solution: yum install perl-CPAN

2. Can't find mod_perl installed
The error was: Can't locate mod_perl2.pm in @ INC (@ INC contains: /usr/local/nginx/html/lib/x86_64-linux-thread-multi/usr/local/nginx/html/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 149.
Solution: yum install mod_perl

3. can't locate ModPerl/MM. pm in @ INC (@ INC contains: /usr/local/nginx/html/lib/x86_64-linux-thread-multi/usr/local/nginx/html/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.
Solution: yum install mod_perl-devel

4. [root @ jay-centos html] #./fastcgi-wrapper
Can't locate FCGI. pm in @ INC (@ INC contains: /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. /fastcgi-wrapper line 3.
BEGIN failed-compilation aborted at./fastcgi-wrapper line 3.
Solution: yum install fcgi-perl

References:

Http://www.bugzilla.org/docs/4.4/en/html/installation.html

Http://blog.hyperexpert.com/how-to-install-the-latest-bugzilla-on-centos/

Http://blog.codylab.com/install-bugzilla-centos-6-3-step-step/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.