Php Mysqli Extension Is Missing Windows System32
Posted By admin On 26.01.20I'm at a loss. I'm on WIndows 7 and have installed both Apache 2.2.21 and PHP 5.2.17. I can not enable the mysql module. Is there a known issue on Windows 7?
When I click 'phpMyAdmin', it gives me an error, The mysqli extension is missing. Please check your PHP configuration. See our documentation for more information.
I've run php --info and see the following:
I've also set my extension dir inside php.ini:
I've also added an entry to my httpd.conf file:
After installing PHP and a web server on Windows, you will probably want to install some extensions for added functionality. You can choose which extensions you would like to load when PHP starts by modifying your php.ini. You can also load a module dynamically in your script using dl(). The DLLs for PHP extensions are prefixed with php_. For Windows it will be helpful for you: link You need to put php_mysqli.dll to your ext folder and then edit php.ini. 2) php.ini-development and php.ini-produtcion is a EXAMPLE files. Rename php.ini-production to php.ini – bullet28 Jul 8 '14 at 18:30. I > used the PHP Windows installer (VC6) and connected up to my existing > Apache installation just fine. Ran a test.php script and Apache/PHP > are playing nice - everything works. > > When I installed PHP, I selected the MSSQL and MySQL extensions. Register the php_mysqli.dll file in Windows The Regsvr32 tool is a command-line utility that can be used for registering and un-registering OLE controls like DLL and ActiveX (OCX) controls in the Windows operating system.
And yes, inside my php.ini file I've enabled the php_mysql extension and restarted my web server.
What am I missing?
5 Answers
Have you tried putting php_mysql.dll in C:windowssystem32 directory? If you place the file there, restart your webserver and the module is loaded, then it could mean an environment variable issue, or an old version of php_mysql.dll is preventing the new one from being loaded properly.
Php Mysqli Example
Have you tried forward slashes here?
Mysqli Extension Is Missing
It worked for me.
Note to any future information seekers, that mysql extension is deprecated in 5.5 and is gone by PHP 7, to be replaced my the mysqli extension.
Did you install MySQL? I remember I had some kind of that problem because I was expecting PHP to load MySQL extension, before installing MySQL to complete my localhost setup. The reason is when you install MySQL it puts some DLLs to system32 dir so then PHP can load it.
You need php-mysql not just php.Installing that should take care of adding the right exgtensions to php. Boys first book of radio.