Closed TheFiZi closed 3 years ago
Dude i litterally created this account to THANK YOU ! Had the exact same issue upgrading from 2.6. to 2.9.2 tried your solution without much conviction and it actually worked. And i can definitly tell you, you saved someone a buch of time! So big thanks again and have a great day !
Thank you so much. It did the trick after updating from 2.5 to 2.9.
Thank you for this post. OCS Team should have included this one when upgrading from earlier versions of OCS to 2.9.
Nice Tx
Thanks you !
It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.
General informations
Operating system : CentOS Linux release 7.9.2009 (Core)
Server informations
Perl version : v5.16.3 Mysql / Mariadb / Percona version : 5.5.68-MariaDB
OCS Inventory informations
Ocs server version : 2.8
Problem's description
Just posting this to save someone else a bunch of time. Plus when I got the error under PHP 7.4 I couldn't find anything. Downgrading to PHP 5.6 provided me a different error where I found this page: https://ask.ocsinventory-ng.org/11927/ocs-version-2-7-update-problem-mysql-ssl-enable
After upgrading to OCS 2.8 I was getting "Error 500" when trying to access the OCS Inventory Admin Page. Checking my Apache logs I found these:
PHP 7.4
PHP 5.6
The solution ended up being to edit
/usr/share/ocsinventory-reports/ocsreports/dbconfig.inc.php
and add the following:After that I was able to access OCS Inventory again under PHP 5.6 and PHP 7.4.