一、安装httpd、 mod_ssl、 mysql-server 、 mysql 、php-mysql 、 gcc 、 perl* 、 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  ##关闭防火墙

[root@localhost ~]# setenforce 0           ##将selinux关闭

[root@localhost ~]# service httpd start    ##启动httpd

[root@localhost ~]# chkconfig httpd on    ##添加2345级别启动

[root@localhost ~]# service mysqld start    ##启动mysql数据库

[root@localhost ~]# chkconfig mysqld on    ##添加2345级别启动

[root@localhost ~]# mysqladmin -uroot -p password "666666"  ##将mysql,root用户密码修改为666666,默认为空。

Enter password:

[root@localhost ~]# mysql -uroot -p666666  ##登陆mysql使用root账号

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, 2013, 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;    ##创建数据库名为bugs;

Query OK, 1 row affected (0.00 sec)

mysql> grant all on bugs.* to root@localhost identified by "666666";  ##授权root用户密码为666666

Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;    ##刷新

Query OK, 0 rows affected (0.00 sec)

mysql> quit    ##退出

二、下载bugzilla,安装bugzilla

[root@localhost opt]# wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.5.2.tar.gz   ##下载bugzilla源码包

[root@localhost opt]#tar xf bugzilla-4.5.2.tar.gz -C /var/www/html/    ##解压到httpd的/var/www/html目录下

[root@localhost html]# mv bugzilla-4.5.2/ bugzilla    ##将解压的bugzilla目录重命名

[root@localhost html]# cd bugzilla/    ##切换到bugzilla目录

[root@localhost bugzilla]# ./checksetup.pl --check-modules    ##检查缺少那些组件

* 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 (v2.0)      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

###############通过检查发现缺了很多组件############

[root@localhost bugzilla]# perl install-module.pl --all ##执行此命令安装缺少的组件,需要等待一会(注意执行此命令需要联网)

[root@localhost bugzilla]# ./checksetup.pl    ##运行以下这条命令,它会在/var/www/html/bugzilla路径下自动生成一个名为localconfig的文件。

[root@localhost bugzilla]# vim localconfig        ##确认一下你刚才在localconfig文件中所输入的数据库名、用户和密码是否正确。确认下红色内容

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. For

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

57 $db_name = 'bugs';

58

59 # Who we connect to the database as.

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 = '666666';

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     ##再次执行此命令根据提示输入管理员邮箱及密码

如果出现以下警告,请登录mysql控制台执行:set global max_allowed_packet=33554432;

WARNING: You need to set the max_allowed_packet parameter in your MySQL

configuration to at least 3276750. Currently it is set to 1048576.

You can set this parameter in the [mysqld] section of your MySQL

configuration file.

三、配置httpd修改配置文件在最后一行下添加如下内容

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

<VirtualHost *:80>
     DocumentRoot /var/www/html/bugzilla/
</VirtualHost> <Directory /var/www/html/bugzilla>
     AddHandler cgi-script .cgi
     Options +Indexes +ExecCGI
     DirectoryIndex index.cgi
     AllowOverride Limit FileInfo Indexes
</Directory>

[root@localhost bugzilla]# vi .htaccess  ###接着,我们需要编辑
.htaccess 文件并用“#”注释掉顶部“Options -Indexes”这一行。

[root@localhost bugzilla]# service httpd
restart        ##重新启动httpd服务,就可以通过浏览器访问了

四、由于bugzilla创建账号提交bug等需要发送邮件,还需要安装sendmail

[root@localhost ~]# yum -y install sendmail
   ##安装sendmail

[root@localhost ~]# service sendmail start   ##启动sendmail

正在启动 sendmail:                                        [确定]

启动 sm-client:                                           [确定]

[root@localhost ~]# yum -y install mail  ##安装mail

[root@localhost ~]# echo adminwangenzhi|mail -s test W_enzhi@163.com  ##测试是否可以收到邮件

[root@localhost ~]# cd /var/www/html/bugzilla/data/  ##切换到bugzilla下的data目录中

[root@localhost data]# vim params   ##修改如下红色内容

