【linux】centos6.5上bugzilla的搭建
1.安装依赖包
CentOS 6.5默认安装了apche,perl ,需要安装httpd mod_ssl mysql-server mysql php-mysql gcc perl* mod_perl-devel 等模块。
2.启动服务
[root@localhost ~]# service httpd start ##启动httpd
[root@localhost ~]# chkconfig httpd on ##添加2345级别启动
[root@localhost ~]# service mysqld start ##启动mysql数据库
[root@localhost ~]# chkconfig mysqld on ##添加2345级别启动
3.配置数据库
[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 ##退出
4.安装Bugzilla
[root@localhost opt]# wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-5.0.2.tar.gz ##下载bugzilla源码包
[root@localhost opt]#tar xf bugzilla-5.0.2.tar.gz -C /var/www/html/ ##解压到httpd的/var/www/html目录下
[root@localhost html]# mv bugzilla-5.0.2/ bugzilla ##将解压的bugzilla目录重命名
[root@localhost html]# cd bugzilla/ ##切换到bugzilla目录
[root@localhost bugzilla]# ./checksetup.pl --check-modules ##检查缺少那些组件
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 ##再次执行此命令根据提示输入管理员邮箱及密码
5.配置文件
[root@localhost bugzilla]# vi /etc/httpd/conf/httpd.conf
[root@localhost bugzilla]# vi .htaccess ###接着,我们需要编辑 .htaccess 文件并用“#”注释掉顶部“Options -Indexes”这一行。
[root@localhost bugzilla]# service httpd restart ##重新启动httpd服务,就可以通过浏览器访问了

6.配置邮件服务
[root@localhost ~]# yum -y install sendmail ##安装sendmail
[root@localhost ~]# service sendmail start ##启动sendmail
正在启动 sendmail: [确定]
启动 sm-client: [确定]
[root@localhost ~]# yum -y install mail ##安装mail
我使用的是163邮件,所以设置mail使用163代理发邮件
只需要在 /etc/mail.rc 最后添加两行即可,如下

[root@localhost ~]# echo adminwangenzhi|mail -s test paulwinflo@163.com ##测试是否可以收到邮件
----------------------------------------------------------------------------------------------
【推荐】也可以通过bugzilla自带的邮件服务
[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' => 'SMTP',
'mailfrom' => 'bugzillatrace@163.com', ###mailfrom要和maintainer保持一致,为bugzilla发送人地址。需要说明的是163的邮箱需要去163开通授权
'maintainer' => 'bugzillatrace@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=---&emailassigned_to1=1&emailreporter1=1&emailtype1=exact&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' => '######', ###在163页面授权时的设置的密码,也是邮箱密码
'smtp_ssl' => 0,
'smtp_username' => 'bugzillatrace@163.com',###发送人邮箱
'smtpserver' => 'smtp.163.com:25',####服务代理
'ssl_redirect' => 0,
'sslbase' => '',
'strict_isolation' => 0,
'strict_transport_security' => 'off',
'timetrackinggroup' => 'editbugs',
'upgrade_notification' => 'latest_stable_release',
'urlbase' => 'http://192.168.69.20/', ###bugzilla访问地址
'use_mailer_queue' => 1, ###设置为1,若不行请改为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
7.163邮箱页面授权

8.汉化请自行baidu
【linux】centos6.5上bugzilla的搭建的更多相关文章
- Linux CentOS6.5上搭建环境遇到的问题
1.卸载CentOS自带的JDK 查看centos上 安装的jdk:rpm -qa|grep jdk 出现如下: java-1.7.0-openjdk-1.7.0.45-2.4.3.3.el6.x86 ...
- 在linux(CentOS-6.7_x86_64)上安装mysql成功记录
查看linux服务器的yum源设置: [root@hadoop03 yum.repos.d]# cd /etc/yum.repos.d [root@hadoop03 yum.repos.d]# ll ...
- redis在linux云服务器上完整的搭建步骤
Redis的安装 搭建环境: 华为云linux服务器 Linux系统CneterOS-7.3 SSH客户端 Xshell6 安装c语言编译环境软件如下: 安装报错 然后找到了解决方法: 安装kerne ...
- Linux - CentOS6.5服务器搭建与初始化配置详解(下)
传送带:Linux - CentOS6.5服务器搭建与初始化配置详解(上) 继续接着上面的安装,安装完后会出现下面界面 点击reboot重启 重启后可以看到下面的tty终端界面 因为这就是最小化安装 ...
- CENTOS6.6上搭建单实例ORACLE12C
本文来自我的github pages博客http://galengao.github.io/ 即www.gaohuirong.cn 摘要: 自己在centos6.6上搭建的单实例oracle12c 由 ...
- [PXE] Linux(centos6)中PXE 服务器搭建,PXE安装、启动及PXE理论详解
[PXE] Linux(centos6)中PXE 服务器搭建,PXE安装.启动及PXE理论详解 本篇blog主要讲述了[PXE] linux(centos)PXE无盘服务器搭建,安装,启动及pxe协议 ...
- 在Linux上使用web2py_uwsgi_nginx搭建web服务器
本文介绍在Linux使用Python+Nginx+web2py+uWSGI搭建一个web服务器的过程. Python 2.7.11 解压安装包 tar -zxvf Python-2.7.11.tgz ...
- 【转】Linux(ubuntu14.04)上编译Android4.4源码的环境搭建及编译全过程
原文网址:http://jileniao.net/linux-android-building.html sublime text让我伤心.本来很信任sublime text的自动保存功能,之前使用一 ...
- CENTOS6.4上KVM虚拟机环境搭建
CENTOS6.4上KVM虚拟机环境搭建 关键词: KVM,虚拟机,windows7, VNC, 桥接网络,br0, SCSI, IDE 环境: host: CENTOS6.4 guest: ...
随机推荐
- 20145312《网络对抗》Exp4 恶意代码分析
20145312<网络对抗>Exp4 恶意代码分析 问题回答 1.总结一下监控一个系统通常需要监控什么.用什么来监控. 监控一个系统通常需要监控这个系统的注册表,进程,开放端口,程序服务还 ...
- 20155201 2016-2017-2 《Java程序设计》第四周学习总结
20155201 2016-2017-2 <Java程序设计>第四周学习总结 教材学习内容总结 - 第六章要点: 继承:面向对象中,子类继承父类,避免重复的行为定义.继承基本上就是避免多个 ...
- Cooperation.GTST团队第一周项目总结
Cooperation.GTST团队第一周项目总结 团队项目 项目内容:我们打算利用Android Studio开发一款博客园的Android APP,初步设想能够实现在Android手机平台使用博客 ...
- HeyWeGo小组《Java程序设计》 2015—2016年学期团队项目总结
HeyWeGo小组<Java程序设计> 2015—2016年学期团队项目总结 题目简介 一个简单的扫雷小游戏,在12*12的方格盘上,首先可以设定雷的个数,然后点击开始程序就会随机布雷,开 ...
- stm32 Flash读写[库函数]
stm32 的内置可编程Flash在许多场合具有十分重要的意义.如其支持ICP特性使得开发人员对stm32可以警醒调试开发,可以通过JTAG和SWD接口对stm32进行程序烧写:支持IAP特性使得开发 ...
- POJ - 3254 Corn Fields(状压DP)题解
思路: 参照blog,用状压DP做,和题解稍微有点不一样,我这里直接储存了状态而不是索引. 这一题的问题是怎么判断相邻不能种,我们用2进制来表示每一行的种植情况.我们将每一行所能够造的所有可能都打表( ...
- maven3官网下载地址
maven3官网下载地址:https://archive.apache.org/dist/maven/maven-3/
- 利用ES6中的Array.find/ Array.findIndex来判断数组中已存在某个对象
前端开发过程中,我们会经常遇到这样的情景:比如选中某个指标obj,将其加入到数组checkedArr中({id: 1234, name: 'zzz', ...}),但是在将其选中之前要校验该指标是否已 ...
- Bitmap 位图
转自: http://dongxicheng.org/structure/bitmap/ 1. 概述 位图(bitmap)是一种非常常用的结构,在索引,数据压缩等方面有广泛应用.本文介绍了位图的实现 ...
- bzoj 1799: [Ahoi2009]self 同类分布 数位dp
1799: [Ahoi2009]self 同类分布 Time Limit: 50 Sec Memory Limit: 64 MB[Submit][Status][Discuss] Descripti ...