CentOS6.4 install Bugzilla
I. Environment
Minimal installation of CentOS6.4x64 (LNMP environment installed in advance)
Ii. Install the basic software package
[root@
rsync
~]
#yuminstallperl-CPAN-y
[root@
rsync
~]
#yuminstallmod_perl-y
[root@
rsync
~]
#yuminstallmod_perl-devel-y
[root@
rsync
~]
#yuminstallfcgi-perl-y
[root@
rsync
~]
#yuminstallfcgi-devel-y
3. Install fcgiwrap
For https://codeload.github.com/gnosek/fcgiwrap/legacy.tar.gz/master
[root@
rsync
~]
#tarxfgnosek-fcgiwrap-1.1.0-18-g99c942c.tar.gz
[root@
rsync
~]
#cdgnosek-fcgiwrap-99c942c
[root@
rsync
gnosek-fcgiwrap-99c942c]
#autoreconf-i
[root@
rsync
gnosek-fcgiwrap-99c942c]
#./configure
[root@
rsync
gnosek-fcgiwrap-99c942c]
#make
cc-std=gnu99-Wall-Wextra-Werror-pedantic-O2-g3fcgiwrap.c-lfcgi-ofcgiwrap
[root@
rsync
gnosek-fcgiwrap-99c942c]
#cpfcgiwrap/usr/local/bin/
4. Create bugzilla database information
mysql>createdatabasebugzilla;
QueryOK,1rowaffected(0.00sec)
mysql>grantallprivilegesonbugzilla.*TO
'bugzilla'
@
'localhost'
IDENTIFIEDBY
'bugzilla'
;
QueryOK,0rowsaffected(0.03sec)
mysql>flushprivileges;
QueryOK,0rowsaffected(0.00sec)
5. modify the configuration file of bugzilla
Download the bugzilla source code file
[root@
rsync
~]
#wgethttps://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-5.0.1.tar.gz
Check the perl module and modify Related Files
[root@
rsync
~]
#tarxfbugzilla-5.0.1.tar.gz
[root@
rsync
~]
#cdbugzilla-5.0.1
# Check the missing installation package
[root@
rsync
bugzilla-5.0.1]
#./checksetup.pl--check-modules
# Install all the missing packages
[root@
rsync
bugzilla-5.0.1]
#perlinstall-module.pl--all
# Generating a configuration file
[root@
rsync
bugzilla-5.0.1]
#./checksetup.pl
[root@
rsync
bugzilla-5.0.1]
#vimlocalconfig
# Modify to the following content:
$db_name=
'bugzilla'
$db_user=
'bugzilla'
$db_pass=
'bugzilla'
# Configuration information
[root@
rsync
bugzilla-5.0.1]
#./checksetup.pl
6. Configure the nginx Server
[root@
rsync
~]
#cp-rbugzilla-5.0.1/data/bugzilla
[root@
rsync
~]
# Chown-Rwww.www/data/bugzilla # modify to nginx User Permissions
# Install spawn-fcgi
[root@
rsync
~]
#yuminstallspawn-fcgi-y
# Create a site configuration file
[root@
rsync
bugzilla]
#cat/usr/local/nginx/conf/vhost/bugzilla.conf
server
{
listen80;
server_namebug.keluofu.com;
indexindex.cgiindex.html;
root
/data/bugzilla
;
location~.*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires30d;
}
location~.*\.(js|css)?$
{
expires1h;
}
location~.*\.cgi${
fastcgi_pass127.0.0.1:9001;
fastcgi_indexindex.cgi;
includefastcgi.conf;
}
}
[root@
rsync
~]
#spawn-fcgi-f/usr/local/bin/fcgiwrap-a127.0.0.1-p9001-F3-P/var/run/fastcgi-c.pid
spawn-fcgi:childspawnedsuccessfully:PID:113130
spawn-fcgi:childspawnedsuccessfully:PID:113131
spawn-fcgi:childspawnedsuccessfully:PID:113132
Faults are summarized as follows:
Fault 1:
Can't
locate
parent.pm
in
@INC(@INCcontains:.lib
/usr/local/lib64/perl5
/usr/local/share/perl5
/usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl
/usr/lib64/perl5
/usr/share/perl5
)atBugzilla
/Constants
.pmline14.
BEGINfailed--compilationabortedatBugzilla
/Constants
.pmline14.
Compilationfailed
in
requireat.
/checksetup
.plline27.
BEGINfailed--compilationabortedat.
/checksetup
.plline27.
# Solution:
[root@
rsync
~]
#yuminstallperl-parent-y