CentOS6.4 Installation Bugzilla

Source: Internet
Author: User
Tags install perl nginx server

I. Environment

System centos6.4x64 minimized installation (prior installation of LNMP environment)

Two. Install the base package

[[email protected] ~]# yum install perl-cpan-y[[email protected] ~]# yum install mod_perl-y[[email protected] ~]# yum in Stall Mod_perl-devel-y[[email protected] ~]# yum install fcgi-perl-y[[email protected] ~]# Yum install fcgi-devel-y

Three. Installing Fcgiwrap

To Https://codeload.github.com/gnosek/fcgiwrap/legacy.tar.gz/master

[Email protected] ~]# tar xf gnosek-fcgiwrap-1.1.0-18-g99c942c.tar.gz [[email protected] ~]# CD gnosek-fcgiwrap-99c942c [[email protected] gnosek-fcgiwrap-99c942c]# Autoreconf-i[[email protected] gnosek-fcgiwrap-99c942c]#./configure [[   Email protected] gnosek-fcgiwrap-99c942c]# makecc-std=gnu99-wall-wextra-werror-pedantic-o2-g3 fcgiwrap.c-lfcgi -o fcgiwrap[[email protected] gnosek-fcgiwrap-99c942c]# CP fcgiwrap/usr/local/bin/

Four. Create Bugzilla Database Information

mysql> CREATE DATABASE Bugzilla; Query OK, 1 row Affected (0.00 sec) Mysql> Grant all privileges on bugzilla.* to ' bugzilla ' @ ' localhost ' identified by ' B Ugzilla '; Query OK, 0 rows affected (0.03 sec) mysql> flush privileges; Query OK, 0 rows Affected (0.00 sec)

Five. Modify the Bugzilla configuration file

Download Bugzilla source file

[Email protected] ~]# wget https://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-5.0.1.tar.gz

Check the Perl module and modify the relevant files

[[Email protected] ~]# tar xf bugzilla-5.0.1.tar.gz [[email protected] ~]# CD bugzilla-5.0.1# check for missing installation packages [email protected] bu gzilla-5.0.1]#./checksetup.pl--check-modules# Install all missing packages [[email protected] bugzilla-5.0.1]# Perl install-module.pl-- all# generate configuration file [[email protected] bugzilla-5.0.1]#./checksetup.pl[[email protected] bugzilla-5.0.1]# vim Localconfig # Modify to the following content $db_name = ' Bugzilla ' $db _user = ' Bugzilla ' $db _pass = ' Bugzilla ' #最后配置相关信息 [[email protected] bugzilla-5.0.1]#. checksetup.pl

Six. Configuring the Nginx Server

[[email protected] ~]# cp -r bugzilla-5.0.1 /data/bugzilla[[email protected ] ~]# chown -r www.www /data/bugzilla         #修改成nginx的用户权限 # Install spawn-fcgi[[email protected] ~]# yum install spawn-fcgi -y# To create a site configuration file [[email protected] bugzilla]# cat /usr/local/nginx/conf/vhost/bugzilla.conf  server  {      listen       80;       server_name  bug.keluofu.com;       index  index.cgi index.html;      root   / Data/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;      }  }  [[ email protected]  ~]# spawn-fcgi -f /usr/local/bin/fcgiwrap -a 127.0.0.1 -p 9001 -f  3 -p /var/run/fastcgi-c.pidspawn-fcgi: child spawned successfully: pid:  113130spawn-fcgi: child spawned successfully: pid: 113131spawn-fcgi: child  spawned successfully: pid: 113132

The breakdown is summarized as follows

Fault 1:

Can ' t locate parent.pm in @INC (@INC contains:. Lib/usr/local/lib64/perl5/usr/local/share/perl5/usr/lib64/perl5/vendo R_PERL/USR/SHARE/PERL5/VENDOR_PERL/USR/LIB64/PERL5/USR/SHARE/PERL5) at BUGZILLA/CONSTANTS.PM Line 14.BEGIN Failed--compilation aborted at BUGZILLA/CONSTANTS.PM line 14.Compilation failed on require at./checksetup.pl Line 27.BEGI N failed--compilation aborted at./checksetup.pl #解决如下 [[email protected] ~]# Yum install perl-parent-y

This article is from the "ly36843" blog, please be sure to keep this source http://ly36843.blog.51cto.com/3120113/1696046

CentOS6.4 Installation Bugzilla

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.