您的PHP安装似乎缺少Windows Server 2008 R2上WordPress所需的MySQL扩展


Your PHP installation appears to be missing the MySQL extension which is required by WordPress on Windows Server 2008 R2

我正试图在安装了Apache web server 2.4的windows server 2008 R2上远程启动wordpress(我在wamp上工作过),但端口号不是80是8888(我听说wordpress没有在8888端口上运行,可能我错了)。当我通过浏览器启动它时,我收到以下消息"你的PHP安装似乎缺少WordPress所需的MySQL扩展。"。Wamp内置了MySQL,但apache web server 2.4没有,我检查了PHP.ini上的PHP_MySQL.dll,但没有被注释,我在命令提示符下查询了MySQL,结果很好。有什么建议可以解决这个问题吗?

我在windows安装时遇到了这样的问题,原因就是这样。

如果php.ini中没有取消注释extension_dir,它将不会默认为"ext"目录(windows中所有扩展dll都位于该目录)。

因此,即使是未注释的扩展也会被忽略(在phpinfo()中也看不到它们)http://php.net/manual/en/install.windows.extensions.php