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-10-16 16:48:10

rrm
Member
Registered: 2017-10-16
Posts: 9

Installation help.

Hi all,

Would really appreciate some help.

I have installed Ubuntu 16.04 LTS on a virtual box, ran all the updates etc.
Then run the command

sudo apt-get install glpi

Which runs through OK, installs and prompts me for passwords etc. However when I try to access the webpage via IE11 (http://server-ip-address/glpi/, I get a screen full of rubbish....

That looks like this...
____________________________________________________________________________________________________________

. -------------------------------------------------------------------------- */ /** @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 ''."\n"; echo ''; echo ''."\n"; echo ''."\n"; echo ''."\n"; echo ''; // Appel CSS echo ''; // surcharge CSS hack for IE echo ""; // echo ""; echo ""; echo ""; echo "
"; echo "
"; echo "
"; echo nl2br(Toolbox::unclean_html_cross_side_scripting_deep($CFG_GLPI['text_login'])); echo "
"; echo "
"; echo "
"; // Other CAS if (isset($_GET["noAUTO"])) { echo ""; } // redirect to ticket if (isset($_GET["redirect"])) { Toolbox::manageRedirect($_GET["redirect"]); echo ''; } echo "
"; echo ''.__('Authentication').''; echo '
'.__('Login').''; echo ''; echo '
'; echo '
'.__('Password').''; echo ''; echo ''. '
'; echo ""; echo '
'; echo ''; echo '
'; if ($CFG_GLPI["use_mailing"] && countElementsInTable('glpi_notifications', "`itemtype`='User' AND `event`='passwordforget' AND `is_active`=1")) { echo '
'. __('Forgotten password?').'
'; } Html::closeForm(); echo ""; echo ""; // end login box echo "
"; echo ""; 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 "
".GLPI_SESSION_DIR; break; } } echo "
"; echo ""; // end contenu login // Display FAQ is enable if ($CFG_GLPI["use_public_faq"]) { echo '
'. '[ '.__('Access to the Frequently Asked Questions').' ]'; echo '
'; } if (GLPI_DEMO_MODE) { echo "
"; Event::getCountLogin(); echo "
"; } echo "
"; echo ""; echo 'GLPI version '.(isset($CFG_GLPI["version"])?$CFG_GLPI["version"]:""). ' Copyright (C) 2003-'.date("Y").' INDEPNET Development Team.'; echo "
"; } // call cron if (!GLPI_DEMO_MODE) { CronTask::callCronForce(); } echo ""; ?>

____________________________________________________________________________________________________________
Any ideas on how I fix this?

Thanks
RRM

Offline

#2 2017-10-16 17:01:17

machadomall
Member
From: Brazil, Brasilia, DF
Registered: 2011-10-30
Posts: 208

Re: Installation help.

Hello,
When running sudo apt-get install glpi, do you know if you installed all dependencies?
I believe that the installation of php is missing, this PHP_VERSION, "5.3.0" is incompatible with GLPI. Recommended >= php5.6.


Márcio Machado
Brasília-DF / Brasil

Offline

#3 2017-10-17 09:15:48

rrm
Member
Registered: 2017-10-16
Posts: 9

Re: Installation help.

Morning,

during the installation it installed all the dependencies. I have tried to do sudo apt-get install php and it tells me it is already installed.

Any further advice?

Thanks
rrm

Offline

#4 2017-10-17 09:47:18

rrm
Member
Registered: 2017-10-16
Posts: 9

Re: Installation help.

OK, running
php -V gives

PHP 7.0.22-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.22-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies

and running MySQL -V gives

mysql  Ver 14.14 Distrib 5.7.19, for Linux (x86_64) using  EditLine wrapper

So I think they are both installed?

Thanks in advance for any help.

Offline

Board footer

Powered by FluxBB