Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 21/02/2013, à 11:44

lorchidoclaste

Pb installation / configuration bugzilla - ubuntu 12.04 LTS

Bonjour,

J'ai installé Bugzilla-4.2.4 sur Ubuntu 12.04 LTS et ai suivi les instructions autant que possible.
Toutefois il doit y avoir un problème de configuration parce que quand j'essaie d'accéder à l'application depuis le navigateur, j'obtiens une page brute (non interprétée) telle que ceci:

#!/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 http://www.mozilla.org/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 qw(. 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);
my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
my $vars = {};

# And log out the user if requested. We do this first so that nothing
# else accidentally relies on the current login.
if ($cgi->param('logout')) {
    Bugzilla->logout();
    $user = Bugzilla->user;
    $vars->{'message'} = "logged_out";
    # Make sure that templates or other code doesn't get confused about this.
    $cgi->delete('logout');
}

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

# 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());

Quelqu'un pourrait-il m'aider à résoudre ce problème?

Merci d'avance.

Hors ligne

#2 Le 21/02/2013, à 15:19

lorchidoclaste

Re : Pb installation / configuration bugzilla - ubuntu 12.04 LTS

Après plusieurs recherches, j'ai vérifié que le mod_perl est bien installé, ce qui est le cas, j'ai également vérifié ma configuration et j'ai bien ça dans /etc/apache2/sites-available et /etc/apache2/sites-enabled

  ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        SetHandler perl-script
              PerlResponseHandler ModPerl::Registry
              PerlOptions +ParseHeaders
              Options +ExecCGI
              Order allow,deny
              Allow from all         
    </Directory>

Pourtant, le script ne semble toujours pas être interprété correctement.

J'ai aussi testé un petit script tout simple en perl directement sur le serveur ubuntu et ça fonctionne bien.

Une idée??? neutral

Hors ligne

#3 Le 22/02/2013, à 11:16

lorchidoclaste

Re : Pb installation / configuration bugzilla - ubuntu 12.04 LTS

Personne?

J'aurai vraiment besoin d'un coup de main sur ce coup là... hmm

Hors ligne