CentOS6 install bugzilla tutorial

Source: Internet
Author: User
System environment in this article: CentOSrelease5.7 (Final) x64 I. host name configuration (optional) cat/etc/hosts # Donotremovethefollowingline, orvariousprograms # Region. #: 1 localhos

System environment: CentOS release 5.7 (Final) x64

1. host name configuration (not required)
Cat/etc/hosts
# Do not remove the following line, or various programs
# That require network functionality will fail.
#: 1 localhost6.localdomain6 localhost6
192.168.1.252 octest.test.com
192.168.1.252 test.com

II. install apache
1. yum install httpd-y
2. configuration
Change the port number, VM, and cgi support as needed.
A \ for example, ServerName 192.168.1.252: 8090
Add index. cgi to B \ DirectoryIndex (put first)
C \ remove # AddHandler cgi-script. cgi #
D \ comment the following four lines
#
# Options FollowSymLinks
# AllowOverride None
#
E \

Options Indexes FollowSymLinks
AllowOverride None
AllowOverride all
Options + ExecCGI + FollowSymLinks
DirectoryIndex index. cgi
Order allow, deny
Allow from all

F \/etc/init. d/httpd restart

III. install mysql
1. yum install mysql *-y
2. create a mysql account with permissions
Grant all on bugs. * TO bugs @ localhost identified by '000000 ′;
Flush privileges

4. configure SMTP
The new version of bugzilla comes with the SMTP service. you only need to enable and set it, and do not need sendmail support.
Vim ../data/params
Configure
Maintainer: test@test.com
Mail_delivery_method: SMTP
Mailfrom: test@test.com

Smtpserver: smtp.test.com
Smtp_username: test@test.com
Smtp_password :**********
Note: maintainer and mailfrom must be the same! The smtp_username mailbox must be an existing real mailbox, and the smtp_password is the password of the mailbox (it must be the same as the password when you log on to the mailbox )!

5. install the perl module required by bugzilla
Here we use the latest bugzilla-4.2.3.tar.gz
: Wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.2.3.tar.gz
Tar zxvf bugzilla-4.2.3.tar.gz
Cd bugzilla-4.2.3
Perl checksetup. pl
The perl packages that must be installed are compiled and installed online or automatically installed.
AppConfig CGI Data: Format dbi dbd: mysql Template TimeDate
For example:
1, compile and install tar-zxvf AppConfig-1.56.tar.gz
Cd AppConfig-1.56
Perl Makefile. PL
Make
Make test
Make install
2. install cpan Data: Format (force install Data: Format) online)
3, automatically install all/usr/bin/perl install-module.pl-all
Check again after installation:
Perl checksetup. pl
* This is Bugzilla 4.2.3 on perl 5.8.8
* Running on Linux 2.6.18-274. el5xen #1 SMP Fri Jul 22 05:31:07 EDT 2011

Checking perl modules...
Checking for CGI. pm (v3.21) OK: found v3.49
Checking for Digest-SHA (any) OK: found v5.72
Checking for TimeDate (v2.21) OK: found v2.24
Checking for DateTime (v0.28) OK: found v0.53
Checking for DateTime-TimeZone (v0.71) OK: found v1.50
Checking for DBI (v1.41) OK: found v1.622
Checking for Template-Toolkit (v2.22) OK: found v2.24
Checking for Email-Send (v2.00) OK: found v2.198
Checking for Email-MIME (v1.861) OK: found v1.911
Checking for Email-MIME-Encodings (v1.313) OK: found v1.313
Checking for Email-MIME-Modifier (v1.442) OK: found v1.911
Checking for URI (any) OK: found v1.60

Checking available perl DBD modules...
Checking for DBD-Pg (v1.45) OK: found v1.49
Checking for DBD-mysql (v4.00) OK: found v4.022

6. Bugzilla configuration
1. vim localconfig
#Generate an index.html file pointing to index. cgi
: $ S/index_html = 0/index_html = 1/g
# Mysql User password, which is consistent with the previous password by default
$ Db_pass = '000000 ′

2, perl checksetup. pl
Enter administrator email bugadmin@test.com
Enter the real name:
Enter the logon password:
The prompt is complete.

3. here, we 'd better go to mysql to verify whether the table required by bugzilla has been created.
Mysql-uroot-p-S/var/lib/mysql. sock
Mysql> use bugs
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with-

Database changed
Mysql> show tables;
+ ---------- +
| Tables_in_bugs |
+ ---------- +
| Attach_data |
| Attachments |
| Audit_log |
| Bug_group_map |
| Bug_see_also |
| Bug_severity |
| Bug_status |
| Bug_tag |
| Bugs |
| Bugs_activity |

4. add permissions
Chown-R root. apache bugzilla/
Chmod-R 777 bugzilla/

In this way, the installation of bugzilla is complete.

7. login and access

Http: // 192.168.1.252: 8090/bugzilla

Enter the management account and password to log on.

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.