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.
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.