linux bugzilla nginx 安装配置 详解

Bugzilla是Mozilla公司提供的一款开源的免费Bug追踪系统,用来帮助你管理软件开发,建立完善的BUG跟踪体系。

在网上看了一下,bugzilla的安装,大部分的web环境是apache 。下面说一下我的安装过程。

一,安装epel源

请参考:centos 推荐使用epel源

二,安装mysql nginx bugzilla,以及相关工具

yum install mysql mysql-server bugzilla fcgi-devel fcgi nginx perl spawn-fcgi

安装fcgiwrap,它是用来运行perl的cgi程序的

fcgiwrap下载地址: http://github.com/gnosek/fcgiwrap/tarball/master

[root@localhost download]# tar zxvf gnosek-fcgiwrap-1.1.0-5-g66e7b7d.tar.gz[root@localhost download]# cd gnosek-fcgiwrap-66e7b7d/[root@localhost gnosek-fcgiwrap-66e7b7d]# autoreconf -i[root@localhost gnosek-fcgiwrap-66e7b7d]# ./configure[root@localhost gnosek-fcgiwrap-66e7b7d]# makegcc -std=gnu99 -Wall -Wextra -Werror -pedantic -O2 -g3 fcgiwrap.c -o fcgiwrap -lfcgi[root@localhost gnosek-fcgiwrap-66e7b7d]# cp fcgiwrap /usr/local/bin/

如果autoreconf -i时,autoreconf命令不存在,安装如下依赖包:

yum install patch gcc-c++ readline-devel zlib-devel libffi-devel openssl-devel make autoconf automake libtool bison libxml2-devel libxslt-devel libyaml-devel

三,启动mysql,并创建bugzilla数据库

/etc/init.d/mysqld start   //启动服务端mysql> create database bugstest;    //创建空数据库mysql> grant all privileges on bugstest.* TO 'bugstest'@'localhost' IDENTIFIED BY 'bugstest';   //分配权限mysql> flush privileges;

四,修改bugzilla的配置localconfig,并且安装bugzilla数据库

1,修改/etc/localconfig

$db_name = 'bugstest';      //数据库名$db_user = 'bugstest';      //连接用户名$db_pass = 'bugstest';        //连接密码

就是上面,mysql里面添加的用户。

2,安装bugzilla数据库,执行checksetup.pl

 cd /usr/share/bugzilla/ ./checksetup.pl

在安装过程中会提示你输入administrtor的用户名和密码,注意:安装成功后,登录的用户名,是你的邮箱。

五,nginx配置

1,copy bugzilla到www目录下

cp -r /usr/share/bugzilla /var/www/html/chown nginx:nginx -R /var/www/html/bugzilla   //改成nginx的启动用户

2,建一个nginx的vhost

[root@localhost conf.d]# cat bugzilla.confserver{    listen       80;    server_name  192.168.10.202;    index  index.cgi index.html;    root   /var/www/html/bugzilla;    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$    {        expires     30d;    }    location ~ .*\.(js|css)?$    {        expires     1h;    }    location ~ .*\.cgi$ {             fastcgi_pass          127.0.0.1:9001;             fastcgi_index         index.cgi;             include            fastcgi.conf;    }}

六,启动nginx和fcgiwrap

spawn-fcgi -f /usr/local/bin/fcgiwrap -a 127.0.0.1 -p 9001 -F 3 -P /var/run/fastcgi-c.pid/etc/init.d/nginx start

效果图:

bugzilla 结合 nginx

Bugzilla是Mozilla公司提供的一款开源的免费Bug追踪系统,用来帮助你管理软件开发,建立完善的BUG跟踪体系。在网上看了一下,bugzilla的安装,大部分的web环境是apache 。下面说一下我的安装过程。一,安装epel源请参考:centos 推荐使用epel源二,安装mysql nginx bugzilla,以及相关工具yum install mysql mysql-server bugzilla fcgi-devel fcgi nginx perl spawn-fcgi安装fcgiwrap,它是用来运行perl的cgi程序的fcgiwrap下载地址: http://github.com/gnosek/fcgiwrap/tarball/master[root@localhost download]# tar zxvf gnosek-fcgiwrap-1.1.0-5-g66e7b7d.tar.gz[root@localhost download]# cd gnosek-fcgiwrap-66e7b7d/[root@localhost gnosek-fcgiwrap-66e7b7d]# autoreconf -i[root@localhost gnosek-fcgiwrap-66e7b7d]# ./configure[root@localhost gnosek-fcgiwrap-66e7b7d]# makegcc -std=gnu99 -Wall -Wextra -Werror -pedantic -O2 -g3 fcgiwrap.c -o fcgiwrap -lfcgi[root@localhost gnosek-fcgiwrap-66e7b7d]# cp fcgiwrap /usr/local/bin/如果autoreconf -i时,autoreconf命令不存在,安装如下依赖包:yum install patch gcc-c++ readline-devel zlib-devel libffi-devel openssl-devel make autoconf automake […] 用最少的悔恨面对过去

linux bugzilla nginx 安装配置 详解

相关文章:

你感兴趣的文章:

标签云: