0

I am facing an error with PHP 7.2:

The mysqli extension is missing. Please check your PHP configuration. See [a@doc/html/faq.html#faqmysql@documentation]our documentation for more information.

Does anybody know how to fix this?

I got PHP 7.2 and I have in the php.ini file: extension=mysqli.

Isaac Bennetch
  • 11,830
  • 2
  • 32
  • 43

6 Answers6

0

You can check this question on SO. There are other solution. Try out which works for you.

The mysqli extension is missing. Please check your PHP configuration

nXn
  • 904
  • 6
  • 13
0

I had this issue recently where I have PHP 7.2 and I have in the php.ini file: extension=mysqli. uncommented and the extension was in the ext/ folder.

The issue was that I had uncommented another line: Default Value: -1 (Unlimited)

I am not sure why this caused an issue with the mysqli extension, but it did and it took me a long time to debug. Someone else smarter than me might be able to provide an answer.

Most people will probably solve the issue by making sure the mysqli extension is uncommented in php.ini and available in the ext/ folder.

Colin Gell
  • 372
  • 1
  • 13
0

For Windows:
Go to the php.ini file, search for "extension=msqli".
Then beneath the above line is a path indicating where the extension is gotten from in your C:\ drive. Now you can either change this to ".so" or ".dll" depending on what you have in your PHP extension folder.

jasie
  • 2,192
  • 10
  • 39
  • 54
0

First of all Sorry if it is too late to help and for my bad english writting : maybe this will work for you if none of the other given solutions did not work , so try this one :

in your httpd.conf ( apache configuration file ) , find out the line that shows the PHPinitDir , it may looks like this :

PHPIniDir "C:\Program Files\PHP\\"

in this line , try to remove the last backslash so that it becomes like this :

PHPIniDir "C:\Program Files\PHP"

lastly restart apache server so that it updates this new config ...

Hopes it helps

Thank you and Good luck

Krzysztof Madej
  • 32,704
  • 10
  • 78
  • 107
0

in my case it fixed by deleting browser cookie!

-1

Try the below steps. This should solve your problem.

In file php.ini find the link that says extension=mysqli.

Replace by: extension="C:\php\ext\php_mysqli.dll".

Restart apache.

nXn
  • 904
  • 6
  • 13