I’m currently setting up a PHP environment on WampServer and having issues with the mysqli extension not loading, despite being enabled in all the php.ini file. I need mysqli for database operations in my PHP applications but can’t get it to appear in the list of loaded modules when running php -m
.
WampServer Version: 3.3.5
PHP Version: 8.3.6
Operating System: Windows 10
Are there any additional steps I should take to troubleshoot why mysqli isn’t loading?
Could there be an issue with how PHP is set up on WampServer that prevents the extension from being recognized?
Checked php.ini
Configuration:
Ensured the mysqli extension is uncommented in php.ini
.
The path in the php.ini
used is C:wamp64binphpphp8.3.6php.ini
.
Restarted WampServer:
Used the ‘Restart All Services’ option in the WampServer tray icon.
Verified With phpinfo()
and Command Line:
The phpinfo()
output shows that the configuration file (php.ini) has no value.
Running php -m
from the command line does not list mysqli.
Kenzo Prouvèze is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.