Ubuntu16.04安装bugzilla
Ubuntu16.04安装bugzilla5.1.1
一、前期准备
Apache和MySQL及依赖包安装
sudo apt-get install apache2 mysql-server mysql-client libapache2-mod-perl2 libapache2-mod-perl2-dev libapache2-mod-perl2-doc perl postfix make gcc g++
MySQL设置
# mysql -u root -p # password: (You'll need to enter your password) # mysql > create database bugs; # mysql > grant all on bugs.* to root@localhost identified by "mypassword"; # mysql > quit
如果出现mysql-config错误,补充安装
apt-get install libmysqld-dev apt-get install libmysqlclient-dev
Bugzilla下载
wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-x.x.x.tar.gz
将上方x替换为所需bugzilla的版本号
本文均基于bugzilla5.1.1
可从官方网站http://www.bugzilla.org/download/下载或确定所需版本号
从下载下来的bugzilla压缩包中提取文件并重命名:
tar zxvf bugzilla-4.5.2.tar.gz -C /var/www/html/cd /var/www/html/mv -v bugzilla-4.5.2 bugzilla
YAML补全(不一定需要,若第二步报错则可返回安装)
下载网址:https://metacpan.org/release/MSTROUT/YAML-0.84/view/lib/YAML.pm
二、bugzilla模块补全
cd /var/www/html/bugzilla/
perl checksetup.pl
显示示例如下:
* This is Bugzilla 5.1.1 on perl 5.22.1
* Running on Linux 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016
Checking for CGI (4.09) ok: found v4.26
Checking for DBI (1.614) not found
Checking for Date::Format (2.23) ok: found v2.24
Checking for DateTime (0.75) not found
Checking for DateTime::TimeZone (1.64) not found
Checking for Digest::SHA (any) ok: found v5.95
Checking for Email::MIME (1.904) not found
Checking for Email::Sender (1.300011) not found
Checking for ExtUtils::MakeMaker (6.55) ok: found v7.04_01
Checking for File::Slurp (9999.13) not found
Checking for JSON::XS (2.01) not found
Checking for List::MoreUtils (0.32) ok: found v0.413
Checking for Math::Random::ISAAC (v1.0.1) not found
Checking for Template (2.24) not found
Checking for URI (1.55) ok: found v1.71
Checking for perl (5.014000) ok: found v5.022001
*** Installation aborted. Read the messages above. ***
输入
perl -MCPAN -e shell ......进入命令行,初次进入会有config设置,不选择automatic(no),manually和sudo选择sudo,接下来大部分可以直接一路回车默认
如果需要改动config设置,输入上条命令后输入:o conf init 再次设定
Looking for CPAN mirrors near you (please be patient) .......................... done! //这一步寻找国内镜像
耐心等,祈祷网好
再输入
install DBD::mysql
补全DBI模块
按照
install+模块名称在命令行内补全所有模块
执行perl checksetup.pl
生成一个localconfig
文件
三、修改配置等
- 修改数据库相关
vi localconfig 修改db_driver(一般为mysql) db_name db_user db_pass
此时如果忘了db设置:
sudo vi /etc/mysql/debian.cnf
即可进入查询修改
修改Apache相关
vi /etc/apache2/apache2.conf
添加如下内容:
<Directory /var/www/html/bugzilla>AddHandler cgi-script .cgiOptions +Indexes +ExecCGIDirectoryIndex index.cgiAllowOverride allRequire all granted </Directory>ServerName localhost DirectoryIndex index.html index.htm index.php index.cgi
添加
cgi.load
到mods-enabled
,使用命令创建cgi
模块的软链接:ln -s ../mods-available/cgi.load cgi.load
再
vi /var/www/html/bugzilla/.htacess
用#注释掉Options -Indexes这一行
修改文件权限
cd /var/www/html
chmod 777 -R bugzilla
四、重启apache和mysql
/etc/init.d/apache2 restart
/etc/init.d/mysql restart
在浏览器输入localhost/bugzilla或者非服务器端输入服务器地址/bugzilla出现bugzilla首页即为完成
Ubuntu16.04安装bugzilla相关推荐
- ubuntu16.04安装opencv3.4.1教程
最近opencv3.4.1发布了,想换个新的试试鲜,于是把配置的过程通过博文的方式记录下来,方便查阅. 本教程原为3.3.0,但经过博主亲测,3.4.0.3.4.1皆适用 1.去官网下载opencv ...
- Ubuntu16.04 安装ftp
2019独角兽企业重金招聘Python工程师标准>>> Ubuntu16.04 安装ftp,根据依赖安装. 安装vsftpd. sudo apt-get install vsftpd ...
- ubuntu16.04 安装CAJViewer 以及 安装wine /deepin-wine 图标异常的解决
ubuntu16.04 安装CAJViewer 以及 安装wine /deepin-wine 图标异常的解决 通过deepin-wine 安装 cajviewer 之前装过deepin-wine 所以 ...
- ubuntu16.04 安装微信和qq
ubuntu16.04 安装微信和qq Ubuntu系统没有qq和微信很难受,所以前几天装了一下qq和微信,在此记录下来,以防忘记. 通过 https://github.com/wszqkzqk/de ...
- Ubuntu16.04安装Chrome浏览器及解决root不能打开的问题
Ubuntu16.04安装Chrome浏览器及解决root不能打开的问题 参考文章: (1)Ubuntu16.04安装Chrome浏览器及解决root不能打开的问题 (2)https://www.cn ...
- Linux入门(7)——Ubuntu16.04安装wps并解决系统缺失字体问题
Linux入门(7)--Ubuntu16.04安装wps并解决系统缺失字体问题 参考文章: (1)Linux入门(7)--Ubuntu16.04安装wps并解决系统缺失字体问题 (2)https:// ...
- ubuntu16.04安装CUDA 8.0(很详尽,包括一些坑的解决方法)
ubuntu16.04安装CUDA 8.0(很详尽,包括一些坑的解决方法) 参考文章: (1)ubuntu16.04安装CUDA 8.0(很详尽,包括一些坑的解决方法) (2)https://www. ...
- ubuntu16.04安装英伟达(NVIDIA)驱动——run文件安装
ubuntu16.04安装英伟达(NVIDIA)驱动--run文件安装 去官网http://www.nvidia.com/Download/index.aspx?lang=en-us选择显卡驱动 中文 ...
- ubuntu16.04安装torch
ubuntu16.04安装torch 第一步:从git上获取安装LuaJIT(C语言编写的Lua的解释器)和Torch所必需的依赖包: 在终端执行:git clone https://github.c ...
- python3.6.5安装教程-Ubuntu16.04安装python3.6.5步骤详解
下载python3.6.5安装包 1. 上传安装包.打开终端,利用命令cd 进入文件所在文件夹里 python@ubuntu:~/workspace$pwd /home/python/workspac ...
最新文章
- Linux那些事儿 之 戏说USB(16)配置
- io python 读取pdf_实用又好用,6 款 Python 特殊文本格式处理库推荐
- echo打印彩色的用法
- html页面css代码写在哪里,HTML、CSS代码书写规范
- mysql 什么时候用单列索引?什么使用用联合索引?
- Excel2016如何添加表格边框?分享技巧!怎样在excel加入表格边框?
- 【转】Rstudio中修改工作路径的三种方法
- Android开发之高德地图导航
- 用HTML搞一个汇率转换器,Currency Converter:实时汇率转换
- steam服务器维护6月28,多多自走棋维护公告 多多自走棋6月28日更新内容
- Git入门——tortoisegit使用问题:git不显示图标?
- Wechaty|微信小助手(非web|机器人)
- putty下载链接提供
- Google Maps基站定位
- freemarker 宏 调用java_freemarker宏的应用
- 彩虹代shua网仿小储store模板 已去除后门
- 计算机共享修复方法,win10系统设置共享后看不到共享电脑的修复办法
- linux内存管理笔记(八)---内核临时页表的创建
- jquery 隐藏与显示tr标签
- 软件工程——第一次作业
热门文章
- 【论文阅读】【因果关系】
- 如何设置或更改代理?这些方法你知道吗?
- Assembler--Error: invalid instruction suffix for `push‘
- python爬虫爬取淘宝美食_python爬虫爬取淘宝商品信息
- java中怎么编写一个类_Java入门(8) 创建新类
- 如何自己动手免费申请软件著作权
- oracle kup04040,ORA-20011: Approximate NDV failed: ORA-29913: 执行 ODCIEXTTABLEOPE
- UVALive-3713 Astronauts (2-SAT)
- 判断一个数是不是奇数
- c语言报告实验反思,c语言实验总结与反思