Bugzilla安装过程
下载bugzilla
Wgethttp://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.4.tar.gz
官方安装文档:http://www.bugzilla.org/docs/4.4/en/html/installation.html
1,首先安装apache和mysql数据库
Yum �Cy install mysql mysql-server httpd httpd-devel postgresql-devel gd-devel pq-devel
2,
对数据库进行设置
#vim /etc/my.cnf [mysqld] # Allow smallwords in full-text indexes ft_min_word_len=2 # Allow packets up to 4MB max_allowed_packet=4M
数据库授权用户权限
mysql> GRANT SELECT, INSERT, UPDATE, DELETE, INDEX, ALTER, CREATE, LOCK TABLES, CREATE TEMPORARY TABLES, DROP, REFERENCES ON bugs.* TO bugs@localhost IDENTIFIED BY '$db_pass'; mysql> FLUSH PRIVILEGES;
更改apache配置
<Directory /var/www/html/bugzilla> AddHandler cgi-script .cgi Options +ExecCGI DirectoryIndex index.cgi index.html AllowOverride Limit FileInfo IndexesOptions </Directory>
更改完以后关闭apache,mysql服务
3、开始安装bugzilla,安装钱必须安装perl,否则无法安装。
[root@ftp root]tar �Czxvf bugzilla-4.4.tar.gz �CC /var/www/html/ [root@ftp html]cd bugzilla-4.4 [root@ftp bugzilla]# ./checksetup.pl [root@ftp bugzilla]#/usr/bin/perl install-module.pl --all
[root@ftp bugzilla]# ./checksetup.pl * This is Bugzilla 4.4 on perl 5.8.8 * Running on Linux 2.6.18-308.el5 #1 SMP Fri Jan 27 17:21:15 EST 2012 Checking perl modules... Checking for CGI.pm (v3.51) ok: found v3.63 Checking for Digest-SHA (any) ok: found v5.85 Checking for TimeDate (v2.23) ok: found v2.24 Checking for DateTime (v0.28) ok: found v1.03 Checking for DateTime-TimeZone (v0.71) ok: found v1.59 Checking for DBI (v1.54) ok: found v1.627 Checking for Template-Toolkit (v2.22) ok: found v2.24 Checking for Email-Send (v2.04) ok: found v2.198 Checking for Email-MIME (v1.904) ok: found v1.920 Checking for URI (v1.37) ok: found v1.60 Checking for List-MoreUtils (v0.32) ok: found v0.33 Checking for Math-Random-ISAAC (v1.0.1) ok: found v1.004 Checking available perl DBD modules... Checking for DBD-Pg (v2.7.0) not found Checking for DBD-mysql (v4.001) ok: found v4.023 Checking for DBD-SQLite (v1.29) ok: found v1.39 Checking for DBD-Oracle (v1.19) not found The following Perl modules are optional: Checking for GD (v1.20) not found Checking for Chart (v2.1) not found Checking for Template-GD (any) not found Checking for GDTextUtil (any) not found Checking for GDGraph (any) not found Checking for MIME-tools (v5.406) ok: found v5.504 Checking for libwww-perl (any) ok: found v2.033 Checking for XML-Twig (any) ok: found v3.44 Checking for PatchReader (v0.9.6) ok: found v0.9.6 Checking for perl-ldap (any) ok: found v0.56 Checking for Authen-SASL (any) ok: found v2.16 Checking for Net-SMTP-SSL (v1.01) ok: found v1.01 Checking for RadiusPerl (any) ok: found v0.22 Checking for SOAP-Lite (v0.712) ok: found v0.716 Checking for JSON-RPC (any) ok: found v1.03 Checking for JSON-XS (v2.0) ok: found v2.34 Checking for Test-Taint (any) ok: found v1.06 Checking for HTML-Parser (v3.40) ok: found v3.55 Checking for HTML-Scrubber (any) ok: found v0.09 Checking for Encode (v2.21) ok: found v2.51 Checking for Encode-Detect (any) ok: found v1.01 Checking for Email-Reply (any) ok: found v1.202 Checking for HTML-FormatText-WithLinks (v0.13) ok: found v0.14 Checking for TheSchwartz (any) ok: found v1.10 Subroutine File::Slurp::O_RDWR redefined at lib/File/Slurp.pm line 11 Subroutine File::Slurp::O_CREAT redefined at lib/File/Slurp.pm line 11 Subroutine File::Slurp::O_EXCL redefined at lib/File/Slurp.pm line 11 Use of uninitialized value in string eq at lib/File/Flock/Forking.pm line 13, <DATA> line 747. Checking for Daemon-Generic (any) ok: found v0.83 Checking for mod_perl (v1.999022) ok: found v2.000004 Checking for Apache-SizeLimit (v0.96) not found Checking for File-MimeInfo (any) ok: found v0.16 Checking for IO-stringy (any) ok: found v2.110 Checking for mod_headers (any) ok Checking for mod_expires (any) ok Checking for mod_env (any) ok *********************************************************************** * OPTIONAL MODULES * *********************************************************************** * Certain Perl modules are not required by Bugzilla, but by * * installing the latest version you gain access to additional * * features. * * * * The optional modules you do not have installed are listed below, * * with the name of the feature they enable. Below that table are the * * commands to install each module. * *********************************************************************** * MODULE NAME * ENABLES FEATURE(S) * *********************************************************************** * GD * Graphical Reports, New Charts, Old Charts * * Chart * New Charts, Old Charts * * Template-GD * Graphical Reports * * GDTextUtil * Graphical Reports * * GDGraph * Graphical Reports * * Apache-SizeLimit * mod_perl * *********************************************************************** COMMANDS TO INSTALL OPTIONAL MODULES: GD: /usr/bin/perl install-module.pl GD Chart: /usr/bin/perl install-module.pl Chart::Lines Template-GD: /usr/bin/perl install-module.pl Template::Plugin::GD::Image GDTextUtil: /usr/bin/perl install-module.pl GD::Text GDGraph: /usr/bin/perl install-module.pl GD::Graph Apache-SizeLimit: /usr/bin/perl install-module.pl Apache2::SizeLimit To attempt an automatic install of every required and optional module with one command, do: /usr/bin/perl install-module.pl --all Reading ./localconfig... Checking for DBD-mysql (v4.001) ok: found v4.023 There was an error connecting to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) This might have several reasons: * MySQL is not running. * MySQL is running, but there is a problem either in the server configuration or the database access rights. Read the Bugzilla Guide in the doc directory. The section about database configuration should help. * Your password for the 'bugs' user, specified in $db_pass, is incorrect, in './localconfig'. * There is a subtle problem with Perl, DBI, or MySQL. Make sure all settings in './localconfig' are correct. If all else fails, set '$db_check' to 0.
查看缺少哪些块对其进行下载安装即可.
常出现缺少 DBD-Pg mod_perl GD
wget http://search.cpan.org/CPAN/authors/id/T/TU/TURNSTEP/DBD-Pg-2.19.3.tar.gz
wget http://search.cpan.org/CPAN/authors/id/L/LD/LDS/GD-2.49.tar.gz
wget http://search.cpan.org/CPAN/authors/id/P/PH/PHRED/mod_perl-2.0.7.tar.gz
模块安装方法:
bash# tar -xzvf <module>.tar.gz bash# cd <module> perl Makefile.PL make make test make install
模块安装完毕后启动apache和mysql再次执行次脚脚本
[root@ftp bugzilla]# ./checksetup.pl * This is Bugzilla 4.4 on perl 5.8.8 * Running on Linux 2.6.18-308.el5 #1 SMP Fri Jan 27 17:21:15 EST 2012 Checking perl modules... Checking for CGI.pm (v3.51) ok: found v3.63 Checking for Digest-SHA (any) ok: found v5.85 Checking for TimeDate (v2.23) ok: found v2.24 Checking for DateTime (v0.28) ok: found v1.03 Checking for DateTime-TimeZone (v0.71) ok: found v1.59 Checking for DBI (v1.54) ok: found v1.627 Checking for Template-Toolkit (v2.22) ok: found v2.24 Checking for Email-Send (v2.04) ok: found v2.198 Checking for Email-MIME (v1.904) ok: found v1.920 Checking for URI (v1.37) ok: found v1.60 Checking for List-MoreUtils (v0.32) ok: found v0.33 Checking for Math-Random-ISAAC (v1.0.1) ok: found v1.004 Checking available perl DBD modules... Checking for DBD-Pg (v2.7.0) ok: found v2.19.3 Checking for DBD-mysql (v4.001) ok: found v4.023 Checking for DBD-SQLite (v1.29) ok: found v1.39 Checking for DBD-Oracle (v1.19) not found The following Perl modules are optional: Checking for GD (v1.20) ok: found v2.49 Checking for Chart (v2.1) ok: found v2.4.6 Checking for Template-GD (any) ok: found v1.56 Checking for GDTextUtil (any) ok: found v0.86 Checking for GDGraph (any) ok: found v1.47 Checking for MIME-tools (v5.406) ok: found v5.504 Checking for libwww-perl (any) ok: found v2.033 Checking for XML-Twig (any) ok: found v3.44 Checking for PatchReader (v0.9.6) ok: found v0.9.6 Checking for perl-ldap (any) ok: found v0.56 Checking for Authen-SASL (any) ok: found v2.16 Checking for Net-SMTP-SSL (v1.01) ok: found v1.01 Checking for RadiusPerl (any) ok: found v0.22 Checking for SOAP-Lite (v0.712) ok: found v0.716 Checking for JSON-RPC (any) ok: found v1.03 Checking for JSON-XS (v2.0) ok: found v2.34 Checking for Test-Taint (any) ok: found v1.06 Checking for HTML-Parser (v3.40) ok: found v3.55 Checking for HTML-Scrubber (any) ok: found v0.09 Checking for Encode (v2.21) ok: found v2.51 Checking for Encode-Detect (any) ok: found v1.01 Checking for Email-Reply (any) ok: found v1.202 Checking for HTML-FormatText-WithLinks (v0.13) ok: found v0.14 Checking for TheSchwartz (any) ok: found v1.10 Subroutine File::Slurp::O_RDWR redefined at lib/File/Slurp.pm line 11 Subroutine File::Slurp::O_CREAT redefined at lib/File/Slurp.pm line 11 Subroutine File::Slurp::O_EXCL redefined at lib/File/Slurp.pm line 11 Use of uninitialized value in string eq at lib/File/Flock/Forking.pm line 13, <DATA> line 747. Checking for Daemon-Generic (any) ok: found v0.83 Checking for mod_perl (v1.999022) ok: found v2.000007 Checking for Apache-SizeLimit (v0.96) not found Checking for File-MimeInfo (any) ok: found v0.16 Checking for IO-stringy (any) ok: found v2.110 Checking for mod_headers (any) ok Checking for mod_expires (any) ok Checking for mod_env (any) ok *********************************************************************** * OPTIONAL MODULES * *********************************************************************** * Certain Perl modules are not required by Bugzilla, but by * * installing the latest version you gain access to additional * * features. * * * * The optional modules you do not have installed are listed below, * * with the name of the feature they enable. Below that table are the * * commands to install each module. * *********************************************************************** * MODULE NAME * ENABLES FEATURE(S) * *********************************************************************** * Apache-SizeLimit * mod_perl * *********************************************************************** COMMANDS TO INSTALL OPTIONAL MODULES: Apache-SizeLimit: /usr/bin/perl install-module.pl Apache2::SizeLimit To attempt an automatic install of every required and optional module with one command, do: /usr/bin/perl install-module.pl --all Reading ./localconfig... Checking for DBD-mysql (v4.001) ok: found v4.023 Checking for MySQL (v5.0.15) ok: found v5.0.77 Adding new table bz_schema... Initializing bz_schema... Creating tables... Converting attach_data maximum size to 100G... Setting up choices for standard drop-down fields: priority bug_status rep_platform resolution bug_severity op_sys Creating ./data directory... Creating ./data/attachments directory... Creating ./data/db directory... Creating ./data/extensions directory... Creating ./data/mining directory... Creating ./data/webdot directory... Creating ./graphs directory... Creating ./skins/custom directory... Creating ./data/extensions/additional... Creating ./data/mailer.testfile... Creating ./Bugzilla/.htaccess... Creating ./data/.htaccess... Creating ./data/attachments/.htaccess... Creating ./data/webdot/.htaccess... Creating ./graphs/.htaccess... Creating ./lib/.htaccess... Creating ./template/.htaccess... Creating contrib/.htaccess... Creating t/.htaccess... Creating xt/.htaccess... Precompiling templates...done. Fixing file permissions... Initializing "Dependency Tree Changes" email_setting ... Initializing "Product/Component Changes" email_setting ... Marking closed bug statuses as such... Creating default classification 'Unclassified'... Setting up foreign keys... Setting up the default status workflow... Creating default groups... Setting up user preferences... Looks like we don't have an administrator set up yet. Either this is your first time using Bugzilla, or your administrator's privileges might have accidentally been deleted. Enter the e-mail address of the administrator: [email protected] Enter the real name of the administrator: [email protected] Enter a password for the administrator account: Please retype the password to verify: [email protected] is now set up as an administrator. Creating initial dummy product 'TestProduct'... Now that you have installed Bugzilla, you should visit the 'Parameters' page (linked in the footer of the Administrator account) to ensure it is set up as you wish - this includes setting the 'urlbase' option to the correct URL. checksetup.pl complete.
上面让输入的的用户名和密码,就是下面用的:
http://img1.51cto.com/album/4676810/137250732448.png