公司现在有需要搭建bugzilla 系统,之前搭建过,但是没有记录下来,这次把他完全记录下来,以供自己以后参考(建议在安装系统的时候安装上开发工具,administrator tool ,system tool 等,这样在安装的过程中就不会出现缺少包的情况)
1.安装apache
tar zxvf httpd-2.2.9.tar.gz
cd httpd-2.2.9
./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite --enable-ssl --with-ssl=/usr/lib --with-auth-digest --enable-cgi --enable-mods-shared=all --enable-suexec --with-suexec-caller=daemon --with-suexec-docroot=/usr/local/apache2/htdocs --enable-auth-digest
make
make install
创建所需的目录, 例如 mkdir /usr/local/apache2/htdocs/Dawn
在/usr/local/apache2/conf/httpd.conf中添加如下
AddHandler cgi-script .cgi
<Directory "/usr/local/apache2/htdocs/Dawn/">
Options All
AllowOverride Limit
Order allow,deny
Allow from all
</Directory>
添加index.cgi  eg :
<IfModule dir_module>
    DirectoryIndex  index.cgi index.php index.html
</IfModule>

note:是这个样子/usr/local/apache2/htdocs/Dawn/

2.安装mysql
groupadd mysql
useradd -g mysql -s /sbin/nologin -M mysql
 tar zxvf mysql-5.1.44.tar.gz
cd mysql-5.1.44
 ./configure --prefix=/usr/local/mysql --with-charset=gbk   --with-extra-charsets=all  --enable-thread-safe-client --enable-local-infile --with-low-memoryz
make
make install
cp support-files/my-medium.cnf  /etc/my.cnf
chown -R mysql.mysql /usr/local/mysql/
/usr/local/mysql/bin/mysql_install_db --user=mysql
chown -R mysql.mysql /usr/local/mysql/var/
/usr/local/mysql/bin/mysqld_safe --user=mysql &
cp support-files/mysql.server  /etc/rc.d/init.d/mysqld
chmod 755 /etc/rc.d/init.d/mysqld
chkconfig --add mysqld
chkconfig  --levels  345  mysqld  on
echo "/usr/local/mysql/lib/mysql">>/etc/ld.so.conf
ldconfig
echo "export PATH=$PATH:/usr/local/mysql/bin">>/etc/profile
source /etc/profile
/usr/local/mysql/bin/mysqladmin -u root password 123123
这是我整理的,完全可以将上面代码复制,创建成一个脚本,最简单是利用if 判断mysql这个目录存在不存在就可以了 eg: if [ ! -d  /usr/local/mysql ]
进入mysql数据库创建Dawn
/usr/local/mysql/bin/mysql -u root -p123123
>create database Dawn;
3.安装perl

1)取得最新版本的 perl,即 perl-5.8.8.tar.bz2
2)解文件包:
tar -jxvf perl-5.8.8.tar.bz2
得到目录 perl-5.8.8
3)在目录 perl-5.8.8 下安装 perl:
sh Configure -de
make
make test
make install

sh Configure -de 安装使用默认配置,一般而言将会 ok 。
安装完成后 perl 所在目录为 /usr/local/lib/perl5, perl 执行文件
在 /usr/local/bin 中。

note:
使用rpm包安装也可以,假设在安装系统的时候安装上开发工具 perl 就自动安装好了

初始化perl (这个很重要)

首先初始化perl的cpan:perl -MCPAN -e 'shell'

一路默认回车即可,

First, pick a nearby continent and country (you can pick several of

each, separated by spaces, or none if you just want to keep your

existing selections). Then, you will be presented with a list of URLs

of CPAN mirrors in the countries you selected, along with previously

selected URLs. Select some of those URLs, or just keep the old list.

Finally, you will be prompted for any extra URLs -- file:, ftp:, or

http: -- that host a CPAN mirror.

(1) Africa

(2) Asia

(3) Australasia

(4) Central America

(5) Europe

(6) North America

(7) Oceania

(8) South America

Select your continent (or several nearby continents) [] 2

Sorry! since you don't have any existing picks, you must make a

geographic selection.

(1) China

(2) Hong Kong

(3) India

(4) Indonesia

(5) Japan

(6) Kazakhstan

(7) Republic of Korea

(8) Russia

(9) Singapore

(10) Taiwan

(11) Thailand

(12) Turkey

Select your country (or several nearby countries) [] 1

Sorry! since you don't have any existing picks, you must make a

geographic selection.

(1) http://cpan.wenzk.com/

Select as many URLs as you like (by number),

put them on one line, separated by blanks, e.g. '1 4 5' [] 1

4.安装perl模块
1)安装bugzilla所需的perl模块

必要模块:    
1. CGI 2.93 or CGI 3.11 if using mod_perl
      2. Date::Format (2.21)
      3. DBI (1.41)
      4. DBD::mysql (2.9003) if using MySQL
      5. DBD::Pg (1.45) if using PostgreSQL
      6. File::Spec (0.84)
      7. Template (2.12)
      8. Email::Send (2.00)
      9. Email::MIME::Modifier (any)
