无法在Windows Server 2012 R2上安装ODBC驱动程序11

时间:2016-02-12 15:41:45

标签: php iis sql-server-2012 odbc windows-server-2012-r2

我试图在Windows Server 2012 R2 VM上安装php应用程序(TestRail),并且在使用SQL驱动程序时遇到了一些麻烦。我开始从光盘安装SQL Server 2012并尝试从Web平台安装程序安装PHP,尽管在IIS中针对SQL Server的PHP v5.6的Microsoft Drivers 3.2下载仍然失败,并指出缺少依赖项是罪魁祸首。浏览日志,我看到了:

DownloadManager Information: 0 : Moving downloaded file 'C:\Users\Administrator\AppData\Local\Temp\2\tmpC703.tmp' to: C:\Users\Administrator\AppData\Local\Microsoft\Web Platform Installer\installers\MSODBC11\08A089BA4D1F22BB46A4553E20095A271C230D2E\msodbcsql.msi
DownloadManager Error: 0 : Signature verification failed on downloaded file. URL: http://go.microsoft.com/fwlink/?LinkID=533081. File location: C:\Users\Administrator\AppData\Local\Microsoft\Web Platform Installer\installers\MSODBC11\08A089BA4D1F22BB46A4553E20095A271C230D2E\msodbcsql.msi. File size: 3768 kb
DownloadManager Information: 0 : Product Microsoft® ODBC Driver 11 for SQL Server® done install completed
DownloadManager Information: 0 : Increasing current install to 2
DownloadManager Warning: 0 : Dependency failed for product 'Microsoft Drivers 3.2 for PHP v5.6 for SQL Server in IIS'. Skipping download.
DownloadManager Information: 0 : Product Microsoft Drivers 3.2 for PHP v5.6 for SQL Server in IIS had a dependency fail. Increasing install product to 3
DownloadManager Information: 0 : Product: MSODBC11, Install Status: InstallCompleted-Failure, Install Time: 00:00:00
DownloadManager Information: 0 : Product: SQLDriverPHP56IIS, Install Status: DependencyFailed-None, Install Time: 00:00:00

看起来依赖是ODBC驱动程序11,由于签名验证而无法安装,因此我决定手动抓取所有内容。我得到了3.2 php驱动程序并将它们放在ext目录中并在php.ini中注册了所有这些,但当我尝试运行msodbcsql.msi包时,我遇到了Web平台安装程序的问题,我一直收到错误安装失败,因为我的操作系统不支持它。但是,Microsoft网站上的下载页面将Server 2012列为兼容,当我运行sqlsrv_errors()时,我得到:

[message] => This extension requires the Microsoft ODBC Driver 11 for SQL Server. Access the following URL to download the ODBC Driver 11 for SQL Server for x86: http://go.microsoft.com/fwlink/?LinkId=163712 )

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified [message] => [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified ) ) 

所以它看起来仍然在寻找那个ODBC驱动程序,但是当我尝试从错误消息中指定的链接下载它时,它告诉我它与我的操作系统不兼容,当我尝试使用WPI失败的签名验证。这里我唯一看到的其他帖子建议抓取x64版本而不是x86版本,但这不是页面上的选项,Web平台安装程序甚至会尝试安装不兼容的驱动程序似乎很奇怪。如何安装此驱动程序?

1 个答案:

答案 0 :(得分:0)

嘿,从https://www.microsoft.com/en-us/download/details.aspx?id=36434

获取更新的ODBC驱动程序