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.
sudo phpenmod mysqlisudo service apache2 restart
phpenmod moduleName
enables a module to PHP 7 (restart Apache after thatsudo service apache2 restart
)phpdismod moduleName
disables a module to PHP 7 (restart Apache after thatsudo service apache2 restart
)php -m
lists the loaded modules