You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2017-12-08 10:52:51

square
Member
Registered: 2011-10-24
Posts: 58

PRIMO installation GLPI Ubuntu 16.04.3 page PHP

Bonjour à tous,

Je rencontre depuis hier un problème concernant l'installation de GLPI.
Je l'utilise depuis une dizaine d'année en version Windows et je souhaite migrer sous un environnement Linux et plus particulièrement la distribution Ubuntu 16.04.3.
Cette installation se fera sur un environnement virtualisé à savoir Vmware sphere.

Après de multiple installation aucun souci pour le serveur web (<ip du serveur>) ce dernier tourne correctement en affichant la page Appache2 cependant concernant GLPI j'ai en permanence cette page PHP qui apparaît au lieu de la page d'installation GLPI.<ip du serveur/glpi>)

Page PHP qui apparaît :


<?php
/*
* @version $Id: index.php 22657 2014-02-12 16:17:54Z moyo $
-------------------------------------------------------------------------
GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.

http://indepnet.net/   http://glpi-project.org
-------------------------------------------------------------------------

LICENSE

This file is part of GLPI.

GLPI is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

GLPI is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GLPI. If not, see <http://www.gnu.org/licenses/>.
--------------------------------------------------------------------------
*/

/** @file
* @brief
*/

// Check PHP version not to have trouble
if (version_compare(PHP_VERSION, "5.3.0") < 0) {
   die("PHP >= 5.3.0 required");
}

define('DO_NOT_CHECK_HTTP_REFERER', 1);
// If config_db doesn't exist -> start installation
define('GLPI_ROOT', dirname(__FILE__));
include (GLPI_ROOT . "/config/based_config.php");

if (!file_exists(GLPI_CONFIG_DIR . "/config_db.php")) {
   include_once (GLPI_ROOT . "/inc/autoload.function.php");
   Html::redirect("install/install.php");
   die();

} else {
   $TRY_OLD_CONFIG_FIRST = true;

   include (GLPI_ROOT . "/inc/includes.php");
   $_SESSION["glpicookietest"] = 'testcookie';

   // For compatibility reason
   if (isset($_GET["noCAS"])) {
      $_GET["noAUTO"] = $_GET["noCAS"];
   }

   Auth::checkAlternateAuthSystems(true, isset($_GET["redirect"])?$_GET["redirect"]:"");

   // Send UTF8 Headers
   header("Content-Type: text/html; charset=UTF-8");

   // Start the page
   echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" '.
         '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'."\n";
   echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">';
   echo '<head><title>'.__('GLPI - Authentication').'</title>'."\n";
   echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>'."\n";
   echo '<meta http-equiv="Content-Script-Type" content="text/javascript"/>'."\n";
   echo '<link rel="shortcut icon" type="images/x-icon" href="'.$CFG_GLPI["root_doc"].
          '/pics/favicon.ico" />';

   // Appel CSS
   echo '<link rel="stylesheet" href="'.$CFG_GLPI["root_doc"].'/css/styles.css" type="text/css" '.
         'media="screen" />';
   // surcharge CSS hack for IE
   echo "<!--[if lte IE 6]>" ;
   echo "<link rel='stylesheet' href='".$CFG_GLPI["root_doc"]."/css/styles_ie.css' type='text/css' ".
         "media='screen' >\n";
   echo "<![endif]-->";
//    echo "<script type='text/javascript'><!--document.getElementById('var_login_name').focus();-->".
//          "</script>";

   echo "</head>";

   echo "<body>";
   echo "<div id='firstboxlogin'>";
   echo "<div id='logo_login'></div>";
   echo "<div id='text-login'>";
   echo nl2br(Toolbox::unclean_html_cross_side_scripting_deep($CFG_GLPI['text_login']));
   echo "</div>";

   echo "<div id='boxlogin'>";
   echo "<form action='".$CFG_GLPI["root_doc"]."/login.php' method='post'>";

   // Other CAS
   if (isset($_GET["noAUTO"])) {
      echo "<input type='hidden' name='noAUTO' value='1'/>";
   }

   // redirect to ticket
   if (isset($_GET["redirect"])) {
      Toolbox::manageRedirect($_GET["redirect"]);
      echo '<input type="hidden" name="redirect" value="'.$_GET['redirect'].'">';
   }
   echo "<fieldset>";
   echo '<legend>'.__('Authentication').'</legend>';
   echo '<div class="row"><span class="label"><label>'.__('Login').'</label></span>';
   echo '<span class="formw"><input type="text" name="login_name" id="login_name" required="required">';
   echo '</span></div>';

   echo '<div class="row"><span class="label"><label>'.__('Password').'</label></span>';
   echo '<span class="formw">';
   echo '<input type="password" name="login_password" id="login_password" required="required"></span>'.
        '</div>';

   echo "</fieldset>";
   echo '<p><span>';
   echo '<input type="submit" name="submit" value="'._sx('button','Post').'" class="submit"/>';
   echo '</span></p>';
    if ($CFG_GLPI["use_mailing"]
       && countElementsInTable('glpi_notifications',
                               "`itemtype`='User' AND `event`='passwordforget' AND `is_active`=1")) {
      echo '<div id="forget"><a href="front/lostpassword.php?lostpassword=1">'.
             __('Forgotten password?').'</a></div>';
   }
   Html::closeForm();

   echo "<script type='text/javascript' >\n";
   echo "document.getElementById('login_name').focus();";
   echo "</script>";

   echo "</div>";  // end login box


   echo "<div class='error'>";
   echo "<noscript><p>";
   _e('You must activate the JavaScript function of your navigator');
   echo "</p></noscript>";

   if (isset($_GET['error'])) {
      switch ($_GET['error']) {
         case 1 : // cookie error
            _e('You must accept cookies to reach this application');
            break;

         case 2 : // GLPI_SESSION_DIR not writable
            _e('Checking write permissions for session files');
            echo "<br>".GLPI_SESSION_DIR;
            break;
      }
   }
   echo "</div>";


     echo "</div>"; // end contenu login

      // Display FAQ is enable
   if ($CFG_GLPI["use_public_faq"]) {
      echo '<div id="box-faq">'.
            '<a href="front/helpdesk.faq.php">[ '.__('Access to the Frequently Asked Questions').' ]';
      echo '</a></div>';
   }

   if (GLPI_DEMO_MODE) {
      echo "<div class='center'>";
      Event::getCountLogin();
      echo "</div>";
   }

   echo "<div id='footer-login'>";
   echo "<a href='http://glpi-project.org/' title='Powered By Indepnet'>";
   echo 'GLPI version '.(isset($CFG_GLPI["version"])?$CFG_GLPI["version"]:"").
        ' Copyright (C) 2003-'.date("Y").' INDEPNET Development Team.';
   echo "</a></div>";

}
// call cron
if (!GLPI_DEMO_MODE) {
   CronTask::callCronForce();
}

