[root@myServer conf.d]# systemctl restart httpd;systemctl status httpd
? httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled)
Active: active (running) since Tue 2025-02-04 11:56:10 CST; 12ms ago
Docs: man:httpd.service(8)
Main PID: 37375 (/usr/sbin/httpd)
Status: "Configuration loaded."
Tasks: 2 (limit: 47708)
Memory: 57.4M
CPU: 521ms
CGroup: /system.slice/httpd.service
+-37375 /usr/sbin/httpd -DFOREGROUND
+-37377 /usr/sbin/httpd -DFOREGROUND
Feb 04 11:56:10 myServer systemd[1]: Starting The Apache HTTP Server...
Feb 04 11:56:10 myServer httpd[37375]: ocsinventory-server: Bad setting. `SNMP_LINK_TAG` is not set. Default: `0`
Feb 04 11:56:10 myServer httpd[37375]: ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
Feb 04 11:56:10 myServer httpd[37375]: AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 100.15.5.131. Set the 'ServerName' directive globally to suppress this message
Feb 04 11:56:10 myServer httpd[37375]: Server configured, listening on: port 80
Feb 04 11:56:10 myServer systemd[1]: Started The Apache HTTP Server.
When I navigate to http://100.15.5.131/ocsreports/, instead of seeing a landing page, this is what is on the screen
<?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();
$debut = microtime(true);
// Is it an AJAX call ? (ajax.php)
if (!defined('AJAX')) {
define('AJAX', false);
}
require ('require/header.php');
if (isset($protectedGet[PAG_INDEX])) {
addLog('PAGE', $protectedGet[PAG_INDEX]);
}
if (!AJAX && !isset($protectedGet["popup"]) && !isset($protectedGet["no_footer"])) {
require (FOOTER_HTML);
}c