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 http://wiki.ocsinventory-ng.org. Read it before asking your question.

/ocsreports/install.php not running

Good day.

Installed OCS 2.9.1

But, When trying to run

http://server_name/ocsreports/install.php

in browser window does not appear  OCS Inventory Installation - simply white background.

Apache24 in access log:

[05/Oct/2021:11:17:58 +0300] "GET /ocsreports/install.php HTTP/1.1" 500 -

Apache24 error log:
proxy_fcgi:error] [pid 6889:tid 34438453248]  AH01071: Got error 'PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function session_start() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php:23\nStack trace:\n#0 /usr/share/ocsinventory-reports/ocsreports/install.php(26): require_once()\n#1 {main}\n  thrown in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 23'

How resolved?

in OCS Inventory NG server for Unix by (640 points)
edited by

17 Answers

0 votes

Launched the database.

Connected via browser to OCS Inventory.

But in ocsinventory.log on Windows computer error :

COM SERVER => HTTP Post response received <HTTP Status Code #400>

Inventory fails.

by (640 points)
0 votes
As you can read, OCS is 2 server (services) :
- Communication Server (/ocsinventory) : to receive inventory from agents, based on Perl module

- Administrative Server (/ocsreports) : to manage, search, deploy, based on Php module

Each of this 2 servives write and read the database (MySQL/MariaDB).

So you need to have ALL prerequesites for Apache2, MySQL/MariaDB, Perl, Php.

After installation of OCS, you need to (in this order)
- create database, user, rights

- install tables in database = first launch of ocsreports (Administrative Server)

- set the database identifiants in the conf for Communication Server (z-ocsinventory.conf)

- install an agent and launch it (the agent connect to Communication Server)
by (19.8k points)
0 votes

All this is done and tested.

The inventory just doesn't go through.

by (640 points)
0 votes
error 400 means that server version is lower than agent version. Verify both versions.
by (89.1k points)
0 votes

Software from Web console -Server Information

PHP Version :
  • Web Server :
  • Database Server :
  • Version OCSReports:
  • 7.4.23
  • Apache/2.4.49 (FreeBSD) OpenSSL/1.1.1h-freebsd mod_perl/2.0.11 Perl/v5.32.1
  • FreeBSD Ports version 10.4.21-MariaDB
  • 2.9.1
AGENT => Using Communication Provider <OCS Inventory cURL Communication Provider> Version <2.9.0.0>
from ocsinventory.log.
by (640 points)
0 votes

What permissions should be on the main directories?

And where is alias /inventory?

by (640 points)
0 votes
It's enough for me. I leave this question. Sorry, I can't continue to try help.

IMHO, using Debian and any of tuto on Internet, you can run an OCS server in hours (not in days or weeks).
by (19.8k points)
 
Powered by Question2Answer
...