1.安装apache2

sudo apt-get install apache2

如报错请:sudo apt-get update

安装结束后:

产生的启动和停止文件是:/etc/init.d/apache2

启动:

sudo apache2ctl -k start

停止:

sudo apache2ctl -k stop

重新启动:

sudo apache2ctl -k restart

sudo /etc/init.d/apache2 restart

自启动出错,错误信息如下:

apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message

在apache2.conf文件尾部添加如下信息:

sudo gedit /etc/apache2/apache2.conf

#ServerName

ServerName 127.0.0.1

<Directory "/var/www/bugzilla/">

AddHandler cgi-script .cgi

Options +Indexes +ExecCGI +FollowSymLinks

DirectoryIndex index.cgi

AllowOverride None

Order allow,deny

Allow from all

</Directory>

重启apache

sudo /etc/init.d/apache2 restart

2.安装mysql

sudo apt-get install mysql-server

运行该命令后,系统还会自己主动安装其他的一些软件,在安装过程中会提示输入mysql的root用户的password。按Tab键选定“确定”按钮,然后回车。

安装运行报错:

lxf@lxf:~$ mysql

ERROR 1045 (28000): Access denied for user 'lxf'@'localhost' (using password: NO)

解决方案:

lxf@lxf:~$ mysql -uroot -p

Enter password:

密码就是安装mysql时设置的root密码

成功出现以下信息:

lxf@lxf:~$ mysql -uroot -p

Enter password:

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

Your MySQL connection id is 47

Server version: 5.5.62-0ubuntu0.14.04.1 (Ubuntu)

Copyright (c) 2000, 2018, 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>

先了解一波mysql服务相关命令

#查看mysql服务状态

sudo service mysql status

#启动mysql服务

sudo service mysql start

#关闭mysql服务

sudo service mysql stop

#重启mysql服务

sudo service mysql restart

使用grant创建用户并授权

GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugzilla@localhost IDENTIFIED BY '123456';

mysql创建用户详解

查看所有用户

select * from mysql.user;

删除用户

delete from mysql.user where User="bugs" and Host="localhost";

刷新系统权限表

FLUSH PRIVILEGES;

创建,删除,查看,授权用户

3.安装bugzilla

1.下载bugzilla源码包

http://ftp.mozilla.org/pub/webtools/bugzilla-5.0.2.tar.gz

2.安装

将该文件解压缩到/var/www/目录下

sudo tar -C /var/www/ -xvf bugzilla-5.0.2.tar.gz

检查所需Perl模块是否安装

解压完毕,该目录下将会有一个名为bugzilla-5.0.2的目录,将该目录改名为bugzilla并切换到/var/www/bugzilla/目录

cd /var/www/

sudo mv bugzilla-5.0.2 bugzilla

cd bugzilla/

在bugzilla目录下有一个checksetup.pl的文件,运行该文件

sudo ./checksetup.pl

运行完毕,会告诉你当前bugzilla还差那些perl模块需要安装,并且有提示安装命令。这里我们只需要安装必须的一些包就可以了,可选包可以不用安装。安装这些必须的包的命令一般为:

/usr/bin/perl install-module.pl –all

sudo ./checkoutup.pl 出现以下错误:

There was an error connecting to MySQL:

Access denied for user 'bugs'@'localhost' (using password: NO)

This might have several reasons:

* MySQL is not running.

* MySQL is running, but there is a problem either in the

server configuration or the database access rights. Read the Bugzilla

Guide in the doc directory. The section about database configuration

should help.

* Your password for the 'bugs' user, specified in $db_pass, is

incorrect, in './localconfig'.

* There is a subtle problem with Perl, DBI, or MySQL. Make

sure all settings in './localconfig' are correct. If all else fails, set

'$db_check' to 0.

按照提示修改localconfig文件

sudo gedit localconfig

# Who we connect to the database as.

$db_user = 'bugzilla';  //默认为bugs,但是我们创建数据库用户是名为bugzilla,所以修改一下

$db_pass = '123456';  //mysql使用grant创建用户并授权,上面设置的密码是123456

$db_port = 3306;  //端口默认是0,修改为3306

$webservergroup = 'www-data';

修改localconfig文件后

sudo ./checksetup.pl

未出现报错,出现以下提示请输入管理员邮箱、名字、密码

Enter the e-mail address of the administrator: liuxf@fise.com.cn

Enter the real name of the administrator: liuxf

Enter a password for the administrator account: *******

Please retype the password to verify: *******

liuxf@fise.com.cn is now set up as an administrator.

Creating initial dummy product 'TestProduct'...

Now that you have installed Bugzilla, you should visit the 'Parameters'

page (linked in the footer of the Administrator account) to ensure it

is set up as you wish - this includes setting the 'urlbase' option to

the correct URL.

checksetup.pl complete.

在浏览器里面输入:http://localhost/bugzilla/

出现以下错误:

Not Found

The requested URL /bugzilla/ was not found on this server.

Apache/2.4.7 (Ubuntu) Server at localhost Port 80

解决方法:

sudo gedit /etc/apache2/sites-enabled/000-default.conf

