There are a couple of things I have found that fixes this issue.
Go into php.ini and search for “cgi.rfc2616_headers” and Uncomment the line and make the value equal to “1”.
It should look like this when you are done:
- cgi.rfc2616_headers = 1
Make sure that PHP version has been changed at the server level and at the app level within IIS!
One other thing that you will need to do check in on is to make sure that you have the proper version of Microsoft C++ installed. Each version of PHP needs a slightly different version. You can find out what version you need by checking out this website: http://windows.php.net/
At the time of writing, these are the versions you will need. I always recommend that you check out: http://windows.php.net/ for the latest info!
VC9, VC11 & VC14
More recent versions of PHP are built with VC9, VC11 or VC14 (Visual Studio 2008, 2012 or 2015 compiler respectively) and include improvements in performance and stability.
– The VC11 builds require having the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed
– The VC14 builds require having the Visual C++ Redistributable for Visual Studio 2015 x86 or x64 installed