Im trying to have CentOS 8 with Multiple PHP (7.0, 7.2, 7.3 & 7.4) installed. I’ve tried yet, all failed.
Hi,
Have a look at our documentation - Installing PHP 7.3 and 7.4 on CentOS 8 – Multiple PHP Versions
1 Like
# dnf -y install php73-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd}
CentOS-8 - AppStream 5.9 MB/s | 5.7 MB 00:00
CentOS-8 - Base 6.7 MB/s | 2.2 MB 00:00
CentOS-8 - Extras 26 kB/s | 8.1 kB 00:00
CentOS-8 - PowerTools 2.6 MB/s | 1.9 MB 00:00
Extra Packages for Enterprise Linux 8 - Playground - x86_64 11 MB/s | 6.1 MB 00:00
Remi's Modular repository for Enterprise Linux 8 - x86_64 463 kB/s | 622 kB 00:01
Safe Remi's RPM repository for Enterprise Linux 8 - x86_64 958 kB/s | 1.6 MB 00:01
RHEL/CentOS 8 - x86_64 - Virtualmin 49 kB/s | 17 kB 00:00
Virtualmin Distribution Neutral Packages 889 kB/s | 689 kB 00:00
Error:
Problem 1: cannot install the best candidate for the job
- nothing provides libargon2.so.1()(64bit) needed by php73-php-cli-7.3.22-1.el8.remi.x86_64
Problem 2: cannot install the best candidate for the job
- nothing provides libargon2.so.1()(64bit) needed by php73-php-fpm-7.3.22-1.el8.remi.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
Below worked for me.
#dnf -y install http://rpms.remirepo.net/enterprise/remi-release-8.rpm && dnf clean all
PHP 5.6
# dnf -y install php56-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd} --skip-broken
PHP 7.0
# dnf -y install php70-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd} --skip-broken
PHP 7.1
# dnf -y install php71-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd} --skip-broken
PHP 7.2
# dnf -y install php72-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd} --skip-broken
PHP 7.3 (not installing tho)
# dnf -y install php73-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd} --skip-broken
PHP 7.4
# dnf -y install php74-php-{cli,pdo,fpm,zip,gd,xml,mysqlnd} --skip-broken
I dont know if its any help but I went a little difference with this and went this way
dnf module list | grep php
php 7.2 common [d], devel, minimal PHP scripting language
php 7.3 common [d], devel, minimal PHP scripting language
php remi-7.4 common [d], devel, minimal PHP scripting language
dnf module reset php
dnf module install php:7.3
dnf update
1 Like
That doesn’t look good to me. You mustn’t install PHP 7.2 on CentOS 8 as it’s a default version already . There should be no broken packages upon this process.