web-dev-qa-db-fra.com

Impossible que bugzilla fonctionne sur Ubuntu Server 14.04.1 LTS

Ubuntu Server 14.04.1 LTS est installé sur mon ordinateur serveur. J'ai installé LAMP pendant le processus d'installation et phpmyadmin après cela, ce qui fonctionne sans problème. Ensuite, j'ai téléchargé bugzilla-4.4.6 et l'ai extrait dans /usr/local/bugzilla-4.4.6. Dans /var/www/html/bugzilla j'ai créé un lien symbolique vers le répertoire extrait:

xxx@conquistador:/var/www/html$ ls -asl
total 20
 4 drwxr-xr-x 2 root root  4096 Dec 28 08:50 .
 4 drwxr-xr-x 3 root root  4096 Dec 28 08:49 ..
 0 lrwxrwxrwx 1 root root    25 Dec 28 08:50 bugzilla -> /usr/local/bugzilla-4.4.6
12 -rw-r--r-- 1 root root 11510 Dec 27 22:40 index.html
xxx@conquistador:/var/www/html$

Le morceau de code suivant a ensuite été ajouté à /etc/Apache2/Apache2.conf:

<Directory /var/www/html/bugzilla>
        AddHandler cgi-script .cgi
        Options +ExecCGI +FollowSymLinks
        DirectoryIndex index.cgi index.html
        AllowOverride Limit FileInfo Indexes Options
        Order allow,deny
        Allow from all
</Directory>

Ensuite, j'ai redémarré le serveur Web Apache:

xxx@conquistador:/var/www/html$ Sudo /etc/init.d/Apache2 restart
 * Restarting web server Apache2
 AH00558: Apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. 
 Set the 'ServerName' directive globally to suppress this message
[ OK ]
xxx@conquistador:/var/www/html$

La page de test Apache fonctionne sans problème, mais si j'essaie d'obtenir la page bugzilla avec http://192.168.0.101/bugzilla, j'obtiens:

Not Found

The requested URL /bugzilla was not found on this server. Apache/2.4.7
(Ubuntu) Server at 192.168.0.101 Port 80

J'ai également créé avec succès utilisateur mysql ET base de données et mis à jour en conséquence localconfig puis exécuté Sudo sudo ./checksetup.pl. Voici la sortie:

xxx@conquistador:/var/www/html/bugzilla$ Sudo ./checksetup.pl
[Sudo] password for xxx: 
Perl: warning: Setting locale failed.
Perl: warning: Please check that your locale settings:
        LANGUAGE = "en_US:en",
        LC_ALL = (unset),
        LC_PAPER = "sl_SI.UTF-8",
        LC_ADDRESS = "sl_SI.UTF-8",
        LC_MONETARY = "sl_SI.UTF-8",
        LC_NUMERIC = "sl_SI.UTF-8",
        LC_TELEPHONE = "sl_SI.UTF-8",
        LC_IDENTIFICATION = "sl_SI.UTF-8",
        LC_MEASUREMENT = "sl_SI.UTF-8",
        LC_TIME = "sl_SI.UTF-8",
        LC_NAME = "sl_SI.UTF-8",
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
Perl: warning: Falling back to the standard locale ("C").
* This is Bugzilla 4.4.6 on Perl 5.18.2
* Running on Linux 3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8 19:35:06 UTC 2014

Checking Perl modules...
Checking for               CGI.pm (v3.51)     ok: found v4.04 
Checking for           Digest-SHA (any)       ok: found v5.84_01 
Checking for             TimeDate (v2.23)     ok: found v2.24 
Checking for             DateTime (v0.28)     ok: found v1.12 
Checking for    DateTime-TimeZone (v0.71)     ok: found v1.83 
Checking for                  DBI (v1.614)    ok: found v1.63 
Checking for     Template-Toolkit (v2.22)     ok: found v2.26 
Checking for           Email-Send (v2.04)     ok: found v2.199 
Checking for           Email-MIME (v1.904)    ok: found v1.928 
Checking for                  URI (v1.37)     ok: found v1.65 
Checking for       List-MoreUtils (v0.32)     ok: found v0.402 
Checking for    Math-Random-ISAAC (v1.0.1)    ok: found v1.004 

