Search code examples
phpwindowseasyphpampps

PHP 7 not working on windows 10


I have problem with getting php 7 work on windows 10. Wierd thing is that it worked. I have Ampps installed. As I said php 7 worked but I had to switch to php 5.6. After switching back to php 7 apache did not start.

So I downloaded easyPHP to test php 7 (ampps is closed). I have the same thing. Php 5.6 is working but when I switch to php 7 apache is not starting and no info in error log.

What could it be?

EDIT: I've tried to run PHP7's php.exe from command line and got that error: No VCRUNTIME140.dll

PHP 5.6

enter image description here

enter image description here

PHP 7

enter image description here

enter image description here

No log change


Solution

  • I found solution. Problem was that I didn't have Visual C++ Redistributable for Visual Studio 2015 installed. https://www.microsoft.com/en-us/download/details.aspx?id=48145

    But I had to use 32bit version - vc_redist.x86.exe file