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

I am having difficulties getting the SQL Server extension to work with PHP on Windows Server. The installation went fine and I'm able to load phpinfo through the browser. However, when I enable php_sqlsrv_54_ts.dll, it throws a 500 - Internal server error. There are no errors logged to the PHP log.

Here are the steps I've performed:

Enabled extensions

Disabled extensions

System: Windows Server 2008 R2 Standard Edition SP1 x64

PHP: Version 5.4.10 (Thread Safety enabled)

Server API: CGI/FastCGI

Resources I've tried:

* I have not yet tried the Web Platform Installer as I've read that it may corrupt the IIS installation.

share|improve this question
up vote 0 down vote accepted

Turns out I had downloaded and installed VC9 x86 Thread Safe. After I removed it and tried VC9 x86 Non Thread Safe. I also needed to download SQL Server 2012 Native Client as it contains 11.0 drivers.

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.