Msvcr110.dll is missing when a computer error while installing PHP

I am trying to install PHP (5.5). I extracted the zip file to the folder C:\php . And I also set the system variable "Path" to C:\php . But when I open the command line and type php , I get an error message:

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

I checked this DLL in the C:\Windows\System32 directory and I was able to find the file there. How to get rid of this error? Any help would be appreciated.

Thanks at Advance.

+49
php dll
Jan 28 '14 at 4:50
source share
5 answers

You need to install the Visual C ++ libraries: http://www.microsoft.com/en-us/download/details.aspx?id=30679

As mentioned by Stuart McLaughlin, make sure you get the x86 version even if you use a 64-bit OS, because PHP needs 32-bit libraries.

+69
Jan 28 '14 at 5:43
source share

Since a link to this question appears at the very top of the returned results when searching for "php MSVCR110.dll" (not to mention that it got 100k + views and is growing), here are some additional notes that may be found conveniently in your search for MSVCR110 solution .dll mistery ...

The approach described in the answer is valid not only for the case of MSVCR110.dll, but also applies when you are looking for other versions, such as the new MSVCR71.dll , and I updated the answer to cover VC15, even if it was not above.




At http://windows.php.net/ you can read:

VC9, VC11 and VC15

More recent versions of PHP are built with VC9, VC11 or VC15 (respectively, Visual Studio 2008, 2012 or 2015) and include improvements in performance and stability.

VC9 lines require Visual C ++ to be distributed for Visual Studio 2008 Service Pack 1 (SP1) for x86 or x64 is installed.

VC11 lines require Visual C ++ to be distributed for Visual Studio 2012 x86 or x64.

VC15 lines require Visual C ++ to be distributed for Visual Studio 2015 x86 or x64.

this is very important because you need to not only install Visual C ++ Redistributable, but you also need the correct version , and which one is correct depends on which version of PHP you are using. Pay attention to which version of PHP for Windows you are extracting, especially pay attention to this suffix "VCxx", because if you install PHP that requires VC9 with redistributable VC11, it will not work, because the runtime dependency simply does not filled out. Contrary to what some might think, you need exactly the version required, since new versions do not include / provide older ones (so VC11 does not provide VC9, and VC15 does not fulfill the dependencies of VC11 and VC9.

For example, the php-5.6.4-nts-Win32-VC11-x86 archive name tells us that it is not thread safe ( nts ), 32-bit ( x86 ), and it needs Visual Studio 2012 to be distributed ( VC11 ).

Most of the search queries that I really led to redistributing VC9 , so in case of constant malfunctions, if possible, try installing another PHP assembly to make sure that you do not accidentally encounter incompatible versions.




Download links

Note that you are using a 32-bit version of PHP, so you need a 32-bit redistributable (x86), even your Windows version is 64 bits!

  • VC9: Visual C ++ Redistributable for Visual Studio 2008: x86 or x64
  • VC11: Visual C ++ Redistributable for Visual Studio 2012: x86 or x64
  • VC15: Visual C ++ Redistributable for Visual Studio 2015: x86 or x64
+23
Jul 05 '14 at 17:07
source share

I am on a 64-bit system, and I only got this after installing both 32 and 64-bit redistributable versions. I have not tried the 64-bit version on my own due to warnings from other posters about using the 32-bit version (and I'm too lazy to remove the 32-bit version now that I am working on it), so I don’t know the 32-bit version version is needed or not in cases like mine.

+4
Oct. 15 '14 at 17:30
source share

I was missing MSVCR110.dll. Which I fixed. I could run php from the command line, but not from the web server. Then I clicked on php-cgi.exe and it gave me the answer. Failed to download php5.dll file (I downloaded the wrong copy). So, for my 2012 IIS, I reinstalled using php x86 without streaming secure zip code.

0
Aug 21 '14 at 20:41
source share

To determine which version of VC x86 / x64 is needed:

Go to IIS Manager> Handler Mappings> right-click, and then edit the * .php path. In the "Executable (optional)" field, note in which the version of the php-cgi.exe program files is installed.

0
Nov 01 '14 at 16:10
source share



All Articles