1. Install the bugzilla dependent library.
Yum install GD Gd-devel httpd mysqld GCC g ++ make
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 and configure the bugzilla database.
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. *
Bugs @ localhost identified by 'passwd ';
3. Download and install bugzllia.
Http://www.bugzilla.org/download/#stable
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. Modify the httpd. conf file to create a virtual path for bugzllia.
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
5. log on to bugzllia.
Http: // ip/Bugzilla