%param = (

'LDAPBaseDN' => '',

'LDAPbinddn' => '',

'LDAPfilter' => '',

'LDAPmailattribute' => 'mail',

'LDAPserver' => '',

'LDAPstarttls' => 0,

'LDAPuidattribute' => 'uid',

'RADIUS_NAS_IP' => '',

'RADIUS_email_suffix' => '',

'RADIUS_secret' => '',

'RADIUS_server' => '',

'ajax_user_autocompletion' => '1',

'allow_attachment_deletion' => 0,

'allow_attachment_display' => 0,

'allowbugdeletion' => 0,

'allowemailchange' => 1,

'allowuserdeletion' => 0,

'announcehtml' => '',

'attachment_base' => '',

'auth_env_email' => '',

'auth_env_id' => '',

'auth_env_realname' => '',

'bonsai_url' => '',

'chartgroup' => 'editbugs',

'collapsed_comment_tags' => 'obsolete, spam',

'comment_taggers_group' => 'editbugs',

'commentonchange_resolution' => 0,

'commentonduplicate' => 0,

'confirmuniqueusermatch' => 1,

'cookiedomain' => '',

'cookiepath' => '/',

'createemailregexp' => '.*',

'cvsroot' => '',

'cvsroot_get' => '',

'debug_group' => 'admin',

'default_search_limit' => '500',

'defaultopsys' => '',

'defaultplatform' => '',

'defaultpriority' => '---',

'defaultquery' => 'resolution=---&emailassigned_to1=1&emailassigned_to2=1&emailreporter2=1&emailcc2=1&emailqa_contact2=1&emaillongdesc3=1&order=Importance&long_desc_type=substring',

'defaultseverity' => 'enhancement',

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

'duplicate_or_move_bug_status' => 'RESOLVED',

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

'emailregexpdesc' => 'A legal address must contain exactly one \'@\', and at least one \'.\' after the @.',

'emailsuffix' => '',

'font_file' => '',

'globalwatchers' => '',

'inbound_proxies' => '',

'insidergroup' => '',

'letsubmitterchoosemilestone' => 1,

'letsubmitterchoosepriority' => 1,

'lxr_root' => '',

'lxr_url' => '',

'mail_delivery_method' => 'Sendmail',

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

'maintainer' => 'W_enzhi@163.com',

'makeproductgroups' => 0,

'max_search_results' => '10000',

'maxattachmentsize' => '1000',

'maxlocalattachment' => '0',

'maxusermatches' => '1000',

'memcached_namespace' => 'bugzilla:',

'memcached_servers' => '',

'mostfreqthreshold' => '2',

'musthavemilestoneonaccept' => 0,

'mybugstemplate' => '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' => 'editbugs',

'quip_list_entry_control' => 'open',

'rememberlogin' => 'on',

'requirelogin' => '0',

'search_allow_no_criteria' => 1,

'shadowdb' => '',

'shadowdbhost' => '',

'shadowdbport' => '3306',

'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' => 'editbugs',

'upgrade_notification' => 'latest_stable_release',

'urlbase' => 'http://192.168.1.106/',   ###我本机的IP地址按照自己的IP地址修改

'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,

'webdotbase' => 'http://www.research.att.com/~north/cgi-bin/webdot.cgi/%urlbase%',

'webservice_email_filter' => 0,

'whinedays' => 7

);

[root@localhost data]# service httpd restart  ##重新启动httpd

[root@localhost data]# service sendmail restart  ##重新启动sendmail

五、访问bugzilla主页,点击红色箭头所指创建用户账号

六、在箭头指向处输入要创建用户的邮箱必须为合法的邮箱

七、接下来创建用户的邮箱会收到一封邮件,打开邮件点击链接地址,根据提示设置密码

八、使用刚创建的账号登陆测试是否成功登陆。

###########至此bugzilla的安装全部结束,可以成功创建账户登陆##############

