Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I install PHP PDO Mssql Driver on Centos?

share|improve this question

migrated from Jan 23 '11 at 18:45

This question came from our site for professional and enthusiast programmers.

yum install php-pdo

there is also a php 5.3 version, if you have that version of php installed php53-pdo, but don't install that otherwise as the upgrade breaks loads of stuff.

there is a php-mssql module as well which might be handy.

share|improve this answer

php has a sybase driver that can connect mssql server, also you can use odbc to connect.

modules are php5-sybase and php5-odbc

in ubuntu I can install them using

 sudo apt-get install php5-odbc php5-sybase 

in red-hat it should alike, using yum.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.