Sodium extension
Posted by: ad223 (---.retail.telecomitalia.it)
Date: December 01, 2021 11:12AM

i use last version wamp server 3.2.6 php 7.4.26 i activated sodium in php ini


extension=soap
extension=sockets
extension=sodium

but sodium extesion is no loaded when i use command php -m in cmd i see extension not loaded

C:\Program Files (x86)\PostgreSQL\8.3\bin>php -m
[PHP Modules]
bcmath
bz2
calendar
com_dotnet
Core
ctype
curl
date
dom
exif
fileinfo
filter
gd
gettext
gmp
hash
iconv
imap
intl
json
ldap
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

Options: ReplyQuote
Re: Sodium extension
Posted by: RiggsFolly (Moderator)
Date: December 01, 2021 11:19AM

In WAMPServer, there are 2 seperate php.ini files.

You are using the PHP CLI (Command Line Interface.
You have to manually amend the wamp64/bin/php/php7.4.26/php.ini file if you want to have changes applied to the CLI

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Sodium extension
Posted by: Otomatic (Moderator)
Date: December 01, 2021 01:05PM

Hi,

When you run this command:
> C:\Program Files (x86)\PostgreSQL\8.3\bin>php -m
what is the php.exe executable that is launched ? where is it ?

As RiggsFolly says, if we use PHP in CLI, it is not the extensions and parameters seen in the PHP option of the Wampmanager menu that are used.
Indeed, Wampserver is an Apache, PHP, MySQL server for WEB development, so it is the extensions and parameters of PHP for the use in protocol 'http://' which are indicated.
Extensions and parameters for use in CLI mode cannot be modified by Wampmanager menus, it is necessary to do it "by hand" in the php.ini file of the used PHP CLI version.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.