1

I'm using wampserver 3.2.5 , trying to install package need sodium extension i turned it and checked php.ini it not commented and then restarted all service Soduim extension

But i still have this issue

Missing following extensions: 'sodium'

How to fix this ?

asked Jan 12, 2022 at 9:33

2 Answers 2

3

You probably checked the wrong php.ini there are 2 one for use with Apache and the other for use with the PHP CLI.

First, upgrade to WAMPServer 3.2.7 See The WAMPServer backup repo for that or go to SourceForge if you like. It is always good to keep up to date, the WAMPServer update will not effect the versions of APache/PHP/MySQL/mariaDB etc etc that you have currently got installed and configured

Now all you have to do to activate sodium within the Apache environment is use the wampmanager menus like this

  1. Left click the wampmanager icon in the system area

enter image description here

  1. check the sodium extension, if it does not have a green tick beside it, click the word sodium and that will cause the correct php.ini to be amended and Apache will be restarted automatically.

You should now have the sodium extension loaded.

You can check this by clicking localhost in the menu and then you check the loaded extensions to see if sodium is now listed.

answered Jan 12, 2022 at 12:57
Sign up to request clarification or add additional context in comments.

Comments

3

You need to enable ext-sodium in WAMP Sever.

Open command line and type: php --ini to check the path of the php.ini being used by cli. Open the php.ini file and uncomment the extension=sodium line.

;extension=sodium

to

extension=sodium
answered Apr 26, 2023 at 8:47

1 Comment

thank you. its help. if someone have issue on devcontainer like me. this guide fix the issue. or add this command on postCommand and rebuild container: "postStartCommand": "ed -i 's/;extension=sodium/extension=sodium/' /usr/local/php/8.2.22/ini/php.ini"

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.