Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: nabtn on March 11, 2023, 04:45:57 PM

Title: Unable to load dynamic library 'sodium.so'
Post by: nabtn 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


Title: Re: Unable to load dynamic library 'sodium.so'
Post by: overseer 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
Title: Re: Unable to load dynamic library 'sodium.so'
Post by: nabtn on March 12, 2023, 10:18:23 AM
No it's not enabled  :(
Title: Re: Unable to load dynamic library 'sodium.so'
Post by: nabtn 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
Title: Re: Unable to load dynamic library 'sodium.so'
Post by: overseer 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!