Choosing the right PHP version and flavor for Windows and IIS

by Klaus Graefensteiner 1. March 2010 05:06

In order to choose the right PHP runtime binaries you have to answer yourself the following questions:

What version of PHP do I need?

Is it 5.2, 5.3 or 6.0? It depends several things, like what version does your hosting provider support or does an extension that you need exist for the particular PHP version. In my case my hosting provider supports PHP version 5.2 and the Web Platform Installer also installs PHP 5.2 on my local development machine.

What Operating System is PHP running on?

It’s Windows.

What CPU architecture is my computer running?

x86 (32-bit), x64 (64-bit) or IA64)? Web Platform Installer installs the x86 PHP binaries, which run on 32-bit and 64-bit Windows.

What http web server is PHP running under?

If you run on IIS you need the Non-Thread-Safe binaries. (nts).

If you run on Apache you need the Thread-Safe binaries (ts).

I am running on IIS, which means I need the Non-Thread-Safe binaries.

Note: Some extensions (DLLs) like for example the XDebug.dll come in a XDebug_TS.dll flavor and in a XDebug.dll incarnation. The binary without the “_TS” suffix is the Non-Thread-Safe version. The DLL that ends with “_TS” is the Thread-Safe library.

And at last but not least:

What Visual C/C++ Runtime Libraries are the PHP binaries linked against?

At this point, I see you shaking your head, but it is true, PHP also distinguishes the PHP runtime files based on which version of the C-Runtime is being used for linking. The options are VC6 or VC9.

The Web Platform Installer uses the VC6 version because it uses PHP 5.2 and PHP 5.2 only comes in the VC6 flavor. PHP 5.3 has a VC6 edition that is used for Apache and a VC9 compilation that you should use for IIS to gain some performance and stability improvements.

You can find some additional information here:

and here:

This all boils down to…

… the following situation: For downloading PHP 5.2 on IIS (Windows) you are left with two options:  (VC6, notice the nts in the name.) (VC6, notice the nts in the name  – Gets installed by Web Platform Installer)


For more details follow the WIMPinator Chronicles blog post series.

Tags: , , ,

Tips & Tricks | Php | IIS


3/2/2010 12:04:31 AM #


Pingback from

Klaus Graefensteiner’s Blog: Choosing the right PHP version and flavor for Windows and IIS | Development Blog With Code Updates : |

3/2/2010 1:00:34 AM #


Pingback from

Klaus Graefensteiner’s Blog: Choosing the right PHP version and flavor for Windows and IIS | Webs Developer |

3/2/2010 6:28:41 PM #


Let try to post again:

PHP 5.2 has no VC9 version, it is only available as VC6 builds.

NTS can be used for any server using FastCGI as well as CLI. For PHP 5.3, I'd to recommend to use VC9 versions instead of VC6.

For official's apache, VC6 versions have to be used. However there is a VC9 version of apache availabel at

Pierre Germany |

3/3/2010 11:54:20 PM #

Klaus Graefensteiner

Thanks for your feedback. I will update my blog post today and make sure that I get my facts straight.

Klaus Graefensteiner United States |

3/3/2010 11:43:47 PM #


Seems like


Tyrael Hungary |

3/3/2010 11:53:13 PM #

Klaus Graefensteiner

Thanks for the reference. I am always looking for people with the same interest. I just now subscribed to Ted's blog.

Klaus Graefensteiner United States |

12/8/2012 9:35:03 AM #


Pingback from

Trackback Submitter |

8/1/2013 2:00:36 AM #


Pingback from

twitter software |

10/6/2013 5:12:57 AM #


Pingback from

Extended Living Spaces |

Comments are closed

About Klaus Graefensteiner

I like the programming of machines.

Add to Google Reader or Homepage

LinkedIn FacebookTwitter View Klaus Graefensteiner's profile on Technorati
Klaus Graefensteiner

Klaus Graefensteiner
works as Developer In Test and is founder of the PowerShell Unit Testing Framework PSUnit. More...

Open Source Projects

PSUnit is a Unit Testing framwork for PowerShell. It is designed for simplicity and hosted by Codeplex.
BlogShell is The tool for lazy developers who like to automate the composition of blog content during the writing of a blog post. It is hosted by CodePlex.



Powered by:

Creative Commons License

© Copyright 2015, Klaus Graefensteiner.

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Theme design:
This blog theme was designed and is copyrighted 2015 by Klaus Graefensteiner

Page rendered at 5/26/2015 4:32:35 AM (PST Pacific Standard Time UTC DST -7)