Bugzilla : installation et configuration

Fermé
LouisonSnouz Messages postés 1 Date d'inscription vendredi 25 janvier 2008 Statut Membre Dernière intervention 25 janvier 2008 - 25 janv. 2008 à 16:54
 frague - 28 août 2009 à 10:41
Bonjour,

Je viens de finir l'installation de Bugzilla 3.0.3 sur Perl 5.8.8 sur un Windows 2003 Server.
Je vous résume la liste des utilitaures installés et configurés :

- Bugzilla 3.0.3 en utilisant CVSNT-2.5.03.2382.msi (j'ai décoché l'option serveur)
- MySQLl-essential-5.0.45
- ActivePerl-5.8.8.822 (et téléchargeant ses différents modules)
- PatchReader 0.9.5
- Apache 2.2.8 que j'ai configuré, mais sans créer un nouveau compte qui lui soit rattaché. Vous comprenez donc qu'il tourne comme système.
- suivi la suite de la procedure d'installation et configuration Bugzilla, ...

Mais seulement, lorsque j'ai executé la commande checksetup.pl (sur MSDOS), bugzilla demandait la DLL Perl56.dll du répertoire \Perl\bin. Pourtant, cette version de perl utilise la version Perl58.dll
J'ai téléchargé cette ancienne dll (Perl56) et ajouté dans le dit répertoire => Perl56.dll et Perl58.dll ds le mêeme répertoire)

Après une nouvelle execution de la commande checksetup.pl, tout semblait marcher :
cheking for perl modules...
cheking for CGI (v2.93) ok: found v3.29
ainsi de suite...

Je suis allé dans la barre d'adresse, saisi le chemin serveur local ( http://localhost ). Au lieu d'afficher la page de connexion à Bugzilla, il y a un fichier texte à la place avec ce qui suit :

#!/usr/bin/perl -wT
# -*- Mode: perl; indent-tabs-mode: nil -*-
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at https://www.mozilla.org/en-US/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is the Bugzilla Bug Tracking System.
#
# The Initial Developer of the Original Code is Netscape Communications
# Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s): Jacob Steenhagen <jake@bugzilla.org>
# Frédéric Buclin <LpSolit@gmail.com>

###########################################
# Script Initialization
###########################################

# Make it harder for us to do dangerous things in Perl.
use strict;

# Include the Bugzilla CGI and general utility library.
use lib ".";

use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Update;

# Check whether or not the user is logged in
my $user = Bugzilla->login(LOGIN_OPTIONAL);

###########################################
# Main Body Execution
###########################################

my $cgi = Bugzilla->cgi;
# Force to use HTTPS unless Bugzilla->params->{'ssl'} equals 'never'.
# This is required because the user may want to log in from here.
if (Bugzilla->params->{'sslbase'} ne '' and Bugzilla->params->{'ssl'} ne 'never') {
$cgi->require_https(Bugzilla->params->{'sslbase'});
}

my $template = Bugzilla->template;
my $vars = {};

# Return the appropriate HTTP response headers.
print $cgi->header();

if ($user->in_group('admin')) {
# If 'urlbase' is not set, display the Welcome page.
unless (Bugzilla->params->{'urlbase'}) {
$template->process('welcome-admin.html.tmpl')
|| ThrowTemplateError($template->error());
exit;
}
# Inform the administrator about new releases, if any.
$vars->{'release'} = Bugzilla::Update::get_notifications();
}

# Generate and return the UI (HTML page) from the appropriate template.
$template->process("index.html.tmpl", $vars)
|| ThrowTemplateError($template->error());

Voilà, c'est là que je m'arrête.
A voir également:
  • Bugzilla : installation et configuration
  • Bugzilla - Télécharger - Édition & Programmation

2 réponses

Je suis sous Ubuntu, et le même texte apparait quand je saisis http://localhost/ !
Ca a tout l'air d'être le contenu du fichier index.cgi ... qui normalement devrait s'exécuter!
0
Bonjour,

J'ai eu le même problème dans une installation sur ubuntu, le problème venait du fichier de configuration apache, à déposer sous ubuntu dans /etc/apache2/sites-available et à linker dans /etc/apache2/sites-enabled

Mon fichier de configuration :

$ cat /etc/apache2/sites-available/bugzilla2.conf
<Directory /var/www/bugzilla2>
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride Limit
</Directory>

pour linker le fichier de configuration vers :

sudo ls -s /etc/apache2/sites-available/bugzilla2.conf /etc/apache2/sites-enabled/010-bugzilla

Et voilà !

frague
0