Ejemplos java y C/linux

Tutoriales

Enlaces

Licencia

Creative Commons License
Esta obra está bajo una licencia de Creative Commons.
Para reconocer la autoría debes poner el enlace https://old.chuidiang.org

Instalación de Bugzilla en Windows

Autor de original: Byron Jones en Installing Bugzilla on Microsoft Windows.

La versión 2.18 es la primera revisión que se puede ejecutar en windows sin modificaciones. Este documento es una guía paso a paso del proceso de instalación.

Hay algunas cosas que no funcionarán en Windows. La más importante es la forma por defecto de envío de correos (ver contrib/README.Mailif)

Bugzilla

Hay dos formas de conseguir los fuentes de bugzilla: de CVS o de un fichero compimido. La mejor forma es obtenerlos directamente de CVS, lo que permitirá actualizar la versión de bugzilla, incluso aunque se le hayan hecho algunas modificaciones.

Antes de comenzar, lee las notas sobre esta versión.

Instalar Bugzilla desde CVS.

Descargarse algún cliente de CVS, por ejemplo, el de CVSNT de http://www.cvsnt.org/ (2.15 Meg).

Ejecuta la instalación. Sólo es necesario instalar el Command Line Client y el Password Server (:pserver) Protocol. Una vez terminada la instalación, es necesario salir de sesión de windows y volver a entrar para que tengan efectos los cambios en el PATH.

Nota: Este documento presupone que instalas Bugzilla en C:\Bugzilla.

Abre la línea de comandos de MS-DOS y vete al directorio padre del directorio en el que quieres tener Bugzilla. Puesto que vamos a instalarlo en C:\Bugzilla, debes ir al directorio 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_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:\>

Actualizar la versión de Bugzilla desde CVS

Si ya tienes instalada una versión anterior de Bugzilla de CVS o de un fichero comprimido (.gz.tar), la actualización es sencilla. Incluso si has hecho alguna actualización, CVS es capaz de fusionarlas. Si CVS necestia ayuda, muestra una C en la primera columna de la salida del comando. En ese caso, tienes que resolver los conflictos entre ambas versiones manualmente.

C:\Bugzilla>cvs update -R -d -rBugzilla_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>

Instalar Bugzilla desde un fichero comprimido.

Descargate Bugzilla de http://bugzilla.org/download.html (1.2 Meg).

Bugzilla viene en un fichero comprimido con extensión .tar.gz. Cualquier herramienta decente de windows de empaquetado de ficheros debería ser capaz de desempaquetarlo.

Extrae el contenido del fichero en el directorio que quieras. Recuerda que este documento supone que lo vas a extraer en C:\Bugzilla.

Actualizar la versión de Bugzilla con el fichero comprimido.

Si has instalado Bugzilla de un fichero comprimido, la forma más simple de actuaizarlo es siguiendo las instrucciones de actualización desde CVS.

MySQL

Download MySQL

Descarga el instalador de MySQL "Windows Essentials" de http://dev.mysql.com/downloads/mysql/ (15.9 Meg).

Instalación

MySQL tiene un instalador estándar de Windows. Está bien si eliges la instalación típica (opción por defecto). En este documento supondremos que se instala en C:\mysql

Crear una base de datos Bugs y un usuario

Usa la utilidad de línea de comandos de mysql para crear una base de datos y un usuario de MySQL para Bugzilla.

En el siguiente ejemplo, 'sockmonkey' es la password para el usuario de la base de datos 'bugs'.

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>

Si estás usando MySQL 4.1 o superior, te encontrarás con el error Client does not support authentication protocol requested by server. Para solucionarlo, una vez que se ha creado el usuario, hay que modificar la password usando OLD_PASSWORD.

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

Descargar ActiveState Perl 5.8.1 o superior.

Descarga ActiveState Perl 5.8.1 MSI o superior de: http://activestate.com/Products/Download/Download.plex?id=ActivePerl (12.5 Meg).

Date cuenta de que Bugzilla necesita ActiveState Perl 5.8.1 porque necesita la versión 2.93 o superior de CGI.pm. La 5.8.0 viene con CGI.pm 2.81 y la 5.8.1 viene con CGI.pm 3.00.

Hay un error en Time::Local 1.10, distribuido con ActivateState Perl 5.8.6, que hace que se generen "warnings" al principio de cada listado de bugs en bugzilla. Se aconseja evitar la versión 5.8.6. La versión 5.8.4 vale perfectamente y no tiene ese error.

Instalación

ActivateState Perl viene con un instalador estándar de Windows. Instalalo con las opciones por defecto, que instalarán Perl en C:\Perl

