On a CentOS 7.3 machine running PHP 5.6 I have installed and configured the MS SQL driver for PDO, yet it is not available to PHP.
See that the driver is properly installed and configured:
$ yum list php56w-mssql
Installed Packages
php56w-mssql.x86_64 5.6.30-1.w7 @webtatic
$ cat /etc/php.d/mssql.ini
; Enable mssql extension module
extension=mssql.so
However, PHP doesn't recognize it:
$ php -i | grep 'PDO drivers'
PDO drivers => dblib, mysql, sqlite
How might I troubleshoot this?
Unfortunately I was unable to get the MS SQL extension to work properly. However, PHP can connect to MS SQL via ODBC:
And then in PHP:
Be sure to specify MARS Connection, otherwise the connection will be limited on only a single pending request.