echo "</body></html>";
?>



Merci pour votre aide.


VM Windows 2003 R2
Glpi : 0.84.4   /   Fusioninventory 0.84+2.0 / OCS 1.0.2 / Formcréator 1.8.1 / Comptes 1.9.0 / Projets 1.4.0

Offline

#2 2017-12-08 13:51:16

bzh
Member
Registered: 2016-09-25
Posts: 417

Re: PRIMO installation GLPI Ubuntu 16.04.3 page PHP

Cela peu arrivé

tu as placer ou le dossier GLPI ?

\var\ ...


Virtual Box \ Ubuntu 20.4  \ GLPI 9.5.3

Offline

#3 2017-12-08 14:47:16

square
Member
Registered: 2011-10-24
Posts: 58

Re: PRIMO installation GLPI Ubuntu 16.04.3 page PHP

Bonjour,

Oui dans /var/www


VM Windows 2003 R2
Glpi : 0.84.4   /   Fusioninventory 0.84+2.0 / OCS 1.0.2 / Formcréator 1.8.1 / Comptes 1.9.0 / Projets 1.4.0

Offline

#4 2017-12-08 15:17:44

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,145

Re: PRIMO installation GLPI Ubuntu 16.04.3 page PHP

sur ubuntu c'est pas dans /var/www/html/glpi ?


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

#5 2017-12-08 15:49:05

square
Member
Registered: 2011-10-24
Posts: 58

Re: PRIMO installation GLPI Ubuntu 16.04.3 page PHP

Bonjour merci à vous.
Problème résolu via le tuto :
https://christiansueur.com/mise-en-plac … desk-glpi/

Last edited by square (2017-12-08 15:49:41)


VM Windows 2003 R2
Glpi : 0.84.4   /   Fusioninventory 0.84+2.0 / OCS 1.0.2 / Formcréator 1.8.1 / Comptes 1.9.0 / Projets 1.4.0

Offline

Board footer

Powered by FluxBB