How to install Bugzilla in linux (rhel5, centos5)

Source: Internet
Author: User
Tags bug tracking system install perl
Install Bugzilla in linux (rhel5, centos5)-Linux Enterprise Application-Linux server application information. For more information, see the following. Bugzilla is the most widely used and has a good bug tracking system, but it is difficult for many people to install it. Here I have written a simple installation guide.

Install and configure Bugzilla 3

1. Install http and mysql

Yum install gd-devel httpd mysqld gcc g ++ make

Rpm-Uhv http://apt.sw.be/packages/rpmfor... 6-1.el5.rf.i386.rpm

The above is added to third-party extension sources. Many packages have been compiled and can be directly used.

Yum install perl-XML-Twig
Yum install ImageMagick-perl
Yum install mod_perl
Yum install perl-HTML-Parser
Yum install perl-Email-MIME-Attachment-Stripper
Yum install perl-Chart
Yum install perl-PatchReader

Yum install perl-Net-LDAP

2. Generate the Bugzilla database user and assign Permissions
Mysql-uroot-p

Mysql> create database bugs default character set utf8

Mysql> grant select, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, lock tables, create temporary tables, DROP, references on bugs. * TO bugs @ localhost identified by 'passwd ';

3. Download and install Bugzilla, and download and install the Perl module.

First, check whether the corresponding perl module has been installed:
./Checksetup. pl? Check-modules

The following content appears:

Install the required perl package:
/Usr/bin/perl-MCPAN-e 'Install Email: send'
/Usr/bin/perl-MCPAN-e 'Install template'
/Usr/bin/perl-MCPAN-e 'Install Email: MIME: modifier'

Install an optional perl package:
/Usr/bin/perl-MCPAN-e 'Install GD: graph'
/Usr/bin/perl-MCPAN-e 'Install Template: Plugin: GD: image'
/Usr/bin/perl-MCPAN-e 'Install Email: reply'
/Usr/bin/perl-MCPAN-e 'Install Email: MIME: Attachment: Stripper'
/Usr/bin/perl-MCPAN-e 'Install HTML: scrubber'
/Usr/bin/perl-MCPAN-e 'Install XML: Twig'
/Usr/bin/perl-MCPAN-e 'Install Chart: base'
/Usr/bin/perl-MCPAN-e 'Install Apache: dbi'

With that missing, you can use the command to install the package: perl-MCPAN-e 'package name'

If all are OK.

Modify the localconfig file and set the database access method.
Modify the following settings of localconfig:
$ Db_pass = ";
Is
$ Db_pass = 'passwd ';

Run CheckSetup. pl again to initialize the database.

4. Create a virtual path for Bugzilla in IIS Manager

Finally, configure the apache server to make Bugzilla 3 available later. In this step, you only need to add the following files:

/Etc/httpd/conf. d/bugzilla. conf

The content of the/etc/httpd/conf. d/bugzilla. conf file is as follows:

#
# This configuration file is bugzilla.
#

Alias/bugzilla "/var/www/bugzilla"


AddHandler cgi-script. cgi
Options + Indexes + ExecCGI
DirectoryIndex index. cgi
AllowOverride Limit
Order allow, deny
Allow from all


After adding the apache configuration file, restart httpd. If the file does not take effect after restart, restart the Server Host:

Service httpd restart

6. configuration, Chinese Bugzilla

Http: // IP/bugzilla

If you can see the page, you can basically make sure that Bugzilla 3 is properly installed and can be used properly. If you need to customize Bugzilla 3, log on to Bugzilla 3 as a system administrator and set it accordingly.

Remember to use the email address you set as the Administrator name. I used to use the name set during installation, but I found it later.

Bugzilla's localization is actually very simple.

Log on to sourceforge, And the bugzilla-cn of the bugzilla Chinese project is on sourceforge.

After downloading the file, put the default directory in cn_UTF8.zip into template/en and rename it custom.

Note: I do not know why setting the administrator password does not take effect. If I forget the super user Password. There is no ip address that can be reversed, which means that the mail sent by sendmail cannot reach the destination.

In this way, new users cannot obtain the random password generated during registration.

To solve this problem, you can change mail_delivery_method in data/params to testfile, so that the mail content is not sent through MTA, but saved in data/mailer. testfile. In this way, a common user is available. Then, on the mysql console, change the user's userid in the profiles table in the bugs database to 1, and then the user becomes the super user.

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.