Is MySQLi Extension Enabled in This PHP Configuration

How can I enable the MySQLi extension in PHP 7?

I got the solution. I am able to enable MySQLi extension in php.ini. I just uncommented this line in php.ini:

extension=php_mysqli.dll

Now MySQLi is working well. Here is the php.ini file path in an Apache 2, PHP 7, and Ubuntu 14.04 environment:

/etc/php/7.0/apache2/php.ini

By default, the MySQLi extension is disabled in PHP 7.

The mysqli extension is missing. Please check your PHP configuration , even though file is available in defined path

In your php.ini file set the extension_dir to C:/Program Files (x86)/php/ext then change the extension values to simply the name of the extension.

extension_dir = "C:/Program Files (x86)/php/ext"

extension=php_curl.dll
extension=php_gd2.dll
extension=php_intl.dll
extension=php_mbstring.dll
extension=php_mysqli.dll
extension=php_openssl.dll
extension=php_soap.dll
extension=php_xmlrpc.dll


Related Topics



Leave a reply



Submit