Checking available Perl DBD modules...
Checking for           DBD-Oracle (v1.19)     not found 
Checking for            DBD-mysql (v4.001)    ok: found v4.025 
Checking for               DBD-Pg (v2.7.0)    not found 
Checking for           DBD-SQLite (v1.29)     ok: found v1.46 

The following Perl modules are optional:
Checking for                   Gd (v1.20)     ok: found v2.56 
Checking for                Chart (v2.1.0)    not found 
Checking for          Template-Gd (any)       not found 
Checking for           GDTextUtil (any)       not found 
Checking for              GDGraph (any)       not found 
Checking for           MIME-tools (v5.406)    ok: found v5.505 
Checking for          libwww-Perl (any)       ok: found v6.06 
Checking for             XML-Twig (any)       not found 
Checking for          PatchReader (v0.9.6)    ok: found v0.9.6 
Checking for            Perl-ldap (any)       ok: found v0.64 
Checking for          Authen-SASL (any)       ok: found v2.16 
Checking for         Net-SMTP-SSL (v1.01)     ok: found v1.01 
Checking for           RadiusPerl (any)       ok: found v0.24 
Checking for            SOAP-Lite (v0.712)    ok: found v1.12 
Checking for          XMLRPC-Lite (v0.712)    ok: found v0.717 
Checking for             JSON-RPC (any)       ok: found v1.06 
Checking for              JSON-XS (v2.0)      ok: found v3.01 
Use of uninitialized value in join or string at lib/x86_64-linux-gnu-thread-multi/Test/Taint.pm line 329, <DATA> line 751.
Checking for           Test-Taint (any)       ok: found v1.06 
Checking for          HTML-Parser (v3.67)     ok: found v3.71 
Checking for        HTML-Scrubber (any)       ok: found v0.11 
Checking for               Encode (v2.21)     ok: found v2.49 
Checking for        Encode-Detect (any)       ok: found v1.01 
Checking for          Email-Reply (any)       ok: found v1.203 
Checking for HTML-FormatText-WithLinks (v0.13)     ok: found v0.14 
Checking for          TheSchwartz (v1.07)     ok: found v1.11 
Checking for       Daemon-Generic (any)       ok: found v0.84 
Checking for           File-Slurp (v9999.13)  ok: found v9999.19 
Checking for             mod_Perl (v1.999022) ok: found v2.000008 
Checking for     Apache-SizeLimit (v0.96)     not found 
Checking for        File-MimeInfo (any)       ok: found v0.26 
Checking for           IO-stringy (any)       ok: found v2.110 
Checking for              mod_env (any)       ok 
Checking for          mod_expires (any)       not found 
Checking for          mod_headers (any)       not found 
***********************************************************************
* OPTIONAL MODULES                                                    *
***********************************************************************
* Certain Perl modules are not required by Bugzilla, but by           *
* installing the latest version you gain access to additional         *
* features.                                                           *
*                                                                     *
* The optional modules you do not have installed are listed below,    *
* with the name of the feature they enable. Below that table are the  *
* commands to install each module.                                    *
***********************************************************************
*      MODULE NAME * ENABLES FEATURE(S)                               *
***********************************************************************
*            Chart * New Charts, Old Charts                           *
*      Template-Gd * Graphical Reports                                *
*       GDTextUtil * Graphical Reports                                *
*          GDGraph * Graphical Reports                                *
*         XML-Twig * Move Bugs Between Installations, Automatic Update Notifications *
* Apache-SizeLimit * mod_Perl                                         *
***********************************************************************
* Apache MODULES                                                      *
***********************************************************************
* Normally, when Bugzilla is upgraded, all Bugzilla users have to     *
* clear their browser cache or Bugzilla will break. If you enable     *
* certain modules in your Apache configuration (usually called        *
* httpd.conf or Apache2.conf) then your users will not have to clear  *
* their caches when you upgrade Bugzilla. The modules you need to     *
* enable are:                                                         *
*                                                                     *
*    mod_expires, mod_headers                                         *
*                                                                     *
***********************************************************************
COMMANDS TO INSTALL OPTIONAL MODULES:

          Chart: /usr/bin/Perl install-module.pl Chart::Lines
    Template-Gd: /usr/bin/Perl install-module.pl Template::Plugin::Gd::Image
     GDTextUtil: /usr/bin/Perl install-module.pl Gd::Text
        GDGraph: /usr/bin/Perl install-module.pl Gd::Graph
       XML-Twig: /usr/bin/Perl install-module.pl XML::Twig
