Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

Souci premier lancement Jeedom sur VM Debian 9

kaikot
Timide
Messages : 2
Inscription : 24 janv. 2019, 22:31

Souci premier lancement Jeedom sur VM Debian 9

Message par kaikot » 24 janv. 2019, 22:44

Bonjour

Nouveau dans l'univers Jeedom et nouveau dans l'univers Linux, j'essaye de m'installer Jeedom sur une VM, pour cela j'ai suivi le tuto fourni sur le site (https://jeedom.github.io/documentation/ ... ion/fr_FR/)

J'ai donc une VirtualBox avec Debian 9.6 installé dessus en ssh (pas d'interface graphique).
J'ai installé le Jeedom dessus puis redemarré la VM.

Maintenant lorsque je tente de lancer Jeedom depuis un naviateur sur le PC hote (http://192.168.1.xx), j'ai un message d'erreur :

<?php

/* This file is part of Jeedom.
*
* Jeedom 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 3 of the License, or
* (at your option) any later version.
*
* Jeedom 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 Jeedom. If not, see <http://www.gnu.org/licenses/>.
*/
try {
if (!file_exists(dirname(__FILE__) . '/core/config/common.config.php')) {
header("location: install/setup.php");
}

if (!isset($_GET['v'])) {
$useragent = (isset($_SERVER["HTTP_USER_AGENT"])) ? $_SERVER["HTTP_USER_AGENT"] : 'none';
$getParams = (stristr($useragent, "Android") || strpos($useragent, "iPod") || strpos($useragent, "iPhone") || strpos($useragent, "Mobile") || strpos($useragent, "WebOS") || strpos($useragent, "mobile") || strpos($useragent, "hp-tablet"))
? 'm' : 'd';
foreach ($_GET AS $var => $value) {
$getParams .= '&' . $var . '=' . $value;
}
$url = 'index.php?v=' . trim($getParams, '&');
if (headers_sent()) {
echo '<script type="text/javascript">';
echo "window.location.href='$url';";
echo '</script>';
} else {
exit(header('Location: ' . $url));
}
die();
}
require_once dirname(__FILE__) . "/core/php/core.inc.php";
if (isset($_GET['v']) && $_GET['v'] == 'd') {
if (isset($_GET['modal'])) {
try {
include_file('core', 'authentification', 'php');
include_file('desktop', init('modal'), 'modal', init('plugin'));
} catch (Exception $e) {
ob_end_clean();
echo '<div class="alert alert-danger div_alert">';
echo translate::exec(displayException($e), 'desktop/' . init('p') . '.php');
echo '</div>';
} catch (Error $e) {
ob_end_clean();
echo '<div class="alert alert-danger div_alert">';
echo translate::exec(displayException($e), 'desktop/' . init('p') . '.php');
echo '</div>';
}
} elseif (isset($_GET['configure'])) {
include_file('core', 'authentification', 'php');
include_file('plugin_info', 'configuration', 'configuration', init('plugin'));
} elseif (isset($_GET['ajax']) && $_GET['ajax'] == 1) {
try {
include_file('core', 'authentification', 'php');
include_file('desktop', init('p'), 'php', init('m'));
} catch (Exception $e) {
ob_end_clean();
echo '<div class="alert alert-danger div_alert">';
echo translate::exec(displayException($e), 'desktop/' . init('p') . '.php');
echo '</div>';
} catch (Error $e) {
ob_end_clean();
echo '<div class="alert alert-danger div_alert">';
echo translate::exec(displayException($e), 'desktop/' . init('p') . '.php');
echo '</div>';
}
} else {
include_file('desktop', 'index', 'php');
}
} elseif (isset($_GET['v']) && $_GET['v'] == 'm') {
$_fn = 'index';
$_type = 'html';
$_plugin = '';
if (isset($_GET['modal'])) {
$_fn = init('modal');
$_type = 'modalhtml';
$_plugin = init('plugin');
} elseif (isset($_GET['p']) && isset($_GET['ajax'])) {
$_fn = $_GET['p'];
$_plugin = isset($_GET['m']) ? $_GET['m'] : $_plugin;
}
include_file('mobile', $_fn, $_type, $_plugin);
} else {
echo "Erreur : veuillez contacter l'administrateur";
}
} catch (Exception $e) {
echo $e->getMessage();
}


Quelqu'un aurait il un conseil a me donner pour tenter de resoudre cette difficulté ?

Par avance merci pour votre aide

schwarzy77
Timide
Messages : 34
Inscription : 17 avr. 2018, 11:32
Localisation : Seine et marne

Re: Souci premier lancement Jeedom sur VM Debian 9

Message par schwarzy77 » 25 janv. 2019, 11:01

Bonjour,

Le PHP n'est pas interprété, il faut vérifier que PHP est bien installé sur la VM et pris en compte dans apache.

Répondre

Revenir vers « Machines Virtuelles »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 7 invités