Please note that we are unable to provide support for Microsoft SQLSRV; however, you can use the below information to install and connect to a Microsoft SQL Server.
There may be times a user needs to connect with pdo_sqlsrv or SQLSRV. Using the information provided below will allow you to add and use this module.
freetdspackages along with their devel packages
yum install unixODBC unixODBC-devel ea-freetds ea-freetds-libs
Install the PHP SQLSRV extension using PECL for your PHP version.
/usr/bin/ea-php72-pecl install sqlsrv
/usr/bin/ea-php73-pecl install sqlsrv
/usr/bin/ea-php74-pecl install sqlsrv
Install the Microsoft ODBC Driver repository
Finally, install the
ACCEPT_EULA=Y yum -y install msodbcsql17
This will take care of installing the msodbcsql17 module.