Apache-SizeLimit: /usr/bin/Perl install-module.pl Apache2::SizeLimit


To attempt an automatic install of every required and optional module
with one command, do:

  /usr/bin/Perl install-module.pl --all

Reading ./localconfig...

OPTIONAL NOTE: If you want to be able to use the 'difference between two
patches' feature of Bugzilla (which requires the PatchReader Perl module
as well), you should install patchutils from:

    http://cyberelk.net/tim/patchutils/

Checking for            DBD-mysql (v4.001)    ok: found v4.025
Checking for                MySQL (v5.0.15)   ok: found v5.5.40-0ubuntu0.14.04.1

Removing existing compiled templates...
Precompiling templates...done.
Fixing file permissions...

Now that you have installed Bugzilla, you should visit the 'Parameters'
page (linked in the footer of the Administrator account) to ensure it
is set up as you wish - this includes setting the 'urlbase' option to
the correct URL.
checksetup.pl complete.
xxx@conquistador:/var/www/html/bugzilla$

Qu'est-ce que j'ai raté?? 192.168.0.101 est l'adresse IP statique du serveur avec le logiciel serveur Ubuntu (sur le réseau local). Maintenant, les autorisations posent-elles un problème, car je dois exécuter checksetup avec sudo? Ou est-ce peut-être le fait que j'ai installé tous les modules Perl et chaque fois que je lance checksetup j'ai encore des modules désinstallés et il y a deux versions de Perl sur mon serveur?! Et pourquoi je ne trouve pas httpd.conf sous Apache pour l'installation de virtualhosts? Voici également le fichier error.log d'Apache:

xxx@conquistador:~$ tail -n10 /var/log/Apache2/error.log 
[Mon Dec 29 06:51:30.917242 2014] [mpm_prefork:notice] [pid 7816] AH00169: caught SIGTERM, shutting down
[Mon Dec 29 06:51:31.981406 2014] [mpm_prefork:notice] [pid 7869] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 mod_Perl/2.0.8 Perl/v5.18.2 configured -- resuming normal operations
[Mon Dec 29 06:51:31.981522 2014] [core:notice] [pid 7869] AH00094: Command line: '/usr/sbin/Apache2'
[Mon Dec 29 10:20:37.140342 2014] [mpm_prefork:notice] [pid 7869] AH00169: caught SIGTERM, shutting down
[Mon Dec 29 10:21:17.627440 2014] [mpm_prefork:notice] [pid 1200] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 mod_Perl/2.0.8 Perl/v5.18.2 configured -- resuming normal operations
[Mon Dec 29 10:21:17.673547 2014] [core:notice] [pid 1200] AH00094: Command line: '/usr/sbin/Apache2'
[Mon Dec 29 11:09:48.663528 2014] [mpm_prefork:notice] [pid 1200] AH00169: caught SIGTERM, shutting down
[Mon Dec 29 11:09:49.716595 2014] [mpm_prefork:notice] [pid 2395] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 mod_Perl/2.0.8 Perl/v5.18.2 configured -- resuming normal operations
[Mon Dec 29 11:09:49.716748 2014] [core:notice] [pid 2395] AH00094: Command line: '/usr/sbin/Apache2'
[Mon Dec 29 11:15:22.206391 2014] [core:error] [pid 2401] [client 87.236.31.27:51667] AH00135: Invalid method in request +\xd9J\xac\xc6\x86\x8a\x9fgJI\x10
xxx@conquistador:~$

J'ai redémarré le serveur via Sudo reboot now et maintenant, si je passe à http://192.168.0.101/bugzilla/, je ne reçois plus not found error, mais la sortie suivante:

#!/usr/bin/Perl -wT
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This Source Code Form is "Incompatible With Secondary Licenses", as
# defined by the Mozilla Public License, v. 2.0.

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

Maintenant, qu'est-ce qui se passe maintenant?

2
KernelPanic

Je l'ai résolu !!! J'ai activé cgi dans Apache via Sudo a2enmod cgi et fonctionne maintenant!

1
KernelPanic