Anil, you jogged my memory (and notes). Here is what I have:
• For Sodium
Copy php/libsodium.dll to apache/bin/
Here are all my notes. Maybe something from my notes will help. I was doing a manual install of XAMPP and Moodle, not using the Moodle installer.
XAMPP on Windows11 (Parallels, 9/26/22)
Did an install of XAMPP 7.4.29
Got the following environment errors: intl, xmlrpc, soap, sodium, opcache, max_input_var.
Edit php.ini via the control panel, config
Removed “;” from extensions intl, xmlrpc, soap, sodium.
Made my normal edits to php variables, including max_input_var.
For Opcache
Add this line at the end of the php.ini file:
zend_extension = C:\xampp\php\ext\php_opcache.dll
In the same php.ini file, remove the ‘;’ from the following settings:
opcache.enable=1
opcache.memory_consumption=64
opcache.max_wasted_percentage=5
opcache.use_cwd=1
Restarted services. The following were still in error: sodium, opcache
For Sodium
Copy php/libsodium.dll to apache/bin/
Restarted services.
To fix the error when quitting xampp control panel app, change properties on xampp-control.ini to Security, “allow everyone full control.”