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

In all likelihood, I have overlooked a fine print somewhere, so this question may sound stupid, but will clear my doubts.

I spent hours trying to install pdo_sqlsrv PDO driver on Ubuntu 13.04 PHP 5.5.3 server. The attempt was based upon a phpinfo() screen-shot sent to me showing such a driver available and enabled. So, I tried to get it working on a Ubuntu-PHP machine.

I saw pdo_sqlsrv and sqlsrv available when I check with

pecl search sqlsrv

Upon trying to install it (pecl install pdo_sqlsrv), I encountered phpize issue : "cannot find config.m4" (-this issue has a lot of coverage on web, but no clear solution).

However, it later dawned upon me what-if this module is for a Windows based setup and not for a Linux based PHP. Can somebody confirm that and point me to ideal setup for PHP with MSSQL driver enabled.

share|improve this question
up vote 2 down vote accepted

From the documentation for the sqlsrv extension at

The SQLSRV extension is only compatible with PHP running on Windows.

There is the experimental dblib,d.aWM

share|improve this answer
Thanks. Later that day I contacted the engineer who sent me a part of phpinfo() about his set that include the said extension (pd0_sqlsrv). He confessed that it is from a windows-apache-php server. I was ripping my hair apart! I managed to get it working with freetds – anup Mar 21 '14 at 11:27

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.