New Microsoft ODBC Driver 17 breaks LAMP server

百般思念 提交于 2019-12-11 09:25:53

问题


CentOS 7 Just started using the ODBC Driver 13 and it worked great. A couple of weeks ago version 17 came out and creates conflicts with PHP drivers looking for version 13 with a fresh install.

With a new CentOS 7 install I installed 13 explicitly but when I try to install php_sqlsrv it trys to update msodbcsql to 17 (and fails but I didnt want it anyway).

How can I install version 13 with the correct php driver?

Thanks, Loom


回答1:


Turns out php_sqlsrv 4.3.* (current stable) install will try to update msodbcsql to 17. The problem is php_sqlsrv needs to be 5+ to work with msodbcsql 17 but it is not released as stable.

Ran:

sudo ACCEPT_EULA=Y  yum install msodbcsql-13.1.9.1-1 mssql-tools-14.0.2.0-1

Then added the following to /etc/yum.conf to block updates:

exclude=msodbcsql

Then ran:

sudo /opt/sasbin/prox yum install php-sqlsrv-4.3.0

Everything seems in order now.

-Loom



来源:https://stackoverflow.com/questions/48830366/new-microsoft-odbc-driver-17-breaks-lamp-server

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!