修改000-default.conf文件中的

DocumentRoot /var/www/html

--->

DocumentRoot /var/www

重启 apache2

sudo /etc/init.d/apache2 restart

继续在浏览器里面输入:http://localhost/bugzilla/

接着出现下面的源代码:

#!/usr/bin/perl -T

# This Source Code Form is subject to the terms of the Mozilla Public

# License, v. 2.0. If a copy of the MPL was not distributed with this

# file, You can obtain one at http://mozilla.org/MPL/2.0/.

#

# This Source Code Form is "Incompatible With Secondary Licenses", as

# defined by the Mozilla Public License, v. 2.0.

use 5.10.1;

use strict;

use warnings;

use lib qw(. Lib);

这是因为cgi没有启动,解决方案:

# sudo a2enmod cgi

# sudo /etc/init.d/apache2 restart

4.bugzilla汉化

https://download.csdn.net/download/liuxinfa/11630122

将网上下载的汉化包,解压出来zh-CN文件夹copy到bugzilla的template文件夹下

cp -r work/zh-CN/ /var/www/bugzilla/template/

bugzilla 发送邮件配置

要进行邮件发送,要配置下面这些内容((以下是腾讯企业邮箱配置):

Administration->Parameters->Email:

mail_delivery_method:   SMTP

mailfrom: liuxf@fise.com.cn

use_mailer_queue : on

smtpserver :smtp.exmail.qq.com

smtp_username :liuxf@fise.com.cn

smtp_password: *********

smtp_ssl : on

注意:maintainer、mailfrom必须相同!smtp_username邮箱必须是存在的真实的邮箱,smtp_password必须是你真实邮箱的真实密码(要与你所登陆邮箱时的密码相同)!

163邮箱配置如下:

maintainer : liuxfa23@163.com

mail_delivery_method : SMTP

mailfrom : liuxfa23@163.com

sendmailnow: on

smtpserver : smtp.163.com

smtp_username: liuxfa23@163.com

smtp_password : ********

Software error:

Can't locate object method "quit" via package "Net::SMTP::SSL" at Bugzilla/Config/Common.pm line 370.

For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error.

1、bugzilla注册账号,邮件无法发送

需要登录管理账号,配置邮箱服务

2、Can't locate object method "quit" via package "Net::SMTP::SSL" at Bugzilla/Config/Common.pm line 365. For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.

cpan -i MIME::Base64

cpan -i Net::SSLeay

cpan -i Net::SMTP::SSL

以上一直回车安装即可

3、Can't locate object method "message" via package "To use SSL please install IO::Socket::SSL with version>=2.007 at lib/Net/SMTP.pm line 68. " (perhaps you forgot to load "To use SSL please install IO::Socket::SSL with version>=2.007 at lib/Net/SMTP.pm lin

yum install 'perl(IO::Socket::SSL)'

cpan -i IO::Socket::SSL

完成之后bugzilla可正常使用

如果cpan -i Net::SSLeay出现以下错误:

SSLeay.xs:163:25: fatal error: openssl/err.h: 没有那个文件或目录

首先得安装openssl:sudo apt-get install openssl

#include<openssl/ssl.h>后编译报错:openssl/ssl.h:没有那个文件或目录的解决办法

解决办法为: sudo apt-get install libssl-dev build-essential zlibczlib-bin libidn11-dev libidn11

安装上边的依赖就好了。

Software error:

Insecure dependency in sysopen while running with -T switch at lib/File/Slurp.pm line 288.

For help, please send mail to the webmaster (webmaster@localhost), giving this error message and the time and date of the error.

后面在邮件设置里面编辑信息保存设置出现以上错误:

直接在params.json里面配置了邮件信息

sudo gedit /var/www/bugzilla/data/params.json

“mail_delivery_method'” : “SMTP“

“mailfrom“:”liuxf@fise.com.cn“

“maintainer' :“liuxf@fise.com.cn“

“smtp_username” : “liuxinfa@fise.com.cn“

“smtpserver” :”smtp.exmail.qq.com“

“use_mailer_queue”:“on“ #邮件进队列处理,改善页面僵死的等待

“urlbase” : “http://192.168.1.138/bugzilla/“  #这个是配置bugzilla的访问地址,邮件中的链接要用到

/var/www/bugzilla/jobqueue.pl start  #启动邮件队列处理

/var/www/bugzilla/jobqueue.pl install #写进内核,开机自动启动

直接修改params.json文件后,系统可以发送邮件

如果发送的邮件是乱码,请在

Preferences---General Preferences

偏好设定---一般设定

Preferred email format: Site Default(Text Only)

喜好的电子邮件格式:站台预设值(纯文字)

Language used in email: zh-CN

在电子邮件中用的语言:zh-CN

关于Bugzilla:

1.Bug按严重程度(Severity)分为:

Blocker,阻碍开发和/或测试工作

Critical,死机,丢失数据,内存溢出

Major,较大的功能缺陷

Normal,普通的功能缺陷

Minor,较轻的功能缺陷

Trivial,产品外观上的问题或一些不影响使用的小毛病,如菜单或对话框中的文字拼写或字体问题等等

Enhancement,建议或意见

2.Bug按报告状态分类(Status)

待确认的(Unconfirmed)

新提交的(New)

已分配的(Assigned)

问题未解决的(Reopened)

待返测的(Resolved)

待归档的(Verified)

已归档的(Closed)

3.Bug处理意见(Resolution)

已修改的(Fixed)

不是问题(Invalid)

无法修改(Wontfix)

以后版本解决(Later)

保留(Remind)

重复(Duplicate)

无法重现(Worksforme)

Ubuntu 14.04安装bugzilla相关推荐

  1. ubuntu 14.04 安装 vmware 10 X64 后无法启动解决方法

    ubuntu 14.04 安装成功后,平时的工作什么的都够用了, 最近需要做一个测试,测试环境还必须是windows的.所以就准备整个虚拟机来,kvm 跟 vmware 考虑再三,选择了 vmware ...

  2. Ubuntu 14.04 安装 CUDA 问题及解决

    Ubuntu 14.04 安装 CUDA 问题及解决 参考文章: (1)Ubuntu 14.04 安装 CUDA 问题及解决 (2)https://www.cnblogs.com/gaowengang ...

  3. java ubuntu 14.04,Ubuntu 14.04安装java的方法

    摘要 腾兴网为您分享:Ubuntu 14.04安装java的方法,掌上电力,虚拟按键,新东方,小度等软件知识,以及公务用车平台,手机秀色直播,新视觉影院,浩辰cad批量打印,bartender2016 ...

  4. Ubuntu 14.04安装openProj

    Ubuntu 14.04安装openProj openProj,下载deb的包,软件已经是08年的了,很久没更新了,或许也没什么功能需要开发,就不更了?安装完后,执行一下.出现了以下的警告: 提示要使 ...

  5. Ubuntu 14.04 安装 Sublime Text 3

    Ubuntu 14.04 安装 Sublime Text 3 听语音 | 浏览:24435 | 更新:2014-09-25 22:14 | 标签:ubuntu 1 2 3 4 5 6 分步阅读 ubl ...

  6. Ubuntu 14.04安装JDK1.8.0_25与配置环境变量

    Ubuntu 14.04安装JDK1.8.0_25与配置环境变量 [日期:2015-01-19]     来源:Linux社区  作者:lizhangyong1989     [字体:大 中 小] 以 ...

  7. 在Ubuntu 14 04安装和使用Docker

    在Ubuntu 14.04安装和使用Docker 作者:chszs,版权所有,未经同意,不得转载.博主主页:http://blog.csdn.net/chszs Docker是一个开源软件,它可以把一 ...

  8. Ubuntu 14.04 安装 WPS

    本文转自http://www.linuxidc.com/Linux/2014-04/100499p2.htm,所有权力归原作者所有. 经测试在64位Ubuntu14.04下也可按此方法安装,或者在已安 ...

  9. 在Ubuntu 14.04安装和使用Docker

    在Ubuntu 14.04安装和使用Docker 作者:chszs,版权全部,未经允许.不得转载.博主主页:http://blog.csdn.net/chszs Docker是一个开源软件,它能够把一 ...

最新文章

  1. 大型企业门户网站设计开发一般性原则和建议
  2. php 实现域名路由器,域名路由 · ThinkPHP5.0完全开发手册 · 看云
  3. 活用sersync实时采集日志
  4. orcal 忘记用户名和密码
  5. window7调用计算机,Windows7自带计算器的使用
  6. 2017-2018-1 20155336 《信息安全系统设计基础》加分作业:实现mypwd
  7. hdfs java api 权限_HDFS Java API 详解
  8. Redis基础1(定义及基础)
  9. 【剑指Offer】18树的子结构
  10. [Web Chart系列之四] 图形布局-Layout 之js设计实现
  11. Atitit mysql redis mongodb 性能指标 目录 1.1. 二、 性能比较 1 1.2. 性能极高- Redis能读的速度是110000次/s,写的速度是81000次/s 2 1
  12. 苹果开发者账号分类详解
  13. CT一般扫描参数_工业CT检测服务
  14. winrar打包bat成exe并自动运行
  15. scipy.linalg中kron的用法
  16. 决策树注意事项和参数调节
  17. QQ2017熄灭“QQ游戏图标”方法
  18. Android知识点 015 —— 2.3.9 CountDownTimer倒计时(补充 疯狂Android讲义)
  19. 【漏洞扫描与复现】Kali之Metasploit渗透测试
  20. 日本亚马逊海淘经验-2015

热门文章

  1. Win10 Microsoft Edge浏览器播放视频出现绿屏情况解决之一
  2. 解决GoPro Quik频繁自动登出的问题
  3. 8、C语言printf函数与scanf函数
  4. reportunit 命令_DevExpress之XtraReport 学习
  5. 图片太大加载不出来的解决方法
  6. PDF导出图片-python
  7. linux 目录防篡改,Linux下的防篡改技巧
  8. 酷客多接受CCTV2财经频道专访
  9. 计算机凭证打印格式设置,打印凭证怎么设置纸张
  10. 【山大会议】注册页的编写