Centos6.5 build bugzilla

Source: Internet
Author: User
Tags valid email address

Centos6.5 build bugzilla

1. Install httpd, mod_ssl, mysql-server, mysql, php-mysql, gcc, perl *, and mod-perl-devel.

[Root @ localhost ~] # Yum-y install httpd mod_ssl mysql-server mysql php-mysql gcc perl * mod_perl-devel

[Root @ localhost ~] # Service iptables stop # disable Firewall

[Root @ localhost ~] # Setenforce 0 # disable selinux

[Root @ localhost ~] # Service httpd start # start httpd

[Root @ localhost ~] # Chkconfig httpd on # Add 2345-level startup

[Root @ localhost ~] # Service mysqld start # start a mysql database

[Root @ localhost ~] # Chkconfig mysqld on # Add 2345-level startup

[Root @ localhost ~] # Mysqladmin-uroot-p password "666666" # change the password of mysql and root user to 666666, Which is empty by default.

Enter password:

[Root @ localhost ~] # Mysql-uroot-p666666 # log on to mysql using the root account

Welcome to the MySQL monitor. Commands end with; or \ g.

Your MySQL connection id is 4

Server version: 5.1.73 Source distribution

Copyright (c) 2000,201 3, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

Affiliates. Other names may be trademarks of their respective

Owners.

Type 'help; 'or' \ H' for help. type' \ C' to clear the current input statement.

Mysql> create database bugs; # create a database named bugs;

Query OK, 1 row affected (0.00 sec)

Mysql> grant all on bugs. * to root @ localhost identified by "666666"; # authorize the root user password to 666666

Query OK, 0 rows affected (0.00 sec)

Mysql> flush privileges; # refresh

Query OK, 0 rows affected (0.00 sec)

Mysql> quit # exit

2. Download bugzilla and install bugzilla

[Root @ localhost opt] # wgethttp: // ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.5.2.tar.gz # download the source code package of bugzilla

[Root @ localhost opt] # tar xf bugzilla-4.5.2.tar.gz-C/var/www/html/# unzip to the/var/www/html directory of httpd

[Root @ localhost html] # mv bugzilla-4.5.2/bugzilla # rename the unzipped bugzilla directory

[Root @ localhost html] # cd bugzilla/# Switch to the bugzilla directory

[Root @ localhost bugzilla] #./checksetup. pl -- check-modules # check for missing components

* This is Bugzilla 4.5.2 on perl 5.10.1

* Running on Linux 2.6.32-431. el6.x86 _ 64 #1 SMP Sun Nov 10 22:19:54 EST 2013

Checking perl modules...

Checking for CGI. pm (v3.51) OK: found v3.64

Checking for Digest-SHA (any) OK: found v5.47

Checking for TimeDate (v2.23) found v2.22

Checking for DateTime (v0.28) OK: found v0.53

Checking for DateTime-TimeZone (v0.71) OK: found v1.08

Checking for DBI (v1.54) OK: found v1.609

Checking for Template-Toolkit (v2.24) found v2.22

Checking for Email-Send (v2.04) not found

Checking for Email-MIME (v1.904) not found

Checking for URI (v1.37) OK: found v1.40

Checking for List-MoreUtils (v0.32) found v0.22

Checking for Math-Random-ISAAC (v1.0.1) not found

Checking available perl DBD modules...

Checking for DBD-Pg (v2.7.0) OK: found v2.15.1

Checking for DBD-mysql (v4.001) OK: found v4.013

Checking for DBD-SQLite (v1.29) found v1.27

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 (v2.4.1) not found

Checking for Template-GD (any) not found

Checking for GDTextUtil (any) OK: found v0.86

Checking for GDGraph (any) OK: found v1.44

Checking for MIME-tools (v5.406) OK: found v5.427

Checking for libwww-perl (any) OK: found v5.833

Checking for XML-Twig (any) OK: found v3.34

Checking for PatchReader (v0.9.6) not found

Checking for perl-ldap (any) OK: found v0.40

Checking for Authen-SASL (any) OK: found v2.13

Checking for Net-SMTP-SSL (v1.01) OK: found v1.01

Checking for RadiusPerl (any) not found

Checking for SOAP-Lite (v0.712) found v0.710.10

Checking for XMLRPC-Lite (v0.712) found v0.710.10

Checking for JSON-RPC (any) not found

Checking for JSON-XS () not found

Checking for Test-Taint (v1.06) found v1.04

Checking for HTML-Parser (v3.40) OK: found v3.64

Checking for HTML-Scrubber (any) not found

Checking for Encode (v2.21) OK: found v2.35

Checking for Encode-Detect (any) OK: found v1.01

