Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php mysqli在windows 7中不工作_Php_Mysql_Wordpress_Mysqli_Phpmyadmin - Fatal编程技术网

Php mysqli在windows 7中不工作

Php mysqli在windows 7中不工作,php,mysql,wordpress,mysqli,phpmyadmin,Php,Mysql,Wordpress,Mysqli,Phpmyadmin,我在web服务器上遇到以下错误: 您的PHP安装似乎缺少WordPress所需的MySQL扩展 我已经在php.ini中声明了它 ; extension=modulename.extension ; ; For example, on Windows: ; ; extension=msql.dll ; ; ... or under UNIX: ; ; extension=msql.so ; ; ... or with a path: ; ; extension=/path/to/

我在web服务器上遇到以下错误: 您的PHP安装似乎缺少WordPress所需的MySQL扩展

我已经在php.ini中声明了它

;   extension=modulename.extension
;
; For example, on Windows:
;
;   extension=msql.dll
;
; ... or under UNIX:
;
;   extension=msql.so
;
; ... or with a path:
;
;   extension=/path/to/extension/msql.so
;
; If you only provide the name of the extension, PHP will look for it in its
; default extension directory.
;
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
;
extension=php_mysqli.dll

extension_dir = "C:\Program Files\PHP\v5.5\ext\"
该文件位于以下文件夹中:
C:\ProgramFiles\PHP\v5.5\ext\PHP\u mysqli.dll

在目录phpMyAdmin中,有一个名为config.inc.php的文件,文件中有一行:

$cfg['Servers'][$i]['extension'] = 'mysqli';
我知道与我登录的用户具有该文件夹的读取权限: C:\Program Files\PHP\v5.5\ext 我不确定如何查看web服务器使用的用户,以确保该用户具有读写操作

运行:

Win7 Pro 32bit
PHP 5.5.3
MySQL 5.5.35
IIS 7.5.7600.16385
PHPMyAdmin 4.4.6

有人知道如何解决这个问题吗?

如果这是IIS的默认安装,那么用户很可能就是服务。当您查看“代码> C:\\程序文件\ php\v5.5\Ext/Cuth>的安全属性时,可以考虑添加<代码>每个人<代码> > <代码> Read <代码>,像WordPress要求MySQL扩展,而不是myQuix:HTTP服务器是什么?IIS或Apache?我发现我遇到了一个错误,错误是:phpMyAdmin-error无法启动会话而没有错误,请检查PHP和/或Web服务器日志文件中给出的错误,并正确配置PHP安装。还要确保浏览器中启用了Cookie。我已在web浏览器中检查了Cookie。我没有看到任何与phpmyadmin或我的域名有关的内容。我已经确认Firefox会接受cookies。我在php.ini:session.save_path=C:\Windows\temp中添加了网络服务(与我的web服务器一起运行的用户),并且我的用户Windows在完全控制下运行。