Centos 7 - libsodium issue - Upgrading from PHP 7.4 to PHP 8.3
In preparation for a Centos 7 to AlmaLinux 9 upgrade, I'm attempting to update my websites from PHP 7.4 to PHP 8.3.
I've installed PHP 8.3 through the EasyApache 4 interface and it is running, but I can't get the sodium extension running. Sodium is loaded and running with PHP 7.4.
I tried installing with yum and I'm getting a version conflict between libsodium 1.0.18 and 1.0.16 with imunify360.
Does anyone have any thoughts?
Here is the output from yum:
=============================
$ yum install ea-php83-php-sodium
Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
* EA4: 185.125.185.32
* cpanel-addons-production-feed: 185.125.185.32
* cpanel-plugins: 185.125.185.32
Resolving Dependencies
--> Running transaction check
---> Package ea-php83-php-sodium.x86_64 0:8.3.10-1.2.1.cpanel will be installed
--> Processing Dependency: libsodium >= 1.0.18 for package: ea-php83-php-sodium-8.3.10-1.2.1.cpanel.x86_64
--> Finished Dependency Resolution
Error: Package: ea-php83-php-sodium-8.3.10-1.2.1.cpanel.x86_64 (EA4)
Requires: libsodium >= 1.0.18
Installed: libsodium-1.0.16-1.el7.x86_64 (@imunify360)
libsodium = 1.0.16-1.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
=============================
I also tried with PHP 8.0 thinking maybe it would use the older version of libsodium, but I get the same issue.
Thanks!
Ed
-
Hey there! It sounds like you have the Imunify360 PHP packages on the system that are causing the conflict. You can always manually remove just that package with "rpm -e --nodeps libsodium-1.0.16-1" and then install the ea- version of the package, and I would expect that to work well.
0 -
Thanks for the quick suggestion! My hosting company jumped on this, as well, and got sodium running before I could try this out.
0 -
Even better!
0
Please sign in to leave a comment.
Comments
3 comments