EasyApache4 Does Not Provision Sodium & PHP Does Not Load It

Mind on the Net

Registered
Aug 9, 2022
4
0
1
Eu
cPanel Access Level
Root Administrator
Im trying to add PHP's sodium (libsodium) extension with EasyApache. When I select it as an extension and try to provision, EA4 does not show any package changes in the summary screen and therefore does not provision anything. (Button is grayed out).

I thought this is because libsodium is included in PHP 7.4+ and I have 7.4 and 8, but when I check the loaded extensions of PHP sodium does not appear in the list. It shows PHP being compiled with '--with-sodium=shared' flag, but sodium does not show in the list of loaded extensions, therefore any sodium function errors out if used in a script.

In another server where EA4 works, I installed sodium and I see that EA4 drops a 20-sodium.ini file that loads the sodium extension into 20-sodium.ini /opt/cpanel/ea-php74/root/etc/php.d folder. In this server this ini file does not exist, and even if I manually create it, sodium still does not load.

Situation doesn't change even if i transfer entire EA4 configuration from the server where it works.
 

Mind on the Net

Registered
Aug 9, 2022
4
0
1
Eu
cPanel Access Level
Root Administrator
Yes, installing the epel repo and sodium yum packages as I was told in the support ticket I opened fixed it. Apparently you still have to do that manually even if you are using PHP 7.4+.