Today, Linux yum is not available, with a third-party yum Source, and Yum installs it and it takes a long time to update the header.
Remember to install the specified installation directory with the--with-php-config=path command.
CentOS 6 Install php pdo_dblib extension
October 14TH, 2014 | CENTOS 6 installation php pdo_dblib extension commented off
First step: Install FreeTDS and related libraries first
Yum Install freetds freetds-develyum install Php-develyum install Gccyum install RE2C
Step two: Download PHP source code and compile Php_dblib extension
wget Http://cn2.php.net/get/php-5.4.32.tar.bz2/from/this/mirrortar JXVF PHP-5.4.32.TAR.BZ2CD php-5.4.32/ext/pdo_ Dblib/phpize./configure--with-libdir=lib64makemake Install
Step three: Load PHP's Sybase extensions
Cd/etc/php.dvim pdo_dblib.iniextension=pdo_dblib.so
Linxu PHP connection to SQL Server