Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How do I install PHP PDO Mssql Driver on Centos?

share|improve this question

migrated from stackoverflow.com Jan 23 '11 at 18:45

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

2 Answers 2

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

 
discard

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.