Bugzilla-2.4.3安装

来源:互联网 发布:怎么卖淘宝充值卡 编辑:程序博客网 时间:2024/05/19 10:09

Bugzilla-2.4.3安装

软件过程管理需要安装追踪bug产生和解决详细过程的的软件,选取开源的bugzilla,安装过程如下:

    一、安装Perl

     perl-v

    Thisis perl, v5.8.8 built forx86_64-linux-thread-multi

    至少5.8.1版本,或者最新的稳定版。

    二、安装Mysql

    mysql-V

     mysql  Ver 14.12 Distrib 5.0.95, forredhat-linux-gnu (x86_64) using readline 5.1

     至少5.0.15版本,或者最新的稳定版。

    查看mysqld是否启动:psaux|grep mysqld

    启动myslqd:/etc/rc.d/init.d/mysqldstart(可以把这个路径写到PATH里面)

     为root用户设置秘密:mysqladmin-u root password yourpasswd

    用root用户登录:mysql -uroot -p

    查看数据库:mysql> show databases;

              +--------------------+

              |Database           |

              +--------------------+

              |information_schema |

              |mysql              |

              |test               |

              +--------------------+

    为bugzilla创建数据库:mysql>createdatabase bugzilla;

    再查看数据库:mysql> show databases;

              +--------------------+

              |Database           |

              +--------------------+

              |information_schema |

              |bugzilla               |

              |mysql              |

              |test               |

              +--------------------+

创建用户并授权grantselect,insert,update,delete,index,alter,create,lock tables,drop,references onbugzilla.* to bugzilla@localhost identified by 'bugzilla';

    三、安装PostgreSQL (可选)

    psql-V

    psql(PostgreSQL) 8.1.23

    至少8.03.0000版本,或者最新的稳定版。

    四、安装httpd

    yuminstall httpd.x86_64

    yuminstall httpd-devel.x86_64

    测试是否安装成功: httpd start/stop/restart

    五、安装Web Server

    本文选择apche

    需要软件包:apr、apr-util、pcre

    ./configure–prefix=/opt/apache/apr-1.4.6

    ./configure--prefix=/opt/apache/apr-util-1.5.1--with-apr=/opt/apache/apr-1.4.6/

    yuminstall pcre-devel.x86_64

    yumisntall pcer.x86_64

    ./configure --prefix=/opt/apache/apache-2.4.3--with-apr=/root/mydownloads/firefox-downloads/apr-1.4.6--with-apr-util=/root/mydownloads/firefox-downloads/apr-util-1.5.1--with-pcre=/opt/pcre-8.30 --enable-modules=all --enable-ssl  --with-ssl=/usr/bin/openssl--enable-mods-shared=all --enable-so --enable-mods-shared=most--with-mpm=worker --with-include-apr

需要注意的是:apr和apr-util需要指定的是源码包位置,而prce需要制定的是安装目录,切记!!!

    测试是否安装成功:打开浏览器输入网址:http://本机ip, 如果出现apache的测试页,则说明已经安装成功。
六、bugzilla-2.4.3 安装
./checksetup.pl//查看哪些模块没有安装
./install-module.pl -all//安装所有的module
修改localconfig文件:
将数据库,用户名,密码都要与之前建数据时候设置的相同,并将$index_html=0改成$index_html=1;
七、修改apache的配置文件
vim /opt/apache/apache-2.4.3/conf/httpd.conf 修改下面几项:
ServerAdmin root@localhost
ServerName 192.168.168.254:8011
ServerRoot "/opt/apache/apache-2.4.3" opt/apache为你的apache的安装目录 
Listen 8011
DocumentRoot "/var/www/bugzilla-4.2.4"
<Directory "/var/www/bugzilla-4.2.4">
   AllowOverride all
    Order allow,deny
   Allow from all
   satisfy all
    Require all granted
</Directory>
<Directory "/opt/apache/apache-2.4.3/cgi-bin">///opt/apache为你的apache的安装目录
至此,bugzilla就安装完了,可以登录你的服务器ip来用的bugzilla了!
原创粉丝点击