Checking for Email-Reply (any) not found

Checking for HTML-FormatText-WithLinks (v0.13) not found

Checking for TheSchwartz (v1.07) not found

Checking for Daemon-Generic (any) not found

Checking for mod_perl (v1.999022) OK: found v2.000004

Checking for Apache-SizeLimit (v0.96) not found

Checking for File-MimeInfo (any) not found

Checking for IO-stringy (any) OK: found v2.110

Checking for Cache-Memcached (any) OK: found v1.28

Checking for mod_headers (any) OK

Checking for mod_expires (any) OK

Checking for mod_env (any) OK

############## Check that many components are missing ############
[Root @ localhost bugzilla] # perl install-module.pl -- all # execute this command to install the missing components, you need to wait for a while (note that the execution of this command needs to be networked)

[Root @ localhost bugzilla] #./checksetup. pl # Run the following command to automatically generate a file named localconfig in the/var/www/html/bugzilla path.

[Root @ localhost bugzilla] # vim localconfig # Check whether the database name, user, and password you just entered in the localconfig file are correct. Confirm the red content

50 $ db_driver = 'mysql ';

51

52 # The DNS name or IP address of the host that the database server runs on.

53 $ db_host = 'localhost ';

54

55 # The name of the database. For Oracle, this is the database's SID.

56 # SQLite, this is a name (or path) for the DB file.

57 $ db_name = 'buckets ';

58

59 # Who we connect to the database.

60 $ db_user = 'root ';

61

62 # Enter your database password here. It's normally advisable to specify

63 # a password for your bugzilla database user.

64 # If you use apostrophe (') or a backslash (\) in your password, you'll

65 # need to escape it by preceding it with a' \ 'character. (\ ') or (\)

66 # (It is far simpler to just not use those characters .)

67 $ db_pass = '123 ';

68

69 # Sometimes the database server is running on a non-standard port. If that's

70 # the case for your database server, set this to the port number that your

71 # database server is running on. Setting this to 0 means "use the default

72 # port for my database server ."

73 $ db_port = 3306;

[Root @ localhost bugzilla] #./checksetup. pl # Run this command again. Enter the Administrator email address and password as prompted.

3. Configure httpd to modify the configuration file and add the following content in the last line

[Root @ localhost bugzilla] # vi/etc/httpd/conf/httpd. conf

<VirtualHost*:80>DocumentRoot/var/www/html/bugzilla/</VirtualHost><Directory/var/www/html/bugzilla>AddHandlercgi-script.cgiOptions+Indexes+ExecCGIDirectoryIndexindex.cgiAllowOverrideLimitFileInfoIndexes</Directory>

[Root @ localhost bugzilla] # vi. htaccess ### next, we need to edit the. htaccess file and comment out the top "Options-Indexes" line.

[Root @ localhost bugzilla] # service httpd restart # restart the httpd service and you can access it through a browser.

4. Because bugzilla needs to send emails when creating accounts to submit bugs, you also need to install sendmail

[Root @ localhost ~] # Yum-y install sendmail # install sendmail

[Root @ localhost ~] # Service sendmail start # start sendmail

Starting sendmail: [OK]

Start sm-client: [OK]

[Root @ localhost ~] # Yum-y install mail # install mail

[Root @ localhost ~] # Echo adminwangenzhi | mail-s test W_enzhi@163.com # test whether an email can be received

[Root @ localhost ~] # Cd/var/www/html/bugzilla/data/# Switch to the data directory under bugzilla

[Root @ localhost data] # vim params # modify the following red content

% Param = (

'Ldapbasedn' => '',

'Ldapbinddn' => '',

'Ldapfilter' => '',

'Ldapmailattribute' => 'mail ',

'Ldapserver' => '',

'Ldapstarttls '=> 0,

'Ldapuidattrigger' => 'uid ',

'Radius _ NAS_IP '=> '',

'Radius _ email_suffix '=> '',

'Radius _ secret' => '',

'Radius _ Server' => '',

'Ajax _ user_autocompletion '=> '1 ',

'Allow _ attachment_deletion '=> 0,

'Allow _ attachment_display '=> 0,

'Lowbugdeletion '=> 0,

'Allowmailchang' => 1,

'Allowuserdeleid' => 0,

'Announcehtml '=> '',

'Attachment _ base' => '',

'Auth _ env_email '=> '',

'Auth _ env_id' => '',

'Auth _ env_realname' => '',

'Bonsai _ url' => '',

'Chartgroup' => 'editbuckets ',

'Collapsed _ comment_tags' => 'obsolete, spam ',

'Comment _ taggers_group '=> 'editbuckets ',

'Commentonchange _ resolution '=> 0,

'Commentonduplicate' => 0,

'Confirmuniqueusermatch' => 1,

'Cookiedomain' => '',

'Cookiepath' => '/',

'Createemailregexp' => '.*',

'Cvsroot' => '',

'Cvsroot _ get' => '',

'Debug _ group' => 'admin ',

'Default _ search_limit '=> '123 ',

'Defaultopsy' => '',

'Defaultplatform' => '',

'Defaultpriority '=> '---',

'Defaultquery' => 'Resolution = --- & region = 1 & region = 1 & emailreporter2 = 1 & emailcc2 = 1 & emailqa_contact2 = 1 & emaillongdesc3 = 1 & order = Importance & long_desc_type = substring ',

'Defaultseverity '=> 'enablecement ',

'Docs_urlbase' => 'docs'/% lang %/html /',

'Duplicate _ or_move_bug_status' => 'refered ',

'Emailregexp' => '^ [\ w \\. \ + \-= \ '] + @ [\ w \\. \-] + \\. [\ w \-] + $ ',

