Well, instead of two 7.2 installations it looks like you now have a pair of 7.4 installations from different repos. And I’m wondering if you’ve possibly got three total if 7.2 from Remi wasn’t removed when 7.4 from Remi was added. Do you see directories for both php72 and php74 when you type
Output from these commands will say for sure if there are two Remi installations:
systemctl status php72-php-fpm
systemctl status php74-php-fpm
If the shorter php?? -v commands aren’t working try full paths:
For the global installation it works this way regardless of the version installed:
systemctl status php-fpm
I think installing 7.4 from AppStream as the global default was the right move. But the 7.4 packages from Remi need to go so that packages come only from CentOS. I’m not clear about what happened but here’s what I think you should do to get on track:
- Remove all traces of Remi PHP installations including modules that were added.
- Disable all Remi repos when you’re satisfied everything installed from Remi was removed.
- Focus on the global PHP installation using only CentOS repos, mainly AppStream.
dnf update php\* again to make sure dependencies are resolved by CentOS repos.
To disable Remi repos open every /etc/yum.repos.d/remi* file with an editor and replace
enabled=0. Then run
dnf clean all.
Once global PHP is tip-top and working for you, and you decide at some point you need an older 7.x version or want to try PHP 8, you can always re-enable Remi by toggling those 0s to 1s.