IIS 8.5 PHP installed Event Error 1000 Please help

Windows 2012 R2 64 Bit Server
IIS 8.5
PHP 5.3.28

I just moved my web sites from a windows 2003 server with IIS 6.

Yesterday I installed PHP on the new web server using Web Platform Installer 5.0

created a test php page

<?php
phpinfo();
?>

Opened IE on the web server   http://localhost/phpinfo.php

I got this error 500

TTP Error 500.0 - Internal Server Error

C:\Program Files (x86)\PHP\v5.6\php-cgi.exe - The FastCGI process exited unexpectedly



Most likely causes:
•IIS received the request; however, an internal error occurred during the processing of the request. The root cause of this error depends on which module handles the request and what was happening in the worker process when this error occurred.
•IIS was not able to access the web.config file for the Web site or application. This can occur if the NTFS permissions are set incorrectly.
•IIS was not able to process configuration for the Web site or application.
•The authenticated user does not have permission to use this DLL.
•The request is mapped to a managed handler but the .NET Extensibility Feature is not installed.



Things you can try:
•Ensure that the NTFS permissions for the web.config file are correct and allow access to the Web server's machine account.
•Check the event logs to see if any additional information was logged.
•Verify the permissions for the DLL.
•Install the .NET Extensibility feature if the request is mapped to a managed handler.
•Create a tracing rule to track failed requests for this HTTP status code. For more information about creating a tracing rule for failed requests, click here.



Detailed Error Information:



Module
   FastCgiModule

Notification
   ExecuteRequestHandler

Handler
   PHP_via_FastCGI

Error Code
   0x000000ff



Requested URL
   http://localhost:80/phpinfo.php

Physical Path
   C:\inetpub\wwwroot\phpinfo.php

Logon Method
   Anonymous

Logon User
   Anonymous


In the Event Log I got the error 1000

Log Name:      Application
Source:        Application Error
Date:          6/6/2015 9:18:37 AM
Event ID:      1000
Task Category: (100)
Level:         Error
Keywords:      Classic
User:          N/A
Computer:      SERV013.FQDN.com
Description:
Faulting application name: php-cgi.exe, version: 5.6.0.0, time stamp: 0x53fe294e
Faulting module name: MSVCR110.dll, version: 6.3.9600.17736, time stamp: 0x550f42c2
Exception code: 0xc0000135
Fault offset: 0x0009d4f2
Faulting process id: 0x17e4
Faulting application start time: 0x01d0a05b4c0255bf
Faulting application path: C:\Program Files (x86)\PHP\v5.6\php-cgi.exe
Faulting module path: MSVCR110.dll
Report Id: 89b1fda0-0c4e-11e5-80c8-001d09fae057
Faulting package full name:
Faulting package-relative application ID:
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Application Error" />
    <EventID Qualifiers="0">1000</EventID>
    <Level>2</Level>
    <Task>100</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2015-06-06T13:18:37.000000000Z" />
    <EventRecordID>18273</EventRecordID>
    <Channel>Application</Channel>
    <Computer>SERV013.FQDN.com</Computer>
    <Security />
  </System>
  <EventData>
    <Data>php-cgi.exe</Data>
    <Data>5.6.0.0</Data>
    <Data>53fe294e</Data>
    <Data>MSVCR110.dll</Data>
    <Data>6.3.9600.17736</Data>
    <Data>550f42c2</Data>
    <Data>c0000135</Data>
    <Data>0009d4f2</Data>
    <Data>17e4</Data>
    <Data>01d0a05b4c0255bf</Data>
    <Data>C:\Program Files (x86)\PHP\v5.6\php-cgi.exe</Data>
    <Data>MSVCR110.dll</Data>
    <Data>89b1fda0-0c4e-11e5-80c8-001d09fae057</Data>
    <Data>
    </Data>
    <Data>
    </Data>
  </EventData>
</Event>


I searched the server for MSVCR110.dll could not be found


What am I missing here?

Thanks

Tom
LVL 23
Thomas GrassiSystems AdministratorAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
You're missing the Visual C++ Redistributable download it @
http://bit.ly/1AUHvTb
Dave BaldwinFixer of ProblemsCommented:
David Johnson gave you the correct info.

http://www.microsoft.com/en-us/download/details.aspx?id=30679
Thomas GrassiSystems AdministratorAuthor Commented:
Dave and David

first thanks for responding so quickly.

I downloaded  Visual C++ Redistributable  
Installed on the Web Server  checked it installed ok
did a iisrestart /noforce

Same error sorry still missing something?

Thanks


Update

Just scanned my server and I found the file msvcr110.dll in the folder c:\windows\system32

Is this a security issue?
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

Thomas GrassiSystems AdministratorAuthor Commented:
Update

I just noticed I have PHP 5.3 and PHP 5.6 installed

Could that be a problem?
David Johnson, CD, MVPOwnerCommented:
yes, uninstall all and then use the wpi again
php 5.3 went EOL 9 months ago.
Thomas GrassiSystems AdministratorAuthor Commented:
David

I uninstalled PHP using this method

1) In IIS Manager, click your machine in left pane. Then click "Handler Mappings" in right pane. Find the "PHP5?_via_FastCGI" for the PHP version you want to remove, right click then "Remove".

2) In IIS Manager, click your machine in left pane. Then click "FastCGI Settings" in right pane. Find the "C:\Program Files (x86)\PHP\v5.?\php.ini" for the PHP version you want to remove, right click then "Remove".

3) Go to Control Panel, "Uninstall a Program". Uninstall those extensions for PHP 5.? (WinCache etc)

4) Run Windows Explorer, remove folder "C:\Program Files (x86)\PHP\v5.?".


After I ran that I ran Web Platform Installer (WPI) and I only selected PHP 5.6

After install was complete I found both 5.3 and 5.6 folders

Why would WPI install both versions?
Thomas GrassiSystems AdministratorAuthor Commented:
Update

I removed them all again

Now trying to find a stand alone php 5.6 windows installer

this site does not respond  http://windows.php.net/

still looking  

Thoughts
rbudjCommented:
Thomas GrassiSystems AdministratorAuthor Commented:
CGI is installed

But it is disabled

How do I enable it?
rbudjCommented:
In IIS Manager, do you see the CGI icon under IIS of your site?
Thomas GrassiSystems AdministratorAuthor Commented:
Yes

Behavior
Timeout.   00:15:00
Use new console for each invocation. False

Security
Impersonate user.   True

Thoughts
rbudjCommented:
I've had this problem recently and I have notes somewhere but I cannot remember the exact solution. Right click on php-cgi.exe  and Run as Administrator and re-test. Results?
Thomas GrassiSystems AdministratorAuthor Commented:
Php-cgi.exe. System error
The program can't start because msvcr110.dll is missing from your computer try reinstalling the program to fix this problem

Same event Id 1000 error

I again searched for the file and it was found in c:\windows\system32

Does iis need access to this folder?
Security?
rbudjCommented:
When you downloaded and installed VS C++, did you install x86 version or x64? Some report you need both installed http://serverfault.com/questions/517694/cant-start-php-cgi-exe-msvcr110-dll-is-missing

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Thomas GrassiSystems AdministratorAuthor Commented:
Thanks everyone

After installing VS C++ x86 and x64 versions now all working with PHP




Thanks again for all your help
rbudjCommented:
Glad you got it working!
Thomas GrassiSystems AdministratorAuthor Commented:
Your welcome
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2012

From novice to tech pro — start learning today.