'Emailregexpdesc '=> 'a legal address must contain exactly one \' @ \ ', and at least one \'. \ 'after @.',

'Emailsuffix '=> '',

'Font _ file' => '',

'Globalwatchers' => '',

'Inbound _ proxies '=> '',

'Initdergroup' => '',

'Letsubmitterchoosemilestone '=> 1,

'Letsubmitterchoosepriority '=> 1,

'Lxr _ root' => '',

'Lxr _ url' => '',

'Mail _ delivery_method '=> 'sendmail ',

'Mailfrom' => 'root @ localhost. localdomain ',

'Maintainer '=> 'W _ enzhi@163.com ',

'Makeproductgroupup' => 0,

'Max _ search_results '=> '123 ',

'Maxattachmentsize' => '123 ',

'Maxlocalattachment '=> '0 ',

'Maxusermatches' => '123 ',

'Memcached _ namespace '=> 'bugzilla :',

'Memcached _ servers' => '',

'Mostfreqthreshold '=> '2 ',

'Musthavemilestoneonaccept '=> 0,

'Mybucket' => 'buglist. cgi? Resolution = --- & amp; emailassigned_to1 = 1 & amp; emailreporter1 = 1 & amp; emailtype1 = exact & amp; email1 = % userid % ',

'Noresolveonopenblockers' => 0,

'Or _ groups' => 1,

'Password _ complexity '=> 'no _ constraints ',

'Proxy _ url' => '',

'Querysharegroup' => 'editbuckets ',

'Quip _ list_entry_control '=> 'open ',

'Rememberlogin' => 'on ',

'Requirelogin' => '0 ',

'Search _ allow_no_criteria '=> 1,

'Shadowdb' => '',

'Shadowdbhost' => '',

'Shadowdbport' => '123 ',

'Shadowdbsock' => '',

'Shutdownhtml '=> '',

'Smtp _ debug' => 0,

'Smtp _ password' => '',

'Smtp _ ssl '=> 0,

'Smtp _ username' => 'W _ enzhi@163.com ',

'Smtpserver' => 'mail @ 163.com ',

'Ssl _ redirect' => 0,

'Sslbase' => '',

'Strict _ isolation' => 0,

'Strict _ transport_security '=> 'off ',

'Timetrackinggroup' => 'editbuckets ',

'Upgrade _ notification' => 'latest _ stable_release ',

'Urlbase' => 'HTTP: // 192.168.1.106/', ### modify the local IP address according to your own IP Address

'Use _ mailer_queue '=> 0,

'Use _ see_also '=> 1,

'Useclassification '=> 0,

'Usemenuforusers' => '0 ',

'Useqacontact' => 0,

'User _ info_class '=> 'cgi ',

'User _ verify_class '=> 'db ',

'Usestatuswhiteboard' => 0,

'Usetargetmilestone '=> 0,

'Usevisibilitygroups '=> 0,

'Utf8' => 1,

'Webdomainbase' => 'HTTP: // www.research.att.com /~ North/cgi-bin/webdot. cgi/% urlbase % ',

'Webservice _ email_filter '=> 0,

'Whinedays' => 7

);

[Root @ localhost data] # service httpd restart # restart httpd

[Root @ localhost data] # service sendmail restart # restart sendmail

5. Visit the bugzilla homepage and click the Red Arrow to create a user account.

6. enter a valid email address at the arrow pointing to the user you want to create.

7. Next, an email will be sent to the created user's mailbox. Open the email, click the link address, and set the password as prompted.

8. Use the created account to log on to the system and test whether the logon is successful.

########## Now that the installation of bugzilla is complete, you can successfully create an account 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.