其中DBD模块在本章中先不进行安装,因为这个模块需要先安装mysql,其他模块均可安装
可选模块:
1. GD (1.20) for bug charting
      2. Template::Plugin::GD::Image (1.20) for Graphical Reports
      3. Chart::Base (1.0) for bug charting
      4. GD::Graph (any) for bug charting
      5. GD::Text (any) for bug charting
      6. XML::Twig (any) for bug import/export
      7. MIME::Parser (5.406) for bug import/export
      8. LWP::UserAgent (any) for Automatic Update Notifications
      9. PatchReader (0.9.4) for pretty HTML view of patches
     10. Image::Magick (any) for converting BMP p_w_picpath p_w_uploads to PNG
     11. Net::LDAP (any) for LDAP Authentication
     12. SOAP::Lite (any) for the web service interface
     13. HTML::Parser (3.40) for More HTML in Product/Group Descrīptions
     14. HTML::Scrubber (any) for More HTML in Product/Group Descrīptions
     15. Email::MIME::Attachment::Stripper (any) for Inbound Email
     16. Email::Reply (any) for Inbound Email
     17. mod_perl2 (1.999022) for mod_perl
     18. CGI (2.93) for mod_perl
     19. Apache::DBI (0.96) for mod_perl2

2)  不过,放心 perl提供了很简便的模块安装方式:
(单模块安装方式)perl -MCPAN -e 'install 模块名'
(批量安装方式)比如安装bugzilla的模块,执行这个命令就可以了:perl -MCPAN -e 'install "Bundle::Bugzilla"' or  perl install-module.pl --all (我用的是这个,使用前面那个不知道是怎么回事安装不全,使用这个可以将安装bugzilla所必需的模块安装完毕,时间大约要一个半小时)
5.安装bugzilla
tar -zxvf bugzilla-4.0.tar.gz
cd bugzilla-4.0
mv * /usr/local/apache2/htdocs/Dawn
chmod -R 777 /usr/local/apache2/htdocs/Dawn
cd /usr/local/apache2/htdocs/Dawn
./checksetup.pl (检查安装,如果上一步的perl模块没有装好,这里会提示)如果没有错的话会生出localconfig 文件
修改 localconfig 修改以下内容:
$db_host = "localhost";
$db_name = "Dawn";
$db_user = "root";
$db_pass = "123123";
找到

$index_html=0
改为:
$index_html=1
这样会生成一个index.html文件,该文件指向index.cgi

2)再次运行checksetup.pl 
但是不能成功,会出现以下提示:
InnoDB is disabled in your MySQL installation.  Bugzilla requires InnoDB to be enabled.  Please enable it and then re-run checksetup.pl.
说的啥意思呢,就是说 Bugzilla的要求,要启用InnoDB

下面咱就启用

进入到mysql 中

/usr/local/mysql/bin/mysql -u root -p123123

查看数据库是否支持innodb

mysql> show engines;
+------------+---------+------------------------------------------------------------+--------------+------+------------+
| Engine     | Support | Comment                                                    | Transactions | XA   | Savepoints |
+------------+---------+------------------------------------------------------------+--------------+------+------------+
| CSV        | YES     | CSV storage engine                                         | NO           | NO   | NO         |
| MRG_MYISAM | YES     | Collection of identical MyISAM tables                      | NO           | NO   | NO         |
| MEMORY     | YES     | Hash based, stored in memory, useful for temporary tables  | NO           | NO   | NO         |
| InnoDB     | YES     | Supports transactions, row-level locking, and foreign keys | YES          | YES  | YES        |
| MyISAM     | DEFAULT | Default engine as of MySQL 3.23 with great performance     | NO           | NO   | NO         |
+------------+---------+------------------------------------------------------------+--------------+------+------------+
5 rows in set (0.00 sec)

先查看mysql是否安装了innodb插件
Sql代码
  1. [root@localhost bin]# ./mysql
  2. mysql> show plugin;
  3. +------------+--------+----------------+---------+---------+
  4. | Name       | Status | Type           | Library | License |
  5. +------------+--------+----------------+---------+---------+
  6. | binlog     | ACTIVE | STORAGE ENGINE | NULL    | GPL     |
  7. | CSV        | ACTIVE | STORAGE ENGINE | NULL    | GPL     |
  8. | MEMORY     | ACTIVE | STORAGE ENGINE | NULL    | GPL     |
  9. | MyISAM     | ACTIVE | STORAGE ENGINE | NULL    | GPL     |
  10. | MRG_MYISAM | ACTIVE | STORAGE ENGINE | NULL    | GPL     |
  11. +------------+--------+----------------+---------+---------+
发现没有安装
安装
mysql> install plugin innodb soname 'ha_innodb.so';  Query OK, 0 rows affected (0.36 sec) 

再次show plugin; 发现 多了一行
| InnoDB     | ACTIVE | STORAGE ENGINE | ha_innodb.so | GPL     |
 再次运行checksetup.pl  会要求输入管理员邮箱和密码(一定要记在用户名和密码)
