Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

OCS 2.4 x Debian 9.4 - Error admin page.

Hi friends!

I installed a new server this week to control my inventory, but after install all the packages i got this message when I access the main administration page.

Unfortunately I dont know what is wrong.

I appreciate any help.

Thanks all.

<?php
/*
 * Copyright 2005-2016 OCSInventory-NG/OCSInventory-ocsreports contributors.
 * See the Contributors file for more details about them.
 *
 * This file is part of OCSInventory-NG/OCSInventory-ocsreports.
 *
 * OCSInventory-NG/OCSInventory-ocsreports 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.
 *
 * OCSInventory-NG/OCSInventory-ocsreports 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 OCSInventory-NG/OCSInventory-ocsreports. if not, write to the
 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301, USA.
 */
// Check for mbstring before loading session and conf data
if (!extension_loaded('mbstring')) {
    die("Please install php mbstring extension");
}
require("require/fichierConf.class.php");
// Before session_start to allow objects to be unserialized from session
require_once('require/menu/include.php');
require_once('require/config/include.php');
@session_start();
// Magic Quotes :
// This feature has been deprecated as of PHP 5.3 and deleted as of PHP 5.4.
if (get_magic_quotes_gpc()) {
    function magicQuotes_awStripslashes(&$value, $key) {
        $value = stripslashes($value);
    }
    $gpc = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
    array_walk_recursive($gpc, 'magicQuotes_awStripslashes');
}
$debut = microtime(true);
// Is it an AJAX call ? (ajax.php)
if (!defined('AJAX')) {
    define('AJAX', false);
}
require ('require/header.php');
addLog('PAGE', $protectedGet[PAG_INDEX]);
if (!AJAX && !isset($protectedGet["popup"]) && !isset($protectedGet["no_footer"])) {
    require (FOOTER_HTML);
}

in OCS Inventory NG server for Unix by (170 points)

2 Answers

+1 vote
Hi,

What error have you in /var/log/apache2/error.log file?

Regards

Frank
by (88.5k points)
0 votes

Frank,

Thanks for your help!

The error log has just these lines.

[Thu Mar 29 00:05:44.977916 2018] [mpm_event:notice] [pid 9259:tid 140471915263168] AH00489: Apache/2.4.25 (Debian) configured -- resuming normal operations

[Thu Mar 29 00:05:44.977935 2018] [core:notice] [pid 9259:tid 140471915263168] AH00094: Command line: '/usr/sbin/apache2'

Best regards!
by (170 points)
 
Powered by Question2Answer
...