Detailed explanation of Bugzilla nginx installation configuration in Linux system

Source: Internet
Author: User
Tags create database

Look at the Internet, Bugzilla installation, most of the Web environment is Apache. Let me say a few words about my installation process.
One, install Epel source
Please refer to: CentOS recommended to use Epel source
Second, install MySQL Nginx bugzilla, and related tools
Yum install MySQL mysql-server bugzilla fcgi-devel fcgi nginx perl spawn-fcgi
Install Fcgiwrap, which is used to run Perl CGI programs
Fcgiwrap Download Address: 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]# make
Gcc-std=gnu99-wall-wextra-werror-pedantic-o2-g3 Fcgiwrap.c-o fcgiwrap-lfcgi
[Root@localhost gnosek-fcgiwrap-66e7b7d]# CP fcgiwrap/usr/local/bin/
If the autoreconf command does not exist when autoreconf-i, install the following dependency pack:
Yum Install patch gcc-c++ readline-devel zlib-devel libffi-devel openssl-devel make autoconf automake libtool Bison 2-devel Libxslt-devel Libyaml-devel
Third, start MySQL, and create Bugzilla database
View copy print?
/etc/init.d/mysqld Start//start service side

mysql> CREATE DATABASE Bugstest; Create an empty database
Mysql> grant all privileges in bugstest.* to ' bugstest ' @ ' localhost ' identified by ' bugstest '; assigning permissions
mysql> flush Privileges;
Iv. Modify the Bugzilla configuration localconfig and install the Bugzilla database
1, modify/etc/localconfig
View copy print?
$db _name = ' bugstest '; Database name
$db _user = ' bugstest '; Connect User Name
$db _pass = ' bugstest '; Connection password
Is the above, MySQL inside added users.
2, install Bugzilla database, execute checksetup.pl
cd/usr/share/bugzilla/
./checksetup.pl
In the installation process will prompt you to enter administrtor username and password, note: After the installation is successful, login username, is your mailbox.
Five, Nginx configuration
1,copy Bugzilla to www directory
View copy print?
Cp-r/usr/share/bugzilla/var/www/html/
Chown nginx:nginx-r/var/www/html/bugzilla//Convert to Nginx startup user
2, build a nginx vhost.
View copy print?
[Root@localhost conf.d]# Cat bugzilla.conf
Server
{
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;
}
}
Six, start Nginx and Fcgiwrap
View copy print?
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
Effect Chart:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.