I ran the below command:
php xampp\htdocs\moodle\admin\cli\purge_caches.php
The output is some “Deprecated” messages.
The messages ended by this final one:
The site administrator should verify server configuration
PHP has not been properly configured with the MySQLi extension for it to communicate with MySQL.
Please check your php.ini file or recompile PHP.
It seems the problem is related to admin access. But I don’t know how to solve it from command line and without logging into LMS as admin.
Thanks