IIS 8.5 PHP installed Event Error 1000 Please help

Thomas Grassi
Thomas Grassi used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
Commented:
You're missing the Visual C++ Redistributable download it @
http://bit.ly/1AUHvTb
Dave BaldwinFixer of Problems
Most Valuable Expert 2014

Commented:
David Johnson gave you the correct info.

http://www.microsoft.com/en-us/download/details.aspx?id=30679
Thomas GrassiSystems Administrator

Author

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?
Become a CompTIA Certified Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Thomas GrassiSystems Administrator

Author

Commented:
Update

I just noticed I have PHP 5.3 and PHP 5.6 installed

Could that be a problem?
Top Expert 2016

Commented:
yes, uninstall all and then use the wpi again
php 5.3 went EOL 9 months ago.
Thomas GrassiSystems Administrator

Author

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 Administrator

Author

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
Thomas GrassiSystems Administrator

Author

Commented:
CGI is installed

But it is disabled

How do I enable it?

Commented:
In IIS Manager, do you see the CGI icon under IIS of your site?
Thomas GrassiSystems Administrator

Author

Commented:
Yes

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

Security
Impersonate user.   True

Thoughts

Commented:
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 Administrator

Author

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?
Commented:
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
Thomas GrassiSystems Administrator

Author

Commented:
Thanks everyone

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




Thanks again for all your help

Commented:
Glad you got it working!
Thomas GrassiSystems Administrator

Author

Commented:
Your welcome

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial