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.

post installation problem PHP Fatal error [closed]

CentOS Linux release 7.5.1804 (Core)
OCSNG_UNIX_SERVER_2.4.1

After successful ./setup.sh, I browse to here as instructions said.

http://XXX.XXX.XXX.XXX/ocsreports/

But the page is blank.  logs are as follows ...

access_log:

xxx.xxx.xxx.xxx - - [18/May/2018:10:52:59 -0700] "GET /ocsreports/ HTTP/1.1" 500 - "-" "Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0"

error_log:

[Fri May 18 10:52:59.064777 2018] [:error] [pid 9511] [client xxx.xxx.xxx.xxx:42748] PHP Fatal error:  Call to undefined function mysqli_real_escape_string() in /usr/share/ocsinventory-reports/ocsreports/require/function_commun.php on line 66

I think the database isn't being installed.   I tried on another new system and played around with

trying to get the database initiated, but still can't get past this.
closed with the note: Problem solved
in OCS Inventory NG server for Unix by (240 points)
closed by

4 Answers

+2 votes
 
Best answer
Hi,

I had the very same problem under CentOS 7 and it turned out that I was missing a couple of PHP modules:

- php-mysql

- php-soap

After installing them I was able to carry on.

Good luck.
by (480 points)
selected by
0 votes
Hi,

All mandatory php modules had been installed ?

Regards

Frank
by (90.4k points)
0 votes
To Frankb

Hard to answer that.  Read the instructions and several other docs by people installing this.  The installer didn't warn of anything not installed.  Do you have a specific question or log to review that

could help?
by (240 points)
0 votes

To bonowax:  Thanks for narrowing that down.   Its working now, I'm working on filling it up with inventory.

Thanks a bunch.

by (240 points)
 
Powered by Question2Answer
...