From 4bbb07e8048ef859cfc29c6b9d221840f2c6aed1 Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Fri, 16 Jan 2004 06:34:12 +0000 Subject: Phase 1 of a big documentation update before 2.17.6. --- docs/html/stepbystep.html | 2292 ++++++++++++++++++++++----------------------- 1 file changed, 1141 insertions(+), 1151 deletions(-) (limited to 'docs/html/stepbystep.html') diff --git a/docs/html/stepbystep.html b/docs/html/stepbystep.html index 48e443702..dfbf1a14b 100644 --- a/docs/html/stepbystep.html +++ b/docs/html/stepbystep.html @@ -4,9 +4,11 @@ >Step-by-step Install
You are strongly recommended to make a backup of your system + before installing Bugzilla and at regular intervals thereafter. +
The listing below is a basic step-by-step list. More information can be found in the sections below. Minimum versions will be included in parenthesis where appropriate. @@ -174,15 +181,6 @@ TYPE="1" >
Install MySQL - (3.23.41) -
Install Perl @@ -192,9 +190,10 @@ HREF="stepbystep.html#install-perl" >
Install Perl ModulesInstall MySQL + (3.23.41)
Setup the MySQL Database @@ -228,9 +235,31 @@ CLASS="section" >
Any machine that doesn't have Perl on it is a sad machine indeed. + Perl can be got in source form from http://www.perl.com. + There are also binary versions available for many platforms, most of which + are linked to from perl.com. + Although Bugzilla runs with perl 5.6, + it's a good idea to be up to the very latest version + if you can when running Bugzilla. As of this writing, that is Perl + version 5.8.
Visit the MySQL homepage at option as mentioned in Section 5.6.2Section 4.5.2 for the added security.
Any machine that doesn't have Perl on it is a sad machine indeed. - Perl can be got in source form from http://www.perl.com. - There are also binary versions available for many platforms, most of which - are linked to from perl.com. - Although Bugzilla runs with perl 5.6, - it's a good idea to be up to the very latest version - if you can when running Bugzilla. As of this writing, that is Perl - version 5.8.
Perl modules can be found using - CPAN on Unix based systems or - PPM on Win32. The root servers - have a real tendency to bog down, so please use mirrors. -
4.1.2.1. Configuring MySQLGood instuctions can be found for using each of these services on - their respective websites. The basics can be found in - Example 4-1 for CPAN and - Section 4.3.1.2 for PPM. -
This first thing you'll want to do is make sure you've given the + "root" user a password as suggested in + Section 4.5.2. For clarity, these instructions will + assume that your MySQL user for Bugzilla will be "bugs_user", + the database will be called "bugs_db" and the password for + the "bugs_user" user is "bugs_password". You + should, of course, substitute the values you intend to use for your site. +Example 4-1. Installing perl modules with CPAN
The easy way: -
bash# perl -MCPAN -e 'install "<modulename>"' - | Most people use "bugs" for both the user and + database name. + |
Or the hard way: -
We strongly recommend Apache as the web server to use. The + Bugzilla Guide installation instructions, in general, assume you are + using Apache. If you have got Bugzilla working using another webserver, + please share your experiences with us by filing a bug in Bugzilla Documentation. |
You should untar the Bugzilla files into a directory that you're + willing to make writable by the default web server user (probably + "nobody"). + You may decide to put the files in the main web space for your + web server or perhaps in + /usr/local + with a symbolic link in the web space that points to the Bugzilla + directory.
Many people complain that Perl modules will not install for - them. Most times, the error messages complain that they are missing a - file in +>If you symlink the bugzilla directory into your Apache's HTML + hierarchy, you may receive + Forbidden + errors unless you add the "@INC". - Virtually every time, this error is due to permissions being set too - restrictively for you to compile Perl modules or not having the - necessary Perl development libraries installed on your system. - Consult your local UNIX systems administrator for help solving these - permissions issues; if you - are"FollowSymLinks" - the local UNIX sysadmin, please consult the newsgroup/mailing list - for further assistance or hire someone to help you out.
Perl Modules (minimum version): -
Bundle::Bugzilla - (Will allow you to skip the rest) -
AppConfigOnce all the files are in a web accessible directory, make that + directory writable by your webserver's user. This is a temporary step + until you run the post-install + checksetup.pl - (1.52) -
CGI - (2.88) -
Data::Dumper - (any) -
Date::Format - (2.21) - |
DBI - (1.32) -
DBD::mysql - (2.1010) -
File::Spec - (0.82) -
File::Temp - (any) -
Template Toolkit - (2.08) -
Text::Wrap - (2001.0131) -
GD - (1.20) for bug charting -
Chart::Base - (0.99c) for bug charting -
XML::Parser - (any) for the XML interface -
GD::Graph - (any) for bug charting -
GD::Text::Align - (any) for bug charting -
MIME::Parser - (any) for the email interface -
PatchReader - (0.9.1) for pretty HTML view of patches -
If you are running at least perl 5.6.1, you can save yourself a lot - of time by using Bundle::Bugzilla. This bundle contains every module - required to get Bugzilla running. It does not include GD and friends, but - these are not required for a base install and can always be added later - if the need arises. -
Example 4-1. Installing perl modules with CPANAssuming your perl was installed with CPAN (most unix installations - are), using Bundle::Bugzilla is really easy. Simply follow along with the - commands below. -
Or the hard way: +
Dependency for Template Toolkit. We probably don't need to - specifically check for it anymore. -
The CGI module parses form elements and cookies and does many - other usefule things. It come as a part of recent perl distributions, but - Bugzilla needs a fairly new version. -
- CPAN Download Page: http://search.cpan.org/dist/CGI.pm/
- PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/CGI.zip
- Documentation: http://www.perldoc.com/perl5.8.0/lib/CGI.html
-
The Data::Dumper module provides data structure persistence for - Perl (similar to Java's serialization). It comes with later - sub-releases of Perl 5.004, but a re-installation just to be sure it's - available won't hurt anything. -
|
Many of the more common date/time/calendar related Perl modules - have been grouped into a bundle similar to the MySQL modules bundle. - This bundle is stored on the CPAN under the name TimeDate. - The component module we're most interested in is the Date::Format - module, but installing all of them is probably a good idea anyway. -
Perl Modules (minimum version): +
- CPAN Download Page: http://search.cpan.org/dist/TimeDate/
- PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/TimeDate.zip
- Documentation: http://search.cpan.org/dist/TimeDate/lib/Date/Format.pm
-
The DBI module is a generic Perl module used the - MySQL-related modules. As long as your Perl installation was done - correctly the DBI module should be a breeze. It's a mixed Perl/C - module, but Perl's MakeMaker system simplifies the C compilation - greatly.
AppConfig + (1.52) +
- CPAN Download Page: http://search.cpan.org/dist/DBI/
- PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/DBI.zip
- Documentation: http://dbi.perl.org/doc/
-
The Perl/MySQL interface requires a few mutually-dependent Perl - modules. These modules are grouped together into the the - Msql-Mysql-modules package.
Data::Dumper + (any) +The MakeMaker process will ask you a few questions about the - desired compilation target and your MySQL installation. For most of the - questions the provided default will be adequate, but when asked if your - desired target is the MySQL or mSQL packages, you should - select the MySQL related ones. Later you will be asked if you wish to - provide backwards compatibility with the older MySQL packages; you - should answer YES to this question. The default is NO.
Date::Format + (2.21) +A host of 'localhost' should be fine and a testing user of 'test' - with a null password should find itself with sufficient access to run - tests on the 'test' database which MySQL created upon installation. -
DBI + (1.32) +
- CPAN Download Page: http://search.cpan.org/dist/DBD-mysql/
- PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/DBD-Mysql.zip
- Documentation: http://search.cpan.org/dist/DBD-mysql/lib/DBD/mysql.pod
-
File::Spec is a perl module that allows file operations, such as - generating full path names, to work cross platform. -
File::Spec + (0.82) +
- CPAN Download Page: http://search.cpan.org/dist/File-Spec/
- PPM Download Page: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/File-Spec.zip
- Documentation: http://www.perldoc.com/perl5.8.0/lib/File/Spec.html
-
Template Toolkit + (2.08) +
Text::Wrap + (2001.0131) +
File::Temp is used to generate a temporary filename that is - guaranteed to be unique. It comes as a standard part of perl -
GD + (1.20) for bug charting +
- CPAN Download Page: http://search.cpan.org/dist/File-Spec/
- PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/File-Spec.zip
- Documentation: http://www.perldoc.com/perl5.8.0/lib/File/Temp.html
-
When you install Template Toolkit, you'll get asked various - questions about features to enable. The defaults are fine, except - that it is recommended you use the high speed XS Stash of the Template - Toolkit, in order to achieve best performance. -
XML::Parser + (any) for the XML interface +
- CPAN Download Page: http://search.cpan.org/dist/Template-Toolkit/
- PPM Download Link: http://openinteract.sourceforge.net/ppmpackages/5.6/Template-Toolkit.tar.gz
- Documentation: http://www.template-toolkit.org/docs.html
-
Text::Wrap is designed to proved intelligent text wrapping. -
GD::Text::Align + (any) for bug charting +
- CPAN Download Page: http://search.cpan.org/dist/Text-Tabs+Wrap/
- Documentation: http://www.perldoc.com/perl5.8.0/lib/Text/Wrap.html
-
PatchReader + (0.9.1) for pretty HTML view of patches +
The GD library was written by Thomas Boutell a long while ago to - programmatically generate images in C. Since then it's become the - defacto standard for programmatic image construction. The Perl bindings - to it found in the GD library are used on millions of web pages to - generate graphs on the fly. That's what Bugzilla will be using it for - so you must install it if you want any of the graphing to work.
The version of the GD perl module you need is very closely tied - to the libgd version installed on your system. - If you have a version 1.x of libgd the 2.x - versions of the GD perl module won't work for you. - |
- CPAN Download Page: http://search.cpan.org/dist/GD/
- PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/GD.zip
- Documentation: http://stein.cshl.org/WWW/software/GD/
-
The Chart module provides Bugzilla with on-the-fly charting - abilities. It can be installed in the usual fashion after it has been - fetched from CPAN. - Note that earlier versions that 0.99c used GIFs, which are no longer - supported by the latest versions of GD.
4.1.5.2. AppConfig (1.52)
- CPAN Download Page: http://search.cpan.org/dist/Chart/
- PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/Chart.zip
-
XML::Parser is used by the importxml.pl - script. You only need it if you are going to be importing bugs (such as - for bug moving). XML::Parser requires that the - expat library is already installed on your machine. +>The CGI module parses form elements and cookies and does many + other usefule things. It come as a part of recent perl distributions, but + Bugzilla needs a fairly new version.
CPAN Download Page: http://search.cpan.org/dist/XML-Parser/http://search.cpan.org/dist/CGI.pm/
+ PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/CGI.zip
Documentation: http://www.perldoc.com/perl5.6.1/lib/XML/Parser.htmlhttp://www.perldoc.com/perl5.8.0/lib/CGI.html
In addition to GD listed above, the reporting interface of Bugzilla - needs to have the GD::Graph module installed. +>The Data::Dumper module provides data structure persistence for + Perl (similar to Java's serialization). It comes with later + sub-releases of Perl 5.004, but a re-installation just to be sure it's + available won't hurt anything.
CPAN Download Page: http://search.cpan.org/dist/GDGraph/http://search.cpan.org/dist/Data-Dumper/
PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/GDGraph.ziphttp://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/Data-Dumper.zip
Documentation: http://search.cpan.org/dist/GDGraph/Graph.pmhttp://www.perldoc.com/perl5.8.0/lib/Data/Dumper.html
GD::Text::Align, as the name implies, is used to draw aligned - strings of text. It is needed by the reporting interface. +>Many of the more common date/time/calendar related Perl modules + have been grouped into a bundle similar to the MySQL modules bundle. + This bundle is stored on the CPAN under the name TimeDate. + The component module we're most interested in is the Date::Format + module, but installing all of them is probably a good idea anyway.
CPAN Download Page: http://search.cpan.org/dist/GDTextUtil/http://search.cpan.org/dist/TimeDate/
- PPM Download Page: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/GDTextUtil.ziphttp://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/TimeDate.zip
Documentation: http://search.cpan.org/dist/GDTextUtil/Text/Align.pmhttp://search.cpan.org/dist/TimeDate/lib/Date/Format.pm
MIME::Parser is only needed if you want to use the e-mail interface - located in the contrib directory. -
The DBI module is a generic Perl module used the + MySQL-related modules. As long as your Perl installation was done + correctly the DBI module should be a breeze. It's a mixed Perl/C + module, but Perl's MakeMaker system simplifies the C compilation + greatly.
CPAN Download Page: http://search.cpan.org/dist/MIME-tools/http://search.cpan.org/dist/DBI/
PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/MIME-tools.ziphttp://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/DBI.zip
Documentation: http://search.cpan.org/dist/MIME-tools/lib/MIME/Parser.pmhttp://dbi.perl.org/doc/
PatchReader is only needed if you want to use Patch Viewer, a - Bugzilla feature to format patches in a pretty HTML fashion. There are a - number of optional parameters you can configure Patch Viewer with as well, - including cvsroot, cvsroot_get, lxr_root, bonsai_url, lxr_url, and - lxr_root. Patch Viewer also optionally will use cvs, diff and interdiff - utilities if they exist on the system (interdiff can be found in the - patchutils package at http://cyberelk.net/tim/patchutils/. - These programs' locations can be configured in localconfig. +>The Perl/MySQL interface requires a few mutually-dependent Perl + modules. These modules are grouped together into the the + Msql-Mysql-modules package.
The MakeMaker process will ask you a few questions about the + desired compilation target and your MySQL installation. For most of the + questions the provided default will be adequate, but when asked if your + desired target is the MySQL or mSQL packages, you should + select the MySQL related ones. Later you will be asked if you wish to + provide backwards compatibility with the older MySQL packages; you + should answer YES to this question. The default is NO.
A host of 'localhost' should be fine and a testing user of 'test' + with a null password should find itself with sufficient access to run + tests on the 'test' database which MySQL created upon installation.
CPAN Download Page: http://search.cpan.org/author/JKEISER/PatchReader/http://search.cpan.org/dist/DBD-mysql/
+ PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/DBD-Mysql.zip
Documentation: http://www.johnkeiser.com/mozilla/Patch_Viewer.htmlhttp://search.cpan.org/dist/DBD-mysql/lib/DBD/mysql.pod
You have freedom of choice here, pretty much any web server that - is capable of running CGI - scripts will work. Section 4.4 has more information about - configuring web servers to work with Bugzilla. +>File::Spec is a perl module that allows file operations, such as + generating full path names, to work cross platform.
We strongly recommend Apache as the web server to use. The
- Bugzilla Guide installation instructions, in general, assume you are
- using Apache. If you have got Bugzilla working using another webserver,
- please share your experiences with us by filing a bug in |
You should untar the Bugzilla files into a directory that you're - willing to make writable by the default web server user (probably - "nobody"). - You may decide to put the files in the main web space for your - web server or perhaps in - /usr/local - with a symbolic link in the web space that points to the Bugzilla - directory.
File::Temp is used to generate a temporary filename that is + guaranteed to be unique. It comes as a standard part of perl +
+ CPAN Download Page: http://search.cpan.org/dist/File-Spec/
+ PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/File-Spec.zip
+ Documentation: http://www.perldoc.com/perl5.8.0/lib/File/Temp.html
+
| When you install Template Toolkit, you'll get asked various
+ questions about features to enable. The defaults are fine, except
+ that it is recommended you use the high speed XS Stash of the Template
+ Toolkit, in order to achieve best performance.
+ If you symlink the bugzilla directory into your Apache's HTML - hierarchy, you may receive - Forbidden - errors unless you add the - "FollowSymLinks" - directive to the <Directory> entry for the HTML root - in httpd.conf. |
Once all the files are in a web accessible directory, make that - directory writable by your webserver's user. This is a temporary step - until you run the post-install - checksetup.pl - script, which locks down your installation.
| Text::Wrap is designed to proved intelligent text wrapping.
+ The default Bugzilla distribution is not designed to be placed
- in a cgi-bin directory (this
- includes any directory which is configured using the
- ScriptAlias directive of Apache). This will probably
- change as part of
- |
After you've gotten all the software installed and working you're - ready to start preparing the database for its life as the back end to - a high quality bug tracker.
4.1.5.12. GD (1.20) [optional]This first thing you'll want to do is make sure you've given the - "root" user a password as suggested in - Section 5.6.2. For clarity, these instructions will - assume that your MySQL user for Bugzilla will be "bugs_user", - the database will be called "bugs_db" and the password for - the "bugs_user" user is "bugs_password". You - should, of course, substitute the values you intend to use for your site. -
The GD library was written by Thomas Boutell a long while ago to + programmatically generate images in C. Since then it's become the + defacto standard for programmatic image construction. The Perl bindings + to it found in the GD library are used on millions of web pages to + generate graphs on the fly. That's what Bugzilla will be using it for + so you must install it if you want any of the graphing to work.Most people use "bugs" for both the user and - database name. -
Next, we use an SQL GRANT command to create a - "bugs_user" - user, and grant sufficient permissions for checksetup.pl, which we'll - use later, to work its magic. This also restricts the - "bugs_user" - user to operations within a database called - "bugs_db", and only allows the account to connect from - "localhost". - Modify it to reflect your setup if you will be connecting from - another machine or as a different user.
mysql> GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE, - DROP,REFERENCES ON bugs_db.* TO bugs_user@localhost - IDENTIFIED BY 'bugs_password'; -mysql> FLUSH PRIVILEGES; -The Perl GD library requires some other libraries that may or + may not be installed on your system, including + libpng + and + libgd. + The full requirements are listed in the Perl GD library README. + If compiling GD fails, it's probably because you're + missing a required library. |
If you are using MySQL 4, the bugs user also needs to be granted - the LOCK TABLES and - CREATE TEMPORARY TABLES permissions. - The version of the GD perl module you need is very closely tied + to the libgd version installed on your system. + If you have a version 1.x of libgd the 2.x + versions of the GD perl module won't work for you. + |
+ CPAN Download Page: http://search.cpan.org/dist/GD/
+ PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/GD.zip
+ Documentation: http://stein.cshl.org/WWW/software/GD/
+
The Chart module provides Bugzilla with on-the-fly charting + abilities. It can be installed in the usual fashion after it has been + fetched from CPAN. + Note that earlier versions that 0.99c used GIFs, which are no longer + supported by the latest versions of GD.
+ CPAN Download Page: http://search.cpan.org/dist/Chart/
+ PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/Chart.zip
+
XML::Parser is used by the importxml.pl + script. You only need it if you are going to be importing bugs (such as + for bug moving). XML::Parser requires that the + expat library is already installed on your machine. +
+ CPAN Download Page: http://search.cpan.org/dist/XML-Parser/
+ Documentation: http://www.perldoc.com/perl5.6.1/lib/XML/Parser.html
+
In addition to GD listed above, the reporting interface of Bugzilla + needs to have the GD::Graph module installed. +
+ CPAN Download Page: http://search.cpan.org/dist/GDGraph/
+ PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/GDGraph.zip
+ Documentation: http://search.cpan.org/dist/GDGraph/Graph.pm
+
GD::Text::Align, as the name implies, is used to draw aligned + strings of text. It is needed by the reporting interface. +
+ CPAN Download Page: http://search.cpan.org/dist/GDTextUtil/
+ PPM Download Page: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/GDTextUtil.zip
+ Documentation: http://search.cpan.org/dist/GDTextUtil/Text/Align.pm
+
MIME::Parser is only needed if you want to use the e-mail interface + located in the contrib directory. +
+ CPAN Download Page: http://search.cpan.org/dist/MIME-tools/
+ PPM Download Link: http://ppm.activestate.com/PPMPackages/zips/6xx-builds-only/MIME-tools.zip
+ Documentation: http://search.cpan.org/dist/MIME-tools/lib/MIME/Parser.pm
+
PatchReader is only needed if you want to use Patch Viewer, a + Bugzilla feature to format patches in a pretty HTML fashion. There are a + number of optional parameters you can configure Patch Viewer with as well, + including cvsroot, cvsroot_get, lxr_root, bonsai_url, lxr_url, and + lxr_root. Patch Viewer also optionally will use cvs, diff and interdiff + utilities if they exist on the system (interdiff can be found in the + patchutils package at http://cyberelk.net/tim/patchutils/. + These programs' locations can be configured in localconfig. +
+ CPAN Download Page: http://search.cpan.org/author/JKEISER/PatchReader/
+ Documentation: http://www.johnkeiser.com/mozilla/Patch_Viewer.html
+
Next, run the magic checksetup.pl script. (Many thanks to - Holger Schurig - for writing this script!) - This script is designed to make sure your perl modules are the correct +>Next, run the magic checksetup.pl script. + This is designed to make sure your perl modules are the correct version and your MySQL database and other configuration options are consistent with the Bugzilla CGI files. It will make sure Bugzilla files and directories have reasonable @@ -1958,9 +1948,9 @@ CLASS="section" >
You should run through the parameters on the Edit Parameters page (link in the footer) and set them all to appropriate values. @@ -2005,7 +1995,7 @@ WIDTH="33%" ALIGN="right" VALIGN="top" >NextOptional Additional ConfigurationHTTP Server Configuration