到此安装完毕
在浏览器中输入http://ip_address/Dawn/
说没有权限访问  呵呵chmod -R 777 /usr/local/apache2/htdocs/Dawn

输入管理员的用户名和密码
用户名为输入的邮箱账号

转载于:https://blog.51cto.com/yijiaxin/756261

centos 上安装bugzilla 详解相关推荐

  1. Windows 上安装 Bugzilla 详解

    一.软件准备: 1.phpStudy 下载地址http://phpstudy.php.cn/ 2.bugzilla 下载地址 https://www.bugzilla.org/download/ 3. ...

  2. centOS下安装tomcat详解

    本人是用的vmware上安装的centOS系统. 先去apache的tomcat官网上下载下来所需要的文件,网址为http://tomcat.apache.org/download-70.cgi 点击 ...

  3. linux上安装Weblogic11g 详解

    原文:https://blog.csdn.net/m0_37253968/article/details/88883708 目的:学习weblogic11g 在linux下 无图形安装的过程.无图形化 ...

  4. CentOS下DB2数据库安装过程详解

    这篇文章主要介绍了CentOS下DB2数据库安装过程详解,本文步骤详细,操作的命令也比较全 安装前请查看DB2版本和许可证说明来增加了解,先弄明白改安装什么版本,这里我用的是最新的Express-C版 ...

  5. centos6 安装 mantisbt-1.2.8 —— (1) VMware Workstation 12 Pro 虚拟机安装步骤详解(window 10 系统)

    对于目前主流之一的VMware 虚拟机而言,一直是各位小伙伴的首选,而VMware 12 Pro 是截止目前最新的VMware Workstation 版本:偶在这里特地给刚刚入坑的小伙伴详细介绍介绍 ...

  6. redis cluster 集群 安装 配置 详解

    redis cluster 集群 安装 配置 详解 张映 发表于 2015-05-01 分类目录: nosql 标签:cluster, redis, 安装, 配置, 集群 Redis 集群是一个提供在 ...

  7. 深入分析redis cluster 集群安装配置详解

    Redis 集群是一个提供在多个Redis间节点间共享数据的程序集.redis3.0以前,只支持主从同步的,如果主的挂了,写入就成问题了.3.0出来后就可以很好帮我们解决这个问题. 目前redis 3 ...

  8. Bugzilla详解

    Bugzilla详解 引言 Bugzilla是一种开源的缺陷管理系统,用于跟踪软件开发过程中的缺陷.错误和问题.它提供了一个集中化的平台,允许开发团队.测试团队和用户报告和跟踪软件中的缺陷,以便及时发 ...

  9. Linux安装消息队列IBM MQ 7.5开发版安装配置详解

    消息队列IBM MQ 7.5开发版安装配置详解 文章目录 消息队列IBM MQ 7.5开发版安装配置详解 前言 一.什么是IBM MQ? 二.安装前准备 1.安装前准备 2.安装MQ Server 3 ...

最新文章

  1. mysql+根密码是什么意思,重设MySQL根密码
  2. git rebase用法_Git:Clone别人的代码之后push到自己码云上失败的解决办法
  3. 《计算机算法设计与分析》题目汇总
  4. Java 螺纹第三版 第三章数据同步 读书笔记
  5. 天池实验室-Task03-Python入门(下)
  6. mysql存过游标_mysql存储过程 游标 循环使用介绍
  7. 如何将Eclipse设置为中文简体
  8. python实现3d人物建模_很强!用Python实现3D建模!
  9. 据说中国电信将ADSL的80端口给封了
  10. 5w2h原则指的是什么_5W2H指的是什么?
  11. 青出于蓝胜于蓝-(树状数组+DFS序)
  12. Receptive Field Block Net 论文阅读
  13. 报错:[Banner] The number of titles and images is different
  14. kibana Unable to connect to Elasticsearch at http://elasticsearch:9200.
  15. 证明:矩阵不同特征值对应的特征向量之间线性无关
  16. OTM1287A在MSM8909上的移植
  17. hdu 5128 The E-pang Palace (有技巧的暴力)
  18. 植物叶片——相对电导率Relative conductivity
  19. 控制工程笔记3|拉普拉斯变换应用
  20. 计算机专业英语读写比赛,四年级英语读写大赛lpar;初赛rpar;

热门文章

  1. 软件测试:面试屡屡碰壁,只因你身上少了这几个特征!
  2. mysql主库从库在同一台服务器_通过两种方式增加从库——不停止mysql服务
  3. matlab虚拟现实之V-Realm Builder2使用NavigationInfo精确定位、建模
  4. 双目估计方法_基于双目视觉的自动驾驶技术
  5. 多功能计算机使用说明,多功能分装机/多功能分装机
  6. 基于深度卷积神经网络的玉米病害实时识别检测系统
  7. 基于卷积神经网络的图像情感分析模型,Python实现
  8. 吴恩达老师的机器学习和深度学习课程笔记打印版(全)
  9. GitLab CI/CD实践
  10. ios键盘横屏_平板电脑就只能追剧玩游戏?看这款外设键盘如何让iPad爱上办公...