Why XAMPP does not support Libsodium?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Why XAMPP does not support Libsodium?

Postby saud » 07. January 2020 04:05

I even enabled the extension in php.ini and still does not want to work.
saud
 
Posts: 2
Joined: 07. January 2020 04:03
XAMPP version: 4
Operating System: Windows

Re: Why XAMPP does not support Libsodium?

Postby Altrea » 07. January 2020 06:42

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?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Why XAMPP does not support Libsodium?

Postby saud » 07. January 2020 08:15

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.
saud
 
Posts: 2
Joined: 07. January 2020 04:03
XAMPP version: 4
Operating System: Windows

Re: Why XAMPP does not support Libsodium?

Postby scribbly » 23. January 2020 12:41

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.
scribbly
 
Posts: 1
Joined: 23. January 2020 12:29
XAMPP version: 7.3.2
Operating System: Win10

Re: Why XAMPP does not support Libsodium?

Postby gsmith » 29. January 2020 18:08

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"
gsmith
 
Posts: 278
Joined: 29. November 2013 18:04
Location: San Diego
XAMPP version: 0.0.0
Operating System: Win 10/2012R VS 14,15,16

Re: Why XAMPP does not support Libsodium?

Postby OzPenguin » 15. June 2020 04:51

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.
OzPenguin
 
Posts: 1
Joined: 15. June 2020 04:43
XAMPP version: 7.4.2
Operating System: Windows 10

Re: Why XAMPP does not support Libsodium?

Postby sex_jam » 02. July 2021 08:57

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
sex_jam
 
Posts: 1
Joined: 02. July 2021 08:52
XAMPP version: v3.3.0
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 140 guests