Solved FOG server under RHEL 9 and PHP 8
Hi again! I am back
I am installing a new server under RHEL 9, but I am having problems with the install process.
Two big problems:
- PHP version 8: the implode function is deprecated and have changed (https://www.php.net/manual/en/function.implode.php)
implode(string $separator, array $array): string Alternative signature (not supported with named arguments): implode(array $array): string Legacy signature (deprecated as of PHP 7.4.0, removed as of PHP 8.0.0): implode(array $array, string $separator): string Join array elements with a separator string.
The order of the parameters is different. This affects to all calls of the implode function.
*xinetd package is not available in RHEL 9
The xinetd package is not available in RHEL 9. Its functionality is now provided by systemd.
Workaround: Install php 7.4 in RHEL 9
Install PHP 7.4 (https://www.linuxcapable.com/how-to-install-php-on-centos-stream/)
# dnf upgrade –refresh # dnf config-manager --set-enabled crb # dnf install \ https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \ https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm # dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-9.rpm -y # dnf module list php # dnf module enable php:remi-7.4 –y # dnf install php php-cli php-common php-fpm php-gd php-json php-ldap php-mbstring php-mysqlnd php-process –y
@Fernando-Gietz Hi Fernando, great to see you around!
I guess you tried to install FOG 1.5.9. This version still lacks PHP 8 support. Either install dev-branch (you can easily update from dev-branch to the next official release) or wait two weeks until the new release is out.
@Sebastian-Roth Hi Sebastian!
I will try the dev-branch, the new server is the develop server. If the new release version has PHP 8 support then great
The problem with the xinetd is more “special”, only affect to RHEL 9 and higher.
Yes, I think that the dev-branch solves the problem. I tried to install from master branch and the problem with the xinetd appeared, but with the dev-branch apparently works fine