Centos6.5搭建bugzilla的更多相关文章

  1. CentOS6.6搭建LNMP环境

    CentOS6.6搭建LNMP环境 1.设置yum源,本地安装依赖包 1 yum -y install gcc gcc-c++ automake autoconf libtool make 2.下载依 ...

  2. Centos6一键搭建L2TP VPN服务器

    用VPS在墙上打洞还有一种叫L2TP,也是常见的一种方式.本脚本结合了L2TP(Layer Tunneling Protocol)和IPSec(Internet Protocol Security), ...

  3. centos6.5vpn搭建

    centos6.5vpn搭建整个搭建流程,服务端,客户端安装及测试. 达到的效果: 在安装vpn客户端的机器可通过vpn(virtual private network)专用线路(vpn主配置文件中定 ...

  4. CentOS6.5 搭建基础PHP环境(yum安装)

    转载:闲来无事 » CentOS6.5 搭建基础PHP环境(yum安装) yum安装php环境只需要几条简单的命令就可以实现,OK,各位客官,菜来了.首先确保你的yum源可用,或者网络是通的,不然下载 ...

  5. centos6.7搭建DHCP服务器

    centos6.7搭建DHCP服务 2017-03-24 09:47:16 系统环境: centos6.7 安装之前首先使用rpm –qa | grep dhcp查看系统中是否已安装了dhcp软件包. ...

  6. Centos6.8 搭建Nginx服务器

    Nginx (engine x) 是一个高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP服务器,其特点是占有内存少,并发能力强,业界内的评价一直很不错,反正用过的都说好,虽然我还 ...

  7. Centos6.5搭建vsftpd,并配置用户和密码登录

    Centos6.5搭建vsftpd,并配置用户和密码登录 2017年05月11日 18:40:47 阅读数:6142 1)安装vsftpd yum install vsftpd 2)配置vsftpd配 ...

  8. CentOS6.5 搭建在线yum源

    CentOS6.5 搭建在线yum源 发布时间:  2017-04-21 浏览次数:  611 下载次数:  1  问题描述 尽管有很多的免费镜像提供yum源服务,但是还是有必要建立自己的yum服务器 ...

  9. 开源知识库管理系统选型 centos6.4 搭建knowlededgeroot-1.0.4知识库平台

    开源知识库管理系统选型,除了使用wiki外,还有下面可选: http://www.knowledgebase-script.com/ https://github.com/lordlamer/know ...

随机推荐

  1. HTTP使用BASIC认证的原理及实现方法 (转载)

    转自:http://blog.itpub.net/23071790/viewspace-709367 一.   BASIC认证概述 在HTTP协议进行通信的过程中,HTTP协议定义了基本认证过程以允许 ...

  2. PC游戏编程(入门篇)(前言写的很不错)

    PC游戏编程(入门篇) 第一章 基石 1. 1 BOSS登场--GAF简介 第二章 2D图形程式初体验 2.l 饮水思源--第一个"游戏"程式 2.2 知其所以然一一2D图形学基础 ...

  3. 宣布正式发布 Windows Azure 多重身份验证

    身份和访问管理是安全之锚,是企业 IT 部门的首要任务.它是随时随地向员工.合作伙伴和客户提供访问的关键所在.今天,我们非常高兴地宣布正式发布 Windows Azure 多重身份验证,从而为 IT ...

  4. C++模板:二分图匹配

    int Dfs(int k){ for(int i=0;i<v[k].size();i++){ int a=v[k][i]; if(used[a]==0){ used[a]=1; if(link ...

  5. 《数字图像处理原理与实践(MATLAB版)》一书之代码Part6

    本文系<数字图像处理原理与实践(MATLAB版)>一书之代码系列的Part6,辑录该书第281至第374页之代码,供有须要读者下载研究使用.代码运行结果请參见原书配图,建议下载代码前阅读下 ...

  6. 【已解决】谁动了我的CurrentPrincipal?求助我在给Artech的wcf petshop增加授权机制的时候遇到的问题。

    这个问题已解决,是绑定设置的问题,主要还是因为我自己没有深入理解WCF绑定的安全机制.在这篇博客里面我来说说怎么解决的. 下载了Artech的wcf petshop源码(博文链接)并调试运行成功后,打 ...

  7. .net Windows服务程序和安装程序制作图解

    最近项目中用到window服务程序,以前没接触过,比较陌生,花了两天的时间学习了下,写了个简单的服务,但在制作安装程序的时候,参照网上很多资料,却都制作不成功,可能是开发环境或项目配置的不同,这里把自 ...

  8. windows上运行npm Error: ENOENT, stat 'C:\Users\

    node 中 npm报错 Error: ENOENT, stat C:\Users\Administrator\AppData\Roaming\npm 报错原因可能是修改了node的默认安装路径.于是 ...

  9. Xcode之外的文档浏览工具--Dash (在iOS代码库中浏览本帖)

    链接地址:http://www.cocoachina.com/bbs/read.php?tid=273479 Xcode之外的文档浏览工具--Dash    (在iOS代码库中浏览本帖)       ...

  10. 「C」关键字、标识符、注释、内存分析、数据、常量、变量

    一.关键字 C语言提供的有特殊含义的符号,共32个. 一般在Xcode中关键字全部显示紫褐色,关键字全部都为小写.如int.return等. 二.标识符 标识符是程序员在程序中自定义的一些符号和名称. ...