简体   繁体   English

如何在zend服务器上安装sqlsrv php驱动程序?

[英]How to install sqlsrv php driver on zend server?

I downloaded "Microsoft Drivers for PHP for SQL Server (V 2.0.1)" from Microsoft website and move it to php_sqlsrv_5.3_nts_vc6.dll to "C:\\Program Files\\Zend\\ZendServer\\lib\\phpext\\" next to "php5.dll" . 我从Microsoft网站下载了“用于SQL Server(V 2.0.1)的PHP的Microsoft驱动程序” ,并将其移动到“ php5 旁边的“ C:\\ Program Files \\ Zend \\ ZendServer \\ lib \\ phpext \\”中,并将其移动到php_sqlsrv_5.3_nts_vc6.dll。 .dll”

then go to Zend server Panel "Server Setup > Extensions" to turn it on. 然后转到Zend服务器面板的“服务器设置>扩展”将其打开。 after restarting php, Zend Server says: "The system could not load this extension"! 重新启动php后,Zend Server会说:“系统无法加载此扩展名”!

What should I do? 我该怎么办?

PS : Zend Configured on Apache PS :在Apache上配置的Zend

edit : I also tried "php_sqlsrv_5.3_ntc_vc9.dll" but it failed either! 编辑 :我也尝试了“ php_sqlsrv_5.3_ntc_vc9.dll”,但是失败了!

在此处输入图片说明

I noticed something in php_error.log: 我在php_error.log中注意到了一些东西:

Module compiled with build ID=API20090626,NTS,VC6
PHP    compiled with build ID=API20090626,NTS,VC9
These options need to match

Build IDs are the same but VC version are different. 内部版本ID相同,但VC版本不同。
because I put both VC6 and VC9 together in "phpext" folder. 因为我将VC6和VC9放在“ phpext”文件夹中。 Zend could not load the correct extension. Zend无法加载正确的扩展名。 while I removed VC6 dll, in Zend Panel the error message was still there, even by restarting the php. 当我删除VC6 dll时,在Zend Panel中,即使重新启动php,错误消息仍然存在。

I stopped server, remove VC9, start server again, put VC9 in "phpext" folder, turn it on from Zend Panel, and restart php. 我停止了服务器,删除了VC9,再次启动服务器,将VC9放在“ phpext”文件夹中,从Zend Panel打开它,然后重新启动php。

everything is now ok! 现在一切都OK了!

Special Thanks to Kevin :) 特别感谢Kevin :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM