I am running two versions of PHP 7.4
and 8.4
on an Almalinux server and I'm missing a php function posix_getppid
(in Laravel/Horizon).
I've searched and it seems I'm missing a PHP extension/module. I'm trying to install php-common
for 8.4 as I read posix was included with that or else it's php-process
but I'm getting the error below.
I may have made a mess of my original PHP on the server as it has now upgraded to php8.4 from 7.4, as I forgot to use the php84-php-** when installing extensions.
I have multiple sites that all were running on PHP7.4 and I was trying to add a new app that uses laravel 12 which requires 8.*
Error:
Problem: cannot install both php-common-7.4.33-24.el8.remi.x86_64 from remi-modular and php-common-8.4.10-1.el8.remi.x86_64 from @System
- package php-process-7.4.33-24.el8.remi.x86_64 from remi-modular requires php-common(x86-64) = 7.4.33-24.el8.remi, but none of the providers can be installed
- package php-pecl-imap-1.0.3-1.el8.remi.8.4.x86_64 from @System requires php(api) = 20240924-64, but none of the providers can be installed
- package php-pecl-imap-1.0.3-1.el8.remi.8.4.x86_64 from @System requires php(zend-abi) = 20240924-64, but none of the providers can be installed
- cannot install the best candidate for the job
- problem with installed package php-pecl-imap-1.0.3-1.el8.remi.8.4.x86_64
- package php-common-8.4.10-1.el8.remi.x86_64 from remi-modular is filtered out by modular filtering
- package php-common-8.4.11-1.el8.remi.x86_64 from remi-modular is filtered out by modular filtering (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Installed PHP84 Modules
php84 --modules [PHP Modules] bcmath bz2 calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext hash iconv json libxml mbstring mysql mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar posix random readline Reflection session shmop SimpleXML sockets sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache
Installed PHP Modules
php --modules [PHP Modules] apcu bcmath bz2 calendar Core ctype curl date dom exif fileinfo filter ftp gd gettext hash iconv igbinary imagick imap intl json libxml mbstring memcached msgpack mysqli mysqlnd openssl pcntl pcre PDO pdo_mysql pdo_sqlite Phar random readline redis Reflection session SimpleXML sockets sodium SPL sqlite3 standard tokenizer xml xmlreader xmlrpc xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache