• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue No sodium extension for PHP 7.4.30 FPM

jasmines

New Pleskian
Server operating system version
Ubuntu 18.04.6 LTS
Plesk version and microupdate number
Plesk Obsidian Version 18.0.44 Update #2
I'm running Plesk Obsidian Version 18.0.44 Update #2 on Ubuntu 18.04.6 LTS

In /admin/php-handler/modules/id/plesk-php74-fpm I can't see sodium checkbox.

I see that plesk-php74 replaces plesk-php74-sodium (<< 7.4.30) but even a reinstall of plesk-php74 won't show the wanted extension in the above list.

Can anyone help?
 
Sodium is now compiled in PHP statically, not as a module. You can check this with the command:

# php -m

or with phpinfo()
 
That may be so, but some webapps seem to rely on the dynamic lib. Since last night my nextcloud installation started throwing this error:
"/nextcloud/index.php/login","message":"PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /opt/plesk/php/7.4/lib/php/modules/sodium.so (/opt/plesk/php/7.4/lib/php/modules/sodium.so: cannot open shared object file: No such file or directory), /opt/plesk/php/7.4/lib/php/modules/sodium.so.so"

Downgrading to the outdated 7.3 PHP version provided a temporary fix
 
That may be so, but some webapps seem to rely on the dynamic lib. Since last night my nextcloud installation started throwing this error:
"/nextcloud/index.php/login","message":"PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /opt/plesk/php/7.4/lib/php/modules/sodium.so (/opt/plesk/php/7.4/lib/php/modules/sodium.so: cannot open shared object file: No such file or directory), /opt/plesk/php/7.4/lib/php/modules/sodium.so.so"

Downgrading to the outdated 7.3 PHP version provided a temporary fix
I think you have to check that file /opt/plesk/php/7.4/etc/php.d/sodium.ini still exists or record extension=sodium.so somewhere in PHP settings.
 
Same issue here. Ever since this morning I'm getting that error reported - but when I open the page myself everything seems fine.
 
Hi @IgorG
I have the same issue with PHP 7.4, PHP 8.0 and PHP 8.1 (I know that php is now compiled with the --with-sodium flag).
De-commenting the ;extension=sodium => extension=sodium raises an error in PHP saying that it can't find the extension). The sodium.ini has been delete from php module (for version 7.4 to 8.1) and all it (sodium.ini) does is adding extension=sodium.so (which does not exists anymore) anyway.
Where can I follow the bug report PPS-13031.
Thanks in advance and have a good day.
 
Is this issue related to the missing Argon2i and Argon2id password hashing since PHP 7.4.30 or latest PHP 8.1 shipped with Plesk?
We have warnings like
Code:
TYPO3\\CMS\\Core\\Crypto\\PasswordHashing\\Argon2iPasswordHash is not available
in our TYPO3 10.4 and 11.5 instances.
Thanks
 
on phpinfo provided by plesk php verion 7.4.30 (sodium function Not working)
i have module sodium version 1.0.11
on another plesk with the old php package version 7.4.28 (sodium function working)
i have module sodium version 1.0.16 (more recent on this previous version )

all modern symfony (and laravel i think) hash validation for authentification aren’t working
 
On my server (Ubuntu 22.04 LTS and Plesk Obsidian Version 18.0.44 Update 2) there are none of the mentioned sodium.ini files and I get the error that other people are talking about.
 
Is this issue related to the missing Argon2i and Argon2id password hashing since PHP 7.4.30 or latest PHP 8.1 shipped with Plesk?
We have warnings like
Code:
TYPO3\\CMS\\Core\\Crypto\\PasswordHashing\\Argon2iPasswordHash is not available
in our TYPO3 10.4 and 11.5 instances.
Thanks

We experienced the same issue. We had to upgrade our Plesk instance from Debian 9 to 10 in order to use Argon2i again.
 
7.4.30 FPM on Plesk Obsidian v18.0.44_build1800220608.16 os_Ubuntu 20.04 is still throwing

yii\base\ErrorException: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /opt/plesk/php/7.4/lib/php/modules/sodium.so (/opt/plesk/php/7.4/lib/php/modules/sodium.so: cannot open shared object file: No such file or directory), /opt/plesk/php/7.4/lib/php/modules/sodium.so.so (/opt/plesk/php/7.4/lib/php/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown:0
 
We experienced the same issue. We had to upgrade our Plesk instance from Debian 9 to 10 in order to use Argon2i again.
Same problem here. But on a server that is still using v18.0.43 Update #1 (but on Debian 11.3) it works although the site also uses PHP 7.4.30... The libsodium version there is 1.0.18, while on the one with v18.0.44 (Debian 9.13) it shows 1.0.11.
 
Back
Top