Installare Bugzilla su Microsoft Windows

Autore originale: Byron Jones        Traduzione a cura di G.C. Cipriani

 

La versione 2.18 di Bugzilla è stata la prima ad essere completamente compatibile con Windows. La versione stabile corrente è la 2.22 . Questo documento vi guiderà passo passo nell'installazione.

E' importante sapere che alcune cose non funzionerann con Windows (fortunatamente poche). La più importante è l'interfaccia di gestione della posta in ingresso (leggere il file (contrib/README.Mailif).

Bugzilla

I sorgenti di Bugzilla sono disponibili in due formati: CVS o tarball. Il metodo migliore per installare ed upgradare Bugzilla è indubbiamente quello di utilizzare il CVS (soprattutto se lo avete in precedenza customizzato).

Leggete il Release Notes prima di fare qualsiasi cosa..

Installare Bugzilla mediante CVS

Scaricare il client CVSNT da http://www.cvsnt.org/ (2.15 Mega).

Installare il programma. Avrete bisogno di installare il Command line client ed il Password Server (:pserver:) Protocol. Dopo aver completato l'installazione eseguite un log out ed un log in per rendere effettive la modifiche al PATH

Nota: questo documento assume che abbiate installato Bugzilla nella directory C:\Bugzilla.

Aprite la dosshell (command line) e andate nella directory "parente" di Bugzilla. Se avete installato Bugzilla nella directory c:\buzgzilla dovete andare in c:\ 

C:\>set CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot

C:\>cvs login

Logging in to :pserver:anonymous@cvs-mirror.mozilla.org:2401:/cvsroot
CVS password: anonymous

C:\>cvs checkout -d Bugzilla -rBUGZILLA-2_22-STABLE Bugzilla
cvs checkout: cwd=C:\ ,current=C:\
cvs checkout: Updating Bugzilla
U Bugzilla/.cvsignore
U Bugzilla/1x1.gif
U Bugzilla/Bugzilla.pm
U Bugzilla/CGI.pl
...
U Bugzilla/template/en/default/whine/multipart-mime.txt.tmpl
U Bugzilla/template/en/default/whine/schedule.html.tmpl
cvs checkout: Updating Bugzilla/template/en/extension
U Bugzilla/template/en/extension/filterexceptions.pl
cvs checkout: Updating Bugzilla/template/en/extension/hook

C:\>
 

Upgrade di Bugzilla mediante CVS

Se avete installato una versione precedente di Bugzilla l'update alla 2.22 è semplice. Mediante CVS verranno applicate direttamente le modifiche ai sorgenti. Se CVS non è in grado di farlo indicherà una "C" nella prima colonna del suo reporto (in questo caso dovrete risolvere il conflitto manualmente). Posizionatevi nella cartella c:\bugzilla ed eseguite questi comandi:

C:\Bugzilla>cvs update -R -d -rBUGZILLA-2_22-STABLE
cvs update: Updating .
P editusers.cgi
cvs update: Updating Bugzilla
P Bugzilla/Bug.pm
P Bugzilla/BugMail.pm
P Bugzilla/Chart.pm
P Bugzilla/Flag.pm
P Bugzilla/User.pm
P Bugzilla/Util.pm
cvs update: Updating Bugzilla/Auth
U Bugzilla/Auth/CGI.pm
cvs update: Updating Bugzilla/Template
cvs update: Updating Bugzilla/Template/Plugin
...
cvs update: Updating template/en/default/search
cvs update: Updating template/en/default/whine
cvs update: Updating template/en/extension

C:\Bugzilla>

Installare Bugzilla dal TarBall (file .tar)

Scaricare Bugzilla 2.22 from: 
http://bugzilla.org/download.html (1.9 Mega).

Utilizzate un programma di gestione archivi compressi "decente" per scomprimere il file (rar o zip vanno benissimo)..

Decompattata il file dove preferite. La soluzione migliore è comunque creare una cartella C:\Bugzilla.

Upgrade dal TarBall

Se installi Bugzilla dal tarball per l'upgrade segui le istruzioni indicate nella sezione.CVS.

MySQL

Scaricare MySQL 4.1.x e MySQLcc

Scarica il file MySQL "Windows Essentials" da
http://dev.mysql.com/downloads/mysql/4.1.html (14.1 Mega).

MySQL 5.x è in fase di sviluppo e non è raccomandato. Non utilizzare nemmeno la versione 3.x.

Installazione

Utilizzare il programma di installazione di MySQL . Utilizzare l'installazione "Typical MySQL install" (quella di default). La directory di default di installazione (quella che considereremo noi) sarà C:\mysql.

Creare il database dei Bugs e l'utente per Bugzilla

Useremo la command line di  mysql per creare il database di Bugzilla ed un account MySql per Bugzilla.

La password di esempio 'sockmonkey' sarà quella per l'account di Bugzilla. Potete utilizzare quella che preferite.:

C:\mysql\bin>mysql --user=root -p mysql
Enter password: ********
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 15 to server version: 4.0.20a-debug

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> create database bugs;

Query OK, 1 row affected (0.11 sec)

mysql> grant all privileges on bugs.* to 'bugs'@'localhost' identified by 'sockmonkey';
Query OK, 0 rows affected (0.03 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> quit

Bye

C:\mysql\bin> 

Se state utilizzando MySQL 4.1, potrebbe comparirvi la segnalazione di errore Client does not support authentication protocol requested by server. Per risolvere questo errore dovete resettare la password dell'utente che avete appena creato.

C:\mysql\bin>mysql --user=root -p mysql
Enter password: ********
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 15 to server version: 4.1.11-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> set password for 'bugs'@'localhost' = OLD_PASSWORD('sockmonkey');
Query OK, 0 rows affected (0.00 sec)

mysql> quit

Bye

C:\mysql\bin>

ActiveState Perl

Scaricare ActiveState Perl 5.8.1 o superiori

Scaricare ActiveState Perl 5.8.1 o superiori (versione MSI) da:
http://activestate.com/Products/Download/Download.plex?id=ActivePerl (12.5 Mega).

Notare che Bugzilla richiede ActiveState Perl 5.8.1 e necessita di CGI.pm versione 2.93 o superiori. La versione 5.8.0 di Perl contiene CGI.pm versione 2.81 mentre la versione 5.8.1 contiene CGI.pm versione 3.00.

C'è un file: a bug in Time::Local 1.10, contenuto in ActiveState Perl 5.8.6, che causa dei warning all'inizio di ogni buglist. Meglio quindi evitare la versione 5.8.6 (limitarsi alla versione 5.8.4).

Installazione

ActiveState Perl usa il Windows Installer. La cartella di default sarà C:\Perl.

Nota: non utilizzare spazi nel nome delle cartelle (es "C:\Program Files") altrimenti l'installer si bloccherà.

Dopo l'installazione uscire e rientrare dall'account per eseguire i cambiamenti sul PATH..

Upgrade di installazioni precedenti

Se hai già installato il PERL controlla semplicemente di avere i moduli aggiornati. Al limite aggiorna anche PERL (ma non è strettamente necessario, se la versione è compatibile con Bugzilla).

Per upgradare ActiveState Perl, seguire le indicazioni di questo file:
http://aspn.activestate.com/ASPN/docs/ActivePerl/install.html

Per upgradare i moduli semplicemente lancia la procedura ppm upgrade

Creare una directory Temp 

In Windows, Perl ha bisogno di una directory di lavoro per i files temporanei (CGI.pm, File::Spec). E' sufficiente che tale directory sia nel path di windows..

Per evitare problemi, controllate (o create) una C:\Temp directory ed assicuratevi che sia possibile accedere in r/w.

Installare i moduli

Bugzilla richiede l'installazione di diversi moduli PERL, la maggior parte dei quali sono disponibili alla locazione http://landfill.bugzilla.org/ppm/.

Se usi un firewall potresti avere problemi nell'uso di PPM. Leggi le faq contenute nell'ActivePerl FAQ.

Il modulo Net::LDAP + l'unico richiesto se vuoi utilizzare Active Directory for authentication.

C:\>ppm

PPM - Programmer's Package Manager version 3.1.
Copyright (c) 2001 ActiveState Corp. All Rights Reserved.
ActiveState is a devision of Sophos.

Entering interactive shell. Using Term::ReadLine::Stub as readline library.

Type 'help' to get started.

ppm> rep add Bugzilla http://landfill.bugzilla.org/ppm
Repositories:
[1] ActiveState PPM2 Repository
[2] ActiveState Package Repository
[3] Bugzilla
ppm> install AppConfig
====================
Install 'AppConfig' version 1.52 in ActivePerl 5.8.7.813.
====================
Downloaded 50508 bytes.
...
Successfully installed AppConfig version 1.52 in ActivePerl 5.8.7.813.
ppm> install TimeDate
====================
Install 'TimeDate' version 1.16 in ActivePerl 5.8.7.813.
====================
Downloaded 19235 bytes.
...
Successfully installed TimeDate version 1.16 in ActivePerl 5.8.7.813.
ppm> install DBI
====================
Install 'DBI' version 1.43 in ActivePerl 5.8.7.813.
====================
Downloaded 508164 bytes.
...
Successfully installed DBI version 1.43 in ActivePerl 5.8.7.813.
ppm> install DBD-mysql

====================
Install 'DBD-mysql' version 2.9002 in ActivePerl 5.8.7.813.
====================
Downloaded 178803 bytes.
...
Successfully installed DBD-mysql version 2.9002 in ActivePerl 5.8.7.813.
ppm> install Template-Toolkit
====================
Install 'Template-Toolkit' version 2.13 in ActivePerl 5.8.7.813.
====================
Downloaded 530770 bytes.
...
Successfully installed Template-Toolkit version 2.13 in ActivePerl 5.8.7.813.
ppm> install MailTools
====================
Install 'MailTools' version 1.67 in ActivePerl 5.8.7.813.
====================
Downloaded 46881 bytes.
...
Successfully installed MailTools version 1.67 in ActivePerl 5.8.7.813.
ppm> install GD
====================
Install 'GD' version 2.07 in ActivePerl 5.8.7.813.
====================
Downloaded 363039 bytes.
...
Successfully installed GD version 2.07 in ActivePerl 5.8.7.813.
ppm> install Chart
====================
Install 'Chart' version 2.3 in ActivePerl 5.8.7.813.
====================
Downloaded 58641 bytes.
...
Successfully installed Chart version 2.3 in ActivePerl 5.8.7.813.
ppm> install GDGraph
====================
Install 'GDTextUtil' version 0.86 in ActivePerl 5.8.7.813.
====================
Downloaded 19178 bytes.
...
Successfully installed GDTextUtil version 0.86 in ActivePerl 5.8.7.813.
====================
Install 'GDGraph' version 1.43 in ActivePerl 5.8.7.813.
====================
Downloaded 71764 bytes.
...
Successfully installed GDGraph version 1.43 in ActivePerl 5.8.7.813.
ppm> install PatchReader

====================
Install 'PatchReader' version 0.9.4 in ActivePerl 5.8.7.813.
====================
Downloaded 9558 bytes.
...
Successfully installed PatchReader version 0.9.4 in ActivePerl 5.8.7.813.
ppm> install Net::LDAP

====================
Install 'Convert-ASN1' version 0.19 in ActivePerl 5.8.7.813.
====================
Downloaded 26326 bytes.
...
Successfully installed Convert-ASN1 version 0.19 in ActivePerl 5.8.7.813.
====================
Install 'perl-ldap' version 0.33 in ActivePerl 5.8.7.813.
====================
Downloaded 188548 bytes.
...
Successfully installed perl-ldap version 0.33 in ActivePerl 5.8.7.813.
====================
Install 'Net-LDAP-Express' version 0.11 in ActivePerl 5.8.7.813.
====================
Downloaded 7693 bytes.
...
Successfully installed Net-LDAP-Express version 0.11 in ActivePerl 5.8.7.813.
ppm>

 

PatchReader 0.9.4

Assicuratevi che la versione di PatchReader installata sia la 0.9.4 o superiori. Se è più vecchia disinstallala e reinstalla quella nuova dall'indirizzo http://landfill.bugzilla.org/ppm/PatchReader.ppd.

ppm> uninstall PatchReader
====================
Remove 'PatchReader' version 0.9.2 from ActivePerl 5.8.7.813.
====================
...
Successfully removed PatchReader version 0.9.2 from ActivePerl 5.8.7.813.
ppm> install http://landfill.bugzilla.org/ppm/PatchReader.ppd
====================
Install 'PatchReader' version 0.9.4 in ActivePerl 5.8.7.813.
====================
Downloaded 9558 bytes.
...
Successfully installed PatchReader version 0.9.4 in ActivePerl 5.8.7.813.
ppm>
 

Apache

E' preferibile lanciare Bugzilla a mezzo di un web server Apache. Se vuoi usare IIS segui le configuration instructions nella documentazione di Bugzilla..

Scarica Apache 2.x

Preleva Apache HTTP Server versione 2.x o superiori da:
http://httpd.apache.org/download.cgi (5.8 Mega).

Installazione

L'installazione a mezzo windows installer è estremamente semplice. Segui il prompt, ed esegui l'installazione multiutente (All Users). Apache si autoinstalla in una Apache2 directory all'interno del path specificato in fase di installazione. Il path di default sarà quindi C:\Programmi\Apache Group e quindi Apache sarà installato in  C:\Programmi\Apache Group\Apache2..

Nel nostro documento assumeremo che di default Apache sia installato in C:\Programmi\Apache Group\Apache2.

Se già sta girando IIS dovrai configurare Apache affinché giri su un port differente dall' 80, altrimenti ci saranno seri problemi. Scegli comunque l'installazione All Users e cambieremo il port più avanti.

Di default Apache sarà installato con l'account System. Per ragioni di sicurezza è meglio riconfigurare il servizio affinché giri come Apache utente. Creare un utente che non sia membro di gruppi e riconfigurare Apache affinché giri con quell'account..

Garantire l'accesso in scrittura per l'account di Apache

Di default Apache gira con l'account System. Questo account richiede la possibilità di scrivere/modificare dati nelle directoy seguenti e nelle relative sottodirectories. 

Notare chet C:\Bugzilla\data viene creato la prima volta che lanci checksetup.pl.

Configurare il Port e la DocumentRoot

Edita il file C:\Programmi\Apache Group\Apache2\conf\httpd.conf con il tuo text editor preferito.

Per cambiare i ports di Apache (listens on, o binds to), edita le opzioni Listen.

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to 
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80

Cambia il  DocumentRoot per settarlo in C:\Bugzilla. Nota che ci sono due  locazioni in httpd.conf che vanno updatate. Dovrai usare / invece di \ come separatore del path.

#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "C:/Bugzilla"

#
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories). 
#
# First, we configure the "default" to be a very restrictive set of 
# features.  
#
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

#
# Note that from this point forward you must specifically allow
# particular features to be enabled - so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Bugzilla">
 

Configura CGI

Per abilitare il supporto CGI in Apache devi abilitare il riconoscimento dei CGI togliendo il commento alla linea AddHandler cgi-script .cgi .

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
AddHandler cgi-script .cgi

E consentire gli script CGI nella directory di Bugzilla inserendo l'opzione ExecCGI. Avremo anche modificare i privilegi di accesso ai documenti sensibili modificando l'opzione AllowOverride None in AllowOverride All.

Apache ha bisogno di sapere come interpretare gli script CGI a mezzo della direttiva ScriptInterpreterSource.

#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "C:/Bugzilla">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks ExecCGI

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
    AllowOverride All

#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

#
# Tell Apache to use Perl to execute .cgi
#
    ScriptInterpreterSource Registry-Strict

</Directory>

You also should add index.cgi to the DirectoryIndex list.

#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents.  The MultiViews Option can be used for the 
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.html.var index.cgi

 

Affinché lo ScriptInterpreterSource Registry-Strict funzioni, dovrai inserire una modifica nel registro affinché Apache utilizzi PERL per eseguire gli script CGI..

Creare una key HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command con il path completo di perl.exe con il parametro -T . Per esempio C:\Perl\bin\perl.exe -T

 

Disabilitare i logs

Per evitare una gestione dei log inutile può essere utile commentare la direttiva customLog.

#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here.  Contrariwise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
#CustomLog logs/access.log common
 

Riavviare Apache

Siamo giunti alla fine. Riavviare Apache per acquisire i cambiamenti.

C:\>net stop apache2
The Apache2 service is stopping..
The Apache2 service was stopped successfully.

C:\>net start apache2
The Apache2 service is starting.
The Apache2 service was started successfully.

C:\>
 

Extra

Bugzilla (v2.20) ha un supporto interno per i servers SMTP, ma non supporta l'autenticazione dei servers SMTP o la gestione degli errori..

Se ti occorre l'autenticazione SMTP ), puoi usare Glob's sendmail wrapper. Scaricalo ed installalo come indicato nel suo sito.

Se abiliti i logs in Sendmail, dovrai assicurarti che Apache abbia il permesso in scrittura nella C:\usr\lib.

 

Configurare Bugzilla

checksetup.pl

Lancia checksetup.pl. Controllerà i moduli PERL e creerà un localconfig.

C:\>cd bugzilla

C:\bugzilla>perl checksetup.pl

Checking perl modules ...
Checking for       AppConfig (v1.52)   ok: found v1.55
Checking for             CGI (v2.93)   ok: found v3.10
Checking for    Data::Dumper (any)     ok: found v2.121_04
Checking for    Date::Format (v2.21)   ok: found v2.22
Checking for             DBI (v1.38)   ok: found v1.48
Checking for      File::Spec (v0.84)   ok: found v3.05
Checking for      File::Temp (any)     ok: found v0.16
Checking for        Template (v2.08)   ok: found v2.13
Checking for      Text::Wrap (v2001.0131) ok: found v2001.09293
Checking for    Mail::Mailer (v1.65)   ok: found v1.67
Checking for        Storable (any)     ok: found v2.13

The following Perl modules are optional:
Checking for              GD (v1.20)   ok: found v2.16
Checking for     Chart::Base (v1.0)    ok: found v2.3
Checking for     XML::Parser (any)     ok: found v2.34
Checking for       GD::Graph (any)     ok: found v1.43
Checking for GD::Text::Align (any)     ok: found v1.18
Checking for     PatchReader (v0.9.4)  ok: found v0.9.5

Most ActivePerl modules are available at Apache's ppm repository.
A list of mirrors is available at
    http://www.apache.org/dyn/closer.cgi/perl/win32-bin/ppms/
You can add the repository with the following command:
    ppm rep add apache http://www.apache.org/dist/perl/win32-bin/ppms/

Checking user setup ...

This version of Bugzilla contains some variables that you may want
to change and adapt to your local settings. Please edit the file
'./localconfig' and rerun checksetup.pl

The following variables are new to localconfig since you last ran
checksetup.pl:   index_html cvsbin interdiffbin diffpath create_htaccess
webservergroup db_driver db_host db_pass db_sock db_check

C:\bugzilla>
 

Edita il localconfig

Apri il C:\Bugzilla\localconfig con il tuo text editor preferito.

Dovrai dire a Bugzilla come accedere al tuo database. Se usi bugs/bugs, dovrai settare solo la db_pass.

#
# How to access the SQL database:
#
$db_host = "localhost";         # where is the database?
$db_port = 3306;                # which port to use
$db_name = "bugs";              # name of the MySQL database
$db_user = "bugs";              # user to attach to the MySQL database

#
# Enter your database password here. It's normally advisable to specify
# a password for your bugzilla database user.
# If you use apostrophe (') or a backslash (\) in your password, you'll
# need to escape it by preceding it with a \ character. (\') or (\\)
#
$db_pass = 'sockmonkey';
 

checksetup.pl

Lancia ancora checksetup.pl . Stavolta inizializzerà le tabelle del database e configurerà Bugzilla.

C:\bugzilla>perl checksetup.pl

Checking perl modules ...
Checking for       AppConfig (v1.52)   ok: found v1.55
Checking for             CGI (v2.93)   ok: found v3.10
Checking for    Data::Dumper (any)     ok: found v2.121_04
Checking for    Date::Format (v2.21)   ok: found v2.22
Checking for             DBI (v1.38)   ok: found v1.48
Checking for      File::Spec (v0.84)   ok: found v3.05
Checking for      File::Temp (any)     ok: found v0.16
Checking for        Template (v2.08)   ok: found v2.13
Checking for      Text::Wrap (v2001.0131) ok: found v2001.09293
Checking for    Mail::Mailer (v1.65)   ok: found v1.67
Checking for        Storable (any)     ok: found v2.13

The following Perl modules are optional:
Checking for              GD (v1.20)   ok: found v2.16
Checking for     Chart::Base (v1.0)    ok: found v2.3
Checking for     XML::Parser (any)     ok: found v2.34
Checking for       GD::Graph (any)     ok: found v1.43
Checking for GD::Text::Align (any)     ok: found v1.18
Checking for     PatchReader (v0.9.4)  ok: found v0.9.5

Most ActivePerl modules are available at Apache's ppm repository.
A list of mirrors is available at
    http://www.apache.org/dyn/closer.cgi/perl/win32-bin/ppms/
You can add the repository with the following command:
    ppm rep add apache http://www.apache.org/dist/perl/win32-bin/ppms/

Checking user setup ...
Creating data directory (./data) ...
Creating graphs directory...
Creating .htaccess...
Creating Bugzilla/.htaccess...
Creating ./data/.htaccess...
Creating ./template/.htaccess...
Creating ./data/webdot/.htaccess...
Precompiling templates ...
Checking for    MySQL Server (v3.23.41) ok: found v4.0.20a-debug

Creating table user_group_map ...
Creating table series_data ...
Creating table longdescs ...
Creating table dependencies ...
Creating table components ...
Creating table keywords ...
Creating table cc ...
Creating table duplicates ...
Creating table groups ...
Creating table flagtypes ...
Creating table profiles ...
Creating table products ...
Creating table bugs_activity ...
Creating table series_categories ...
Creating table keyworddefs ...
Creating table fielddefs ...
Creating table group_control_map ...
Creating table profiles_activity ...
Creating table group_group_map ...
Creating table user_series_map ...
Creating table bugs ...
Creating table series ...
Creating table versions ...
Creating table flagexclusions ...
Creating table logincookies ...
Creating table watch ...
Creating table bug_group_map ...
Creating table votes ...
Creating table attachments ...
Creating table flags ...
Creating table milestones ...
Creating table tokens ...
Creating table flaginclusions ...
Creating table quips ...
Creating table namedqueries ...
Creating initial dummy product 'TestProduct' ...
Populating duplicates table...
Creating duplicates directory...
Migrating old chart data into database ...
Adding group tweakparams ...
Adding group editusers ...
Adding group creategroups ...
Adding group editcomponents ...
Adding group editkeywords ...
Adding group admin ...
Adding group editbugs ...
Adding group canconfirm ...

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
accidently been deleted.
Enter the e-mail address of the administrator: byron@example.com
You entered 'byron@example.com'.  Is this correct? [Y/n] y
Enter the real name of the administrator: Byron Jones

Enter a password for the administrator account: beef

Please retype the password to verify: beef

'byron@example.com' is now set up as an administrator account.

C:\bugzilla>
 

Parametri

Ora puoi collegarti a Bugzilla utilizzando l'account appena creato. Punta il tuo browser su http://localhost/, scegli Log in to an existing account, ed esegui il login.

In fondo alla pagina scegli Parameters.

Metti la tua password di email nell'opzione maintainer.

maintainer:
The email address of the person who maintains this installation of Bugzilla.
byron@example.com

Metti l'URL di Bugzilla nel campo urlbase . Questo URL sarà utilizzato nelle email..

urlbase:
The URL that is the common initial leading part of all Bugzilla URLs.
http://bugzilla.example.com/

Scarica ed installa WebDot da http://www.graphviz.org/Download_windows.php. Metti il path completo di dot.exe in webdotbase.

webdotbase:
It is possible to show graphs of dependent bugs. You may set this parameter to any of the following:

  * A complete file path to 'dot' (part of GraphViz) will generate the graphs locally.
  * A URL prefix pointing to an installation of the webdot package will generate the graphs remotely.
  * A blank value will disable dependency graphing.

The default value is a publically-accessible webdot server. If you change this value, make certain that the webdot server can read files from your webdot directory. On Apache you do this by editing the .htaccess file, for other systems the needed measures may vary. You can run checksetup.pl to recreate the .htaccess file if it has been lost.
C:/Program Files/ATT/Graphviz/bin/dot.exe

Schedulazione Tasks

collectstats.pl

Configurata un task schedulato per fare girare collectstats.pl di notte.

Passo-passo per Windows XP:

  1. Pannello di controllo --> Operazioni pianificate--> Aggiungi operazione pianificata
  2. Avanti
  3. Sfoglia
  4. Cerca perl.exe (se non hai cambiato path è in C:\Perl\bin\perl.exe)
  5. Dagli un nome, per esempio "Bugzilla CollectStats"
  6. Configurara il processo affinchè venga eseguito ogni giorno all'ora da te preferita
  7. Se Apache gira come user e non come SYSTEM, inserisci qui l'utente. Altrimenti dovrai creare un account che abbia i privilegi di accesso/scrittura nella directory di Bugzilla.
  8. Seleziona "proprietà".
  9. Inserisci "-T" ed il nome dello script nel path di perl. Ad esempio C:\Perl\bin\perl.exe -T C:\Bugzilla\collectstats.pl
  10. Cambia la directory di partenza ("da") indicando la directory di Bugzulla.

whineatnews.pl

Aggiungi una operazione pianificata per whineatnews.pl così come hai fatto per collectstats.pl

Backup di Bugzilla

Vuoi backuppare l'intera directory di Bugzilla ? E' piccola e dovrai semplicemente realizzare una operazione custom per il backup di windows.

La cosa più importante da backuppare è il database. MySQl ha già delle opzioni che consentono di estrarre i dati e salvarli..

Schedula mysqldump per creare il dump e inserisci il file risultante nel file di backup. Troverai la documentazione su mysqldump all'indirizzo http://dev.mysql.com/doc/mysql/en/mysqldump.html.

Congratulations, the Bugzilla installation process is complete!