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.2.8 32bit & 64bit) Aestan Tray Menu 3.2.4.7
<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.

------------------------------------------------------------------------------------------------------------
Wampserver 3.2.9 32 bit - Apache 2.4.53 - PHP 8.1.5…5.6.40 - MySQL 5.7.38 - MariaDB 10.5.13/10.6.5
Wampserver 3.2.9 64 bit - Apache 2.4.53 - PHP 8.1.5…5.6.40 - MySQL 5.7.38/8.0.29 - MariaDB 10.5.15/10.7.3
PhPMyadmin 5.1.3 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote


Sorry, only registered users may post in this forum.