如何在 zend 服务器上安装 sqlsrv php 驱动程序?
我从 下载了“Microsoft Drivers for PHP for SQL Server (V 2.0.1)”。 FamilyID=80e44913-24b4-4113-8807-caae6cf2ca05" rel="nofollow noreferrer">Microsoft 网站 并将其移至 php_sqlsrv_5.3_nts_vc6.dll 到 "C:\Program “php5.dll” 旁边的 Files\Zend\ZendServer\lib\phpext\"。
然后转到 Zend 服务器面板“服务器设置 > 扩展”将其打开。重新启动 php 后,Zend Server 提示:“系统无法加载此扩展”!
我应该怎么办?
PS:在 Apache 上配置 Zend
编辑:我也尝试过“php_sqlsrv_5.3_ntc_vc9.dll”,但也失败了!
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".
then go to Zend server Panel "Server Setup > Extensions" to turn it on. after restarting php, Zend Server says: "The system could not load this extension"!
What should I do?
P.S: Zend Configured on Apache
edit: I also tried "php_sqlsrv_5.3_ntc_vc9.dll" but it failed either!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我注意到 php_error.log 中的一些内容:
构建 ID 相同,但 VC 版本不同。
因为我把 VC6 和 VC9 一起放在 "phpext" 文件夹中。 Zend 无法加载正确的扩展。虽然我删除了 VC6 dll,但在 Zend Panel 中,即使重新启动 php.ini,错误消息仍然存在。
我停止了服务器,删除了 VC9,再次启动服务器,将 VC9 放入“phpext”文件夹中,从 Zend 面板将其打开,然后重新启动 php。
现在一切都好了!
特别感谢凯文:)
I noticed something in php_error.log:
Build IDs are the same but VC version are different.
because I put both VC6 and VC9 together in "phpext" folder. Zend could not load the correct extension. while I removed VC6 dll, in Zend Panel the error message was still there, even by restarting the php.
I stopped server, remove VC9, start server again, put VC9 in "phpext" folder, turn it on from Zend Panel, and restart php.
everything is now ok!
Special Thanks to Kevin :)