Nota: Si instalas Perl en un directorio que contenga espacios en el nombre (por ejemplo, "C:\Archivos de Programa"), el instalador fallará.

Una vez terminada la instalación, hay que salir de sesión de Windows y volver a entrar para que se hagan efectivos los cambios en el PATH.

Actualizar instalaciones previas.

Si ya tenías instalado ActivateState Perl, es buen momento para asegurarse de que tienes la última versión de ActivateState Perl, junto con las últimas versiones de los modulos.

Para actualizar ActivateState Perl, sigue las instrucciones de http://aspn.activestate.com/ASPN/docs/ActivePerl/install.html

Para actualizar los modulos, símplemente hay que ejecutar ppm upgrade

Crear un directorio Temp

En windows, Perl gasta bastante tiempo buscado el directorio en el que escribir ficheros temporales (CGI.pm, File::Spec). Básicamente, tiene una lista de paths en el código que son los que usa, en vez de preguntar a windows cuál es el directorio adecuado.

Para evitar problemas, crea un directorio C:\Temp (tiene que estar en el disco C:) y asegúrate de que SYSTEM tiene permisos de escritura.

Instalar módulos

Bugzilla necesita que se instalen ciertos módulos de perl, que están disponibles en http://landfill.bugzilla.org/ppm/.

Si usas un servidor proxy, tendrás problemas al ejecutar PPM. Este problema se resuelve en las FAQ de ActivePerl.

El módulo Net::LDAP sólo se necesita si quieres usar Active Directory para la autentificación.

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

Asegúrate de que la versión de PatchReader instalada es la 0.9.4 o superior. Si se instala una inferior, desinstalala y vuelvela a instalar de 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

Se recomiendo ejecutar Bugzilla en un servidor web Apache. Si quieres usar IIS con Bugzilla, tienes que seguir las instrucciones de configuración de la documentación de Bugzilla.

Descargar Apache 2.x

Descárgate el servidor HTTP Apache versión 2.x o superior de: http://httpd.apache.org/download.cgi (5.8 Meg).

Instalación

Otro instalador estándar de Windows más. Sigue las instrucciones asegurándote de que lo instalas para todos los usuarios. Ten en cuenta que Apache siempre se instala en un directorio Apache2 debajo del directorio que indiques en la instalación. Por defecto, el directorio para la instalación es C:\Program Files\Apache Group, por lo que se instalará en C:\Program Files\Apache Group\Apache2.

Este documento supondrá que lo has instalado en el directorio por defecto C:\Program Files\Apache Group\Apache2.

Si tienes IIS en marcha, debes configurar apache para que atienda al puerto 80, aunque en ninguna parte de la instalación te preguntarán el puerto que quieres. Elige All Users y haremos el cambio más adelante.

Por defecto Apache se instala y ejecuta en la cuenta SYSTEM. Por motivos de seguridad es mejor modificar el servicio para que se ejecute como un usuario Apache. Crea un usuario que no pertenezca a ningún grupo y cambia la configuración de Apache para que se ejecute con este usuario.

Dar permiso de escritura al usuario Apache.

Por defecto, Apache se ejecutará en la cuenta SYSTEM. Esta cuenta necesita permisos de escritura y modificación a los siguientes directorios y todos sus subdirectoriso. Según tu versión de Windows, este acceso puede estar ya disponible.

Fíjate que C:\Bugzilla\data se crea la primera vez que ejecutas checksetup.pl.

Configurar el puerto y el DocumentRoot.

Edita C:\Program Files\Apache Group\Apache2\conf\httpd.conf con tu editor de textos favorito

Para cambiar el puerto al que atiende Apache, modifica la opción 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 el DocumentRoot para que apunte a C:\Bugzilla. Fíjate que hay dos sitios de httpd.conf que hay que cambiar. Fíjate también que se usa / en vez de \ como separador en los directorios.

#
# 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">

Configurar CGI

Para habilitar CGI en Apache, hay que habilitar el controlador de CGI, descomentando la línea 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

También hay que permitir la existencia de scripts cgi en el directorio de Bugzilla, añadiéndole la opción ExecCGI. Necesitamos además habilitar el fichero .htaccess de Bugzilla para restringir el acceso a ciertos ficheros con informacion delicada. Para ello necesitamos cambiar la opción por defecto AllowOverride None por AllowOverride All en el fichero de configuración de Apache.

Apache necesita admás saber como usar Perl para ejecutar ficheros .cgi. Esto se hace por medio de la directiva 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>

Además necesitamos añadir index.cgi a la lista DirectoryIndex

#
# 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

Para que funcione ScriptInterpreterSource Registry-Strict, se necesita además añadir una entrada en el registro de Windows, de forma que Apache pueda usar Perl para ejecutar los ficheros .cgi

Crea una clave HKEY_CLASSES_ROOT\.cgi\Shell\ExecCGI\Command con el path completo de perl.exe y el parámetro -T, por ejemplo C:\Perl\bin\perl.exe -T.

Ver captura de pantalla de regedit.

Deshabilitar el Logging

Salvo que tengas interés en saber cuántas visitas tiene tu instalación de Bugzilla, es mejor quitar el loggin, comentado la directiva 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

Rearrancar Apache.

Finalmente hay que rearrancar Apacher para que todos los cambios se pongan en marcha.

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:\>

Extras

Puesto que bugzilla se ha desarrollado junto con servidores SMTP, todavía no pemite autentificación SMTP o depurado de errores de SMTP.

Si necesitas autentificación SMPT (incluyendo POP), puedes usar Glob's sendmail wrapper. Descárgatelo e instálalo siguiendo las instrucciones del sitio.

Si habilitas el logging de Sendmail, tienes que asegurarte de que tu usuario de Apache tiene permisos de escritura en C:\usr\lib.

Configurar Bugzilla

checksetup.pl

Ejecuta checksetup.pl. Este comando revisará tus módulos de Perl y creará 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>

Editar localconfig

Edita C:\Bugzilla\localconfig con tu editor de textos favorito para configurar Bugzilla.

Tienes que decirle a Bugzilla cómo acceder a la base de datos. Si usas bugs/bugs, sólo tienes que dar valor a 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

Ejecuta checksetup.pl de nuevo. Ahora se crearán las tablas de base de datos y se inicializa 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>

Parámetros

Ahora deberías poder entrar en Bugzilla usaando la cuenta que checksetup.pl acaba de crear. Pon http://localhost/ en tu navegado, elige "Log in to an existing account" y entra.

En el pie de la página, elige Parameters.

Pon tu dirección de correo como encargado del mantenimiento (maintainer)

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

Pon la URL de Bugzilla en el campo urlbase. Esta URL se usará en los correos, así que no pongas localhost.

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

Descarga he instala WebDot de http://www.graphviz.org/Download_windows.php. Pon el path completo a dot.exe en 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

Tareas programadas

collectstats.pl

Añade una tarea programada que ejecute collectstats.pl por las noches.

Paso a paso en Windows XP:

  1. Panel de control --> Tareas programadas --> Agregar tarea programada.
  2. Siguiente.
  3. Examinar
  4. Buscar perl.exe (Normalmente en C:\Perl\bin\perl.exe)
  5. Dale un nombre, como "Estadísticas Bugzilla"
  6. Ejecutar la tarea diariamente, a la hora que prefieras.
  7. Si ejecutas Apache con un usuario específico, no como SYSTEM, escribe aquí el usuario. Si no, puedes usar un usuario con permisos de escritura en el Directorio de Bugzilla y ponerlo aquí.
  8. Pulsa "Propiedades avanzadas.." y luego "Finalizar".
  9. Añade el nombre del script al final del campo "Run", por ejemplo C:\Perl\bin\perl.exe C:\Bugzilla\collectstats.pl
  10. Cambia "directorio de inicio" al directorio de Bugzilla.

whineatnews.pl

Añade una tarea programada que ejecute whineatnews.pl por las noches.

Los pasos para whineatnews.pl son los mismos que para collectstats.pl

whine.pl

Añade una tarea programada que ejecute whine.pl por las noches.

Los pasos son los mismos que para collectstats.pl, con la salvedad de que whine.pl necesita ejecutarse en el modo de Perl Taint. La línea de comandos tiene que llevar la opción -T: C:\Perl\bin\perl.exe -T C:\Bugzilla\whine.pl

Hacer Backup de Bugzilla.

Deberías haces un backup del directorio completo de Bugzilla. Es pequeño y así tendrías toda tu configuración y personalizaciones propias en un backup.

El componente de Bugzilla más importante que necesita backup es la base de datos. Contiene todos los bugs, usuarios, ficheros adjuntos, todo. Como la mayoría de las bases de datos,los backups de MySQL se generan mediante un volcado de la base de datos y guardando el fichero resultante.

Programa la utilidad mysqldump para crear el volcado y llevar el fichero resultante a tu zona de backup. Puedes encontrar documentación sobre mysqldump en la documentación de MySQL http://dev.mysql.com/doc/mysql/en/mysqldump.html.

Enhorabuena, la instalación de Bugzilla se ha terminado.

 

Estadísticas y comentarios

Numero de visitas desde el 4 Feb 2007:

Aviso Legal