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

Trying to setup nginx and php on my Windows machine, but every time I try to start php-cgi.exe I get a system error.

The program can't start because MSVCR110.dll is missing from your computer. Try reinstalling the problem to fix this problem.

I'm using Wnmp to start my programs and downloaded the latest PHP 5.5 to it (32bit version).

I have Visual C++ 2008 x86, C++ 2010 x64 and C++ 2010 x86.

What am I missing and why can't PHP list programs required for PHP (cgi) to work?

share|improve this question

closed as off topic by Sven, Ward, Falcon Momot, mdpc, Jenny D Jun 22 '13 at 20:23

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

How the heck could this be off topic? I'd really like to know. This is a bonafide server issue for me. – hopeseekr Jun 26 '14 at 17:05
yea that's stupid. this is a real issue and the fix below worked for me – Andy Brudtkuhl Sep 24 '14 at 16:43
Perhaps this will be better suited to StackOverflow as it is about programming tools. – Jimbo Dec 4 '14 at 12:01
I hate it when the moderators mark stuff as off-topic. I got here via google by typing in an exact phrase. It is not off-topic for me, and it is the only place I found my answer after much searching. – LonnieBest Jan 19 '15 at 23:54
up vote 63 down vote accepted

You need VS C++ 2012. Go here:

You need to download the x86 version if you install the 64bit version it will give the same error.

share|improve this answer
@MuhammadGelbana Yes, it relies on some 32-bit functions. – Nathan C Sep 3 '13 at 0:51
I needed both, well I installed the 32bit version first and it failed as per ops error message and then I installed the 64 bit version and all was well. This is on Windows Server 2012 data center using PHP 5.5 (5.5.4) – rism Oct 9 '13 at 5:05
Thanks! That worked! – Dimitris Damilos Nov 6 '13 at 11:08
it worked, thanks – Apperside Jan 22 '14 at 20:51
All the other pages were suggesting I needed 2010, but finally I came across your answer. Very Thankful! Like rism, I had to install both 32bit and 64bit before it worked. – LonnieBest Jan 19 '15 at 23:49

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