Author Topic: Unable to load dynamic library 'sodium.so'  (Read 1698 times)

0 Members and 2 Guests are viewing this topic.

Offline
*
Unable to load dynamic library 'sodium.so'
« on: March 11, 2023, 04:45:57 PM »
Hello

I've been struggling with this error for a year now lol

Code: [Select]
Message: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20190902/sodium.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/sodium.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20190902/sodium.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20190902/sodium.so.so: cannot open shared object file: No such file or directory))
I'm using php7.4 for all my sites



Offline
*****
Re: Unable to load dynamic library 'sodium.so'
« Reply #1 on: March 11, 2023, 05:12:02 PM »
Is it enabled in the build config for php74?
I have sodium.so in 3 places on a CWP server:
Code: [Select]
/opt/alt/php-fpm81/usr/lib/php/extensions/no-debug-non-zts-20210902/sodium.so
/usr/local/lib/php/extensions/no-debug-non-zts-20180731/sodium.so
/usr/local/lib/php/extensions/no-debug-non-zts-20190902/sodium.so

Offline
*
Re: Unable to load dynamic library 'sodium.so'
« Reply #2 on: March 12, 2023, 10:18:23 AM »
No it's not enabled  :(

Offline
*
Re: Unable to load dynamic library 'sodium.so'
« Reply #3 on: March 12, 2023, 12:03:49 PM »
I did a
Code: [Select]
yum update -y which broke everything.. i recompiled  php cried for few hours because apache won't start now everything is working but apache still won't i'm using
Code: [Select]
Nginx & Varnish & Apache i've gone mad ?

to answer this thread recompiling php fixed it

Offline
*****
Re: Unable to load dynamic library 'sodium.so'
« Reply #4 on: March 13, 2023, 02:49:04 AM »
...recompiling php fixed it
I think that's the #1 solution for CWP PHP-related problems. For apache problems, rebuild hosts. For mail server problems, rebuild the servers... kind of the nuclear option if you think about it, but it generally works!