缺少 mysqli 扩展。请检查您的 PHP 配置,即使文件在定义的路径中可用
The mysqli extension is missing. Please check your PHP configuration , even though file is available in defined path
我已按照 https://www.wikihow.com/Install-phpMyAdmin-on-Your-Windows-PC 中提到的所有步骤进行操作并检查了文件路径,这些都是正确的。
即使在那之后我仍然收到错误 "The mysqli extension is missing. Please check your PHP configuration"
我已确认我的扩展没有注释,并且提供了正确的路径。
这是我在 httpd.conf
中添加的行
LoadModule php7_module "C:/Program Files (x86)/php/php7apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "C:/Program Files (x86)/php/"
这是我的 php.ini 文件。
extension=C:/Program Files (x86)/php/ext/php_curl.dll
extension=C:/Program Files (x86)/php/ext/php_gd2.dll
extension=C:/Program Files (x86)/php/ext/php_intl.dll
extension=C:/Program Files (x86)/php/ext/php_mbstring.dll
extension=C:/Program Files (x86)/php/ext/php_mysqli.dll
extension=C:/Program Files (x86)/php/ext/php_openssl.dll
extension=C:/Program Files (x86)/php/ext/php_soap.dll
extension=C:/Program Files (x86)/php/ext/php_xmlrpc.dll
提前致谢
在您的 php.ini 文件中,将 extension_dir
设置为 C:/Program Files (x86)/php/ext
,然后将扩展名更改为简单的扩展名。
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
我已按照 https://www.wikihow.com/Install-phpMyAdmin-on-Your-Windows-PC 中提到的所有步骤进行操作并检查了文件路径,这些都是正确的。
即使在那之后我仍然收到错误 "The mysqli extension is missing. Please check your PHP configuration"
我已确认我的扩展没有注释,并且提供了正确的路径。
这是我在 httpd.conf
中添加的行LoadModule php7_module "C:/Program Files (x86)/php/php7apache2_4.dll"
AddHandler application/x-httpd-php .php
PHPIniDir "C:/Program Files (x86)/php/"
这是我的 php.ini 文件。
extension=C:/Program Files (x86)/php/ext/php_curl.dll
extension=C:/Program Files (x86)/php/ext/php_gd2.dll
extension=C:/Program Files (x86)/php/ext/php_intl.dll
extension=C:/Program Files (x86)/php/ext/php_mbstring.dll
extension=C:/Program Files (x86)/php/ext/php_mysqli.dll
extension=C:/Program Files (x86)/php/ext/php_openssl.dll
extension=C:/Program Files (x86)/php/ext/php_soap.dll
extension=C:/Program Files (x86)/php/ext/php_xmlrpc.dll
提前致谢
在您的 php.ini 文件中,将 extension_dir
设置为 C:/Program Files (x86)/php/ext
,然后将扩展名更改为简单的扩展名。
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