- Update CentOS with the following command
yum check-update
yum update
- Install the necessary packages
yum install httpd httpd-tools php php-common php-cli php-odbc php-pdo unixODBC unixODBC-devel
You can sustitute httpd (apache) with nginx or any other web server of your choice.
- Install and Configure FreeTDS
yum install epel-release
yum check-update
yum install freetds freetds-devel
To install dblib install php70w-mssql
https://stackoverflow.com/questions/21315354/pdo-dblib-on-centos-6-x