PHP 8.2 Install Issue / Conflict
AnsweredCurrently have PHP 8.0 and 8.1 installed
Trying to install PHP 8.2 via EasyApache 4 but keep getting an error message when provisioning.
Provision process started.
[2024-01-31 21:30:10 -0500] info [xml-api] Package ea-libargon2-1:20161029-3.el8.cloudlinux.2.x86_64 is already installed.
[2024-01-31 21:30:10 -0500] info [xml-api] Problem: package ea-php82-php-bcmath-8.2.15-1.2.1.cpanel.x86_64 from EA4 requires libargon2.so.0()(64bit), but none of the providers can be installed
[2024-01-31 21:30:10 -0500] info [xml-api] - cannot install both ea-libargon2-20161029-3.3.111.cpanel.x86_64 from EA4 and ea-libargon2-1:20161029-3.el8.cloudlinux.2.x86_64 from @System
[2024-01-31 21:30:10 -0500] info [xml-api] - cannot install both ea-libargon2-20161029-3.3.112.cpanel.x86_64 from EA4 and ea-libargon2-1:20161029-3.el8.cloudlinux.2.x86_64 from @System
[2024-01-31 21:30:10 -0500] info [xml-api] - cannot install the best candidate for the job
[2024-01-31 21:30:10 -0500] info [xml-api] Nothing to do.
[2024-01-31 21:30:10 -0500] info [xml-api] Complete!
[2024-01-31 21:30:10 -0500] info [xml-api] Last metadata expiration check: 3:16:23 ago on Wed Jan 31 18:13:47 2024.
[2024-01-31 21:30:10 -0500] info [xml-api] Dependencies resolved.
[2024-01-31 21:30:10 -0500] info [xml-api] Nothing to do.
[2024-01-31 21:30:10 -0500] info [xml-api] Complete!Problem: package ea-php82-php-bcmath-8.2.15-1.2.1.cpanel.x86_64 from EA4 requires libargon2.so.0()(64bit), but none of the providers can be installed
- cannot install both ea-libargon2-20161029-3.3.111.cpanel.x86_64 from EA4 and ea-libargon2-1:20161029-3.el8.cloudlinux.2.x86_64 from @System
- cannot install both ea-libargon2-20161029-3.3.112.cpanel.x86_64 from EA4 and ea-libargon2-1:20161029-3.el8.cloudlinux.2.x86_64 from @System
- cannot install the best candidate for the job
The entire output was logged to: /usr/local/cpanel/logs/packman/errors/2024-01-31_21:30:10-1Provision process finished.
I think is has something to do with Imiunify360, but I don't use that anymore.
REF: Unable to install ea-php82 extensions due to Imunify360 dependency issues – cPanel
-
Hey there! What is the output of the following command on your server?
rpm -qa | grep -i argon
Once we know that we can move to the next steps to get this working.
0 -
Hello,
here you go...
[root@server ~]# rpm -qa | grep -i argon
ea-libargon2-20161029-3.el8.cloudlinux.2.x86_64My OS is AlmaLinux v8.9.0 STANDARD standard if that matters.
Thanks
0 -
That's likely the issue then. Remove the package with this command:
rpm -e --nodeps ea-libargon2
and then try your work again and it should work well.
1 -
If I do that, will it affect my current PHP 8.1 install? I have sites using 8.1 that I will be moving to 8.2.
0 -
No, this package is not specific to PHP, and it's already causing problems. There may be a quick hiccup while the new packages are installed and PHP is reloaded, so if you wanted to wait until non-peak hours for the users, being cautious is never a bad plan.
1 -
Sounds good. Thank you for the help!
1 -
You're very welcome! Let me know if that doesn't take care of the issue!
0 -
Worked perfectly! I assume it is safe to remove 8.0 and 8.1 now? Everything has been moved to 8.2.
0 -
I'm glad to hear that worked well! Yes, if all of your accounts are now on PHP 8.2 you can remove the older versions and that will not cause any conflicts.
0 -
Great, thanks!
0 -
I had this same issue and ran the fix. Resolved the issue and now I am getting the following in Almalinux 8.9:
Problem 1: package ea-php83-php-intl-8.3.2-1.1.1.cpanel.x86_64 from EA4 requires libicudata.so.69()(64bit), but none of the providers can be installed - package ea-php83-php-intl-8.3.2-1.1.1.cpanel.x86_64 from EA4 requires libicui18n.so.69()(64bit), but none of the providers can be installed - package ea-php83-php-intl-8.3.2-1.1.1.cpanel.x86_64 from EA4 requires libicuuc.so.69()(64bit), but none of the providers can be installed - package ea-php83-php-intl-8.3.2-1.1.1.cpanel.x86_64 from EA4 requires libicuio.so.69()(64bit), but none of the providers can be installed - cannot install both ea-libicu-69.1-1.1.61.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install both ea-libicu-69.1-1.1.62.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install both ea-libicu-69.1-2.2.16.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install both ea-libicu-69.1-2.2.17.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install the best candidate for the job Problem 2: package ea-php82-php-intl-8.2.15-1.2.1.cpanel.x86_64 from EA4 requires libicudata.so.69()(64bit), but none of the providers can be installed - package ea-php82-php-intl-8.2.15-1.2.1.cpanel.x86_64 from EA4 requires libicui18n.so.69()(64bit), but none of the providers can be installed - package ea-php82-php-intl-8.2.15-1.2.1.cpanel.x86_64 from EA4 requires libicuuc.so.69()(64bit), but none of the providers can be installed - package ea-php82-php-intl-8.2.15-1.2.1.cpanel.x86_64 from EA4 requires libicuio.so.69()(64bit), but none of the providers can be installed - cannot install both ea-libicu-69.1-1.1.61.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install both ea-libicu-69.1-1.1.62.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install both ea-libicu-69.1-2.2.16.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install both ea-libicu-69.1-2.2.17.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - package ea-php74-php-intl-1:7.4.33-2.el8.cloudlinux.1.x86_64 from @System requires ea-libicu >= 1:69, but none of the providers can be installed - cannot install the best candidate for the job
Any ideas?
0 -
ThatHostingCo - are you running CloudLinux on that machine? If not, you'll want to remove or disable the CloudLinux repositories to avoid this conflict.
0 -
I'm running the Imunify360 Hardened packages.
0 -
To note, it ran the install just fine on my other server running the same setup. The only difference is that this is running in a VPS as opposed to a dedicated server.
0 -
The recommended way to handle those conflicts is with the details here:
1 -
Actually, I found this article just off that one that worked better to the issue: https://cloudlinux.zendesk.com/hc/en-us/articles/4408411384722-Yum-cannot-install-the-best-update-candidate-for-package-on-server-with-Imunify360
Seems this issue occurred before with the PHP 7.4 Release.
1 -
Hello cPRex, I have the same issue as ThatHostingCo, wanting to install PHP82 and 83, however still getting the conflict after running the fix you suggested.
Here is my output from command
rpm -qa | grep -i argon
Returned: libargon2-20171227-3.el8.x86_64[2024-02-22 10:30:57 +0000] info [xml-api] Package ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 is already installed. [2024-02-22 10:30:57 +0000] info [xml-api] Problem: package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicudata.so.69()(64bit), but none of the providers can be installed [2024-02-22 10:30:57 +0000] info [xml-api] - package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicui18n.so.69()(64bit), but none of the providers can be installed [2024-02-22 10:30:57 +0000] info [xml-api] - package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicuuc.so.69()(64bit), but none of the providers can be installed [2024-02-22 10:30:57 +0000] info [xml-api] - package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicuio.so.69()(64bit), but none of the providers can be installed [2024-02-22 10:30:57 +0000] info [xml-api] - cannot install both ea-libicu-69.1-1.1.61.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System [2024-02-22 10:30:57 +0000] info [xml-api] - cannot install both ea-libicu-69.1-1.1.62.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System [2024-02-22 10:30:57 +0000] info [xml-api] - cannot install both ea-libicu-69.1-2.2.16.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System [2024-02-22 10:30:57 +0000] info [xml-api] - cannot install both ea-libicu-69.1-2.2.17.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System [2024-02-22 10:30:57 +0000] info [xml-api] - cannot install the best candidate for the job [2024-02-22 10:30:57 +0000] info [xml-api] Nothing to do. [2024-02-22 10:30:57 +0000] info [xml-api] Complete! [2024-02-22 10:30:57 +0000] info [xml-api] Last metadata expiration check: 0:20:30 ago on Thu Feb 22 10:10:26 2024. [2024-02-22 10:30:57 +0000] info [xml-api] Dependencies resolved. [2024-02-22 10:30:57 +0000] info [xml-api] Nothing to do. [2024-02-22 10:30:57 +0000] info [xml-api] Complete! Problem: package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicudata.so.69()(64bit), but none of the providers can be installed - package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicui18n.so.69()(64bit), but none of the providers can be installed - package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicuuc.so.69()(64bit), but none of the providers can be installed - package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicuio.so.69()(64bit), but none of the providers can be installed - cannot install both ea-libicu-69.1-1.1.61.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install both ea-libicu-69.1-1.1.62.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install both ea-libicu-69.1-2.2.16.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install both ea-libicu-69.1-2.2.17.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install the best candidate for the job
I have immunifyAV installed (want to uninstall it but did not want to do it in case of other issues) I believe your point about disabling the CloudLinux repositories maty be what I need to do once I uninstall immunify....I am just not sure how. Any specific direction would be appreciated.
0 -
Ken Evans - are you running the CloudLinux operating system at this time? You can check this with the "cat /etc/redhat-release" command on the server.
If you are not, you can see if there are any CloudLinux repositories listed in /etc/yum.repos.d. ImunifyAV is included by default on cPanel machines so I would not expect you to need to remove that software.
If there are other CloudLinux repositories on the machine you can disable them using the instructions here: https://support.cpanel.net/hc/en-us/articles/360054840794-How-do-I-enable-or-disable-a-repository
0 -
Thank you! I am using AlmaLinux v8.9.0. I am a bit of a novice but will work through the path you suggest to see what is preventing the upgrades.
0 -
It does not appear that there are any cloud Linux repositories in that directory:
almalinux-ha.repo almalinux-saphana.repo epel-next-testing.repo imunify-rollout.repo nux-dextop.repo
almalinux-nfv.repo almalinux-sap.repo epel.repo kernelcare.repo rpmfusion-free-updates.repo
almalinux-plus.repo cPAddons.repo epel-testing-modular.repo kernelcare.repo.rpmnew rpmfusion-free-updates-testing.repo
almalinux-powertools.repo cpanel-plugins.repo epel-testing.repo mysql-community-debuginfo.repo wp-toolkit-cpanel.repo
almalinux.repo EA4.repo imunify360.repo mysql-community.repo
almalinux-resilientstorage.repo epel-modular.repo imunify360-testing.repo mysql-community.repo.off
almalinux-rt.repo epel-next.repo imunify-new-rollout.repo mysql-community-source.repohowever still get this output when I try to upgrade PHP.
[2024-02-23 10:00:21 +0000] info [xml-api] Package ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 is already installed. [2024-02-23 10:00:21 +0000] info [xml-api] Problem: package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicudata.so.69()(64bit), but none of the providers can be installed [2024-02-23 10:00:21 +0000] info [xml-api] - package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicui18n.so.69()(64bit), but none of the providers can be installed [2024-02-23 10:00:21 +0000] info [xml-api] - package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicuuc.so.69()(64bit), but none of the providers can be installed [2024-02-23 10:00:21 +0000] info [xml-api] - package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicuio.so.69()(64bit), but none of the providers can be installed [2024-02-23 10:00:21 +0000] info [xml-api] - cannot install both ea-libicu-69.1-1.1.61.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System [2024-02-23 10:00:21 +0000] info [xml-api] - cannot install both ea-libicu-69.1-1.1.62.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System [2024-02-23 10:00:21 +0000] info [xml-api] - cannot install both ea-libicu-69.1-2.2.16.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System [2024-02-23 10:00:21 +0000] info [xml-api] - cannot install both ea-libicu-69.1-2.2.17.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System [2024-02-23 10:00:21 +0000] info [xml-api] - cannot install the best candidate for the job [2024-02-23 10:00:21 +0000] info [xml-api] Nothing to do. [2024-02-23 10:00:21 +0000] info [xml-api] Complete! [2024-02-23 10:00:21 +0000] info [xml-api] Last metadata expiration check: 2:44:12 ago on Fri Feb 23 07:16:08 2024. [2024-02-23 10:00:21 +0000] info [xml-api] Dependencies resolved. [2024-02-23 10:00:21 +0000] info [xml-api] Nothing to do. [2024-02-23 10:00:21 +0000] info [xml-api] Complete! Problem: package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicudata.so.69()(64bit), but none of the providers can be installed - package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicui18n.so.69()(64bit), but none of the providers can be installed - package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicuuc.so.69()(64bit), but none of the providers can be installed - package ea-php82-php-intl-8.2.16-1.2.1.cpanel.x86_64 from EA4 requires libicuio.so.69()(64bit), but none of the providers can be installed - cannot install both ea-libicu-69.1-1.1.61.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install both ea-libicu-69.1-1.1.62.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install both ea-libicu-69.1-2.2.16.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install both ea-libicu-69.1-2.2.17.cpanel.x86_64 from EA4 and ea-libicu-1:69.1-1.el8.cloudlinux.x86_64 from @System - cannot install the best candidate for the job
0 -
here is something interesting that may be a clue. the version of PHP8.1 is cloudlinux. I imagine this will have to be corrected before installing 82 and 83. 8.1 is the only version I have at the moment so Im unsure about uninstalling it without messing up the sites on my server...appreciate any guidance. Ken
0 -
I am sorry for the multiple messages but there is an update. For some reason, this happened. "The service “apache_php_fpm” appears to be down" I tried to restart it and it kept throwing an error:The subprocess “/usr/local/cpanel/scripts/
restartsrv_apache_php_fpm” reported error number 29 when it ended. This of course took the sites on my server down. I proceeded by uninstalling PHP_FPM which brought all the sites back :) however now it will not install FPM again throwing a similar conflict error to the one I was getting when trying to install newer PHP Versions. Just trying to provide as much info for troubleshooting.
I do see that I just got a recovered notice for apache_php_fpm. However still cannot reinstall PHP_FPM in the Manager.0 -
I have someone with experience taking a look, and will report back with any good info for this thread. Thank you immensely.
0 -
cPRex After all of this, and I do apologize for the extra info, I was finally able to resolve this issue. This should help many having this problem!! Here is what I found:
Make sure to replace the desired PHP version with ea-php81. As you can see here, the ea-php81-php-common from CloudLinux (with, Imunify360 repo), is causing the issue. To overcome this, remove it first and it will solve the issue:
yum remove ea-php81-php-common -y
Now, you can able to install the desired PHP version with EasyApache4 or the CLI.
0 -
I'm glad you found a good solution!
0
Please sign in to leave a comment.
Comments
25 comments