Page 1 of 1

Why XAMPP does not support Libsodium?

PostPosted: 07. January 2020 04:05
by saud
I even enabled the extension in php.ini and still does not want to work.

Re: Why XAMPP does not support Libsodium?

PostPosted: 07. January 2020 06:42
by Altrea
Not enough information.

What version of XAMPP?
What version of Libsodium?
Source of the libsodium library (if older than PHP 7.2)?
What did you do to "enable the extension in php.ini"?
Did you check if the extension is loaded successfully by phpinfo()?
Did you check the Apache error.log for any errors?

Re: Why XAMPP does not support Libsodium?

PostPosted: 07. January 2020 08:15
by saud
Latest download from the home page, PHP 7.4, sodium not loaded in phpinfo(), tried to enable it by uncommenting ;extension=sodium in php.ini and still not working.

Re: Why XAMPP does not support Libsodium?

PostPosted: 23. January 2020 12:41
by scribbly
I'm having a similar issue.

When I uncomment the following
Code: Select all
;extension=sodium

Apache runs, sets the sockets etc, then exits within a couple of seconds. Error log does not display anything to do with Sodium.

The library exists xampp_7.3.2\php\ext\.

'Sodium' is listed as a module in phpinfo() -- but obviously that's when it's not loaded, as Apache closes when it tries to load.

Re: Why XAMPP does not support Libsodium?

PostPosted: 29. January 2020 18:08
by gsmith
In \xampp\apache\conf\extra\httpd-xampp.conf

Find:
LoadFile "/xampp/php/php7ts.dll"
LoadFile "/xampp/php/libpq.dll"
LoadModule php7_module "/xampp/php/php7apache2_4.dll"


Add:
LoadFile "/xampp/php/libsodium.dll"

Re: Why XAMPP does not support Libsodium?

PostPosted: 15. June 2020 04:51
by OzPenguin
gsmith wrote:In \xampp\apache\conf\extra\httpd-xampp.conf

Find:
LoadFile "/xampp/php/php7ts.dll"
LoadFile "/xampp/php/libpq.dll"
LoadModule php7_module "/xampp/php/php7apache2_4.dll"

Add:
LoadFile "/xampp/php/libsodium.dll"


Fix the issue for my work colleague. But strangely, my PC, which is the same configuration as his, did not require the libsodium to be explicitly specified, it just loaded after I uncommented "extension=sodium" in the php.ini.

Re: Why XAMPP does not support Libsodium?

PostPosted: 02. July 2021 08:57
by sex_jam
I had the same problem with XAMPP v3.3.0 and PHP 8.0.7

I enabled ext=sodium in php.ini, then add in my composer.json "ext-sodium": "*", in require section, but the only thing that made the library work was your suggestion.
txs