HTTP ERROR 500 - Fresh install
-
I’m doing a fresh install on a new CentOS 9 just for running FOG.
I came to the part where you need to go to /fog/management to install database schema, but all I get is a http error 500.
In php-fpm/www-error.log is written:
PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in /var/www/html/fog/lib/db/databasemanager.class.php:47
Stack trace:
#0 /var/www/html/fog/lib/db/databasemanager.class.php(47): implode()
#1 /var/www/html/fog/lib/fog/loadglobals.class.php(43): DatabaseManager::establish()
#2 /var/www/html/fog/lib/fog/loadglobals.class.php(81): LoadGlobals::_init()
#3 /var/www/html/fog/commons/base.inc.php(49): LoadGlobals->__construct()
#4 /var/www/html/fog/management/index.php(22): require(‘…’)
#5 {main}
thrown in /var/www/html/fog/lib/db/databasemanager.class.php on line 47Database is accessible via phpmyadmin without any problems.
Any ideas how to solve this?
-
@beeppy FOG has not been tested on Centos 9. Centos 9 was released after FOG 1.5.9. From the error messages it looks like its having a problem with the new version of php that ships with Cento 9.
-
Thanx, for a quick reply.
You’re right. With CentOS9 comes with a newer version of PHP. The installation went without any problems with CentOS8.
Any news when CentOS9/PHP8 will be supported?
-
@beeppy said in HTTP ERROR 500 - Fresh install:
Any news when CentOS9/PHP8 will be supported?
I don’t have any timing on when FOG 1.5.10 will be released. From the last time I talked with the developers FOG 1.5.9.120 or so in the dev branch will probably be what will be 1.5.10 when its released.
So just as an FYI it might not be until 1.5.11 is released. Also when we look at the statistics not many people are installing FOG with Centos anymore. Market share wise of the (RHEL variants) centos 7 is still the leader. On a total market share side, most people install FOG on debian or ubuntu now.