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.12.3 available

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

Issue with installing

I'm following this guide

https://wiki.ocsinventory-ng.org/03.Basic-documentation/Setting-up-a-OCS-Inventory-Server/

and I didn't see any issue until the last step where I restart httpd

[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

Can someone point me to the solution for this issue?

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

5 Answers

+1 vote
Hi,

You didn't install php on your server or php is not configured with apache.

Regards
by (90.5k points)
0 votes

Hi thanks for pointing that out. Looks like my php installation was missing. The page is up but this is the message on it

CS-NG Inventory Installation

WARNING: You will not be able to build any deployment package with size greater than 200MB

You must raise both post_max_size and upload_max_filesize in your vhost configuration to increase this limit.

WARNING: If you change default database name (ocsweb) or user (ocs), don't forget to update the file 'z-ocsinventory-server.conf' in your Apache configuration directory

ERROR: MySQL for PHP is not properly installed.

Try installing MySQL for php package (Debian: php5-mysql)

I am not sure why it's asking for php5-mysql. I'm running on a Redhat 9 host first of all, and running mariadb server like the guide instructions

by (230 points)
0 votes

and you have to change the ServerName directive to match server's hostname, it said :

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

by (460 points)
0 votes

Hi,

This part was already fixed but still the landing page is still showing 

WARNING: You will not be able to build any deployment package with size greater than 200MB

You must raise both post_max_size and upload_max_filesize in your vhost configuration to increase this limit.

WARNING: If you change default database name (ocsweb) or user (ocs), don't forget to update the file 'z-ocsinventory-server.conf' in your Apache configuration directory

ERROR: MySQL for PHP is not properly installed.

Try installing MySQL for php package (Debian: php5-mysql)

 I am not sure why it's asking for php5-mysql. I'm running on a Redhat 9 host first of all, and running mariadb server like the guide instructions

by (230 points)
0 votes
by (90.5k points)
 
Powered by Question2Answer
...