Linxu PHP connection to SQL Server

Source: Internet
Author: User
Tags php source code
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.