Avatar of Member_2_6492660_1
Member_2_6492660_1
Flag for United States of America asked on

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
Windows Server 2012Microsoft IIS Web ServerPHP

Avatar of undefined
Last Comment
Member_2_6492660_1

8/22/2022 - Mon
SOLUTION
David Johnson, CD

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Dave Baldwin

David Johnson gave you the correct info.

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

ASKER
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?
Member_2_6492660_1

ASKER
Update

I just noticed I have PHP 5.3 and PHP 5.6 installed

Could that be a problem?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
David Johnson, CD

yes, uninstall all and then use the wpi again
php 5.3 went EOL 9 months ago.
Member_2_6492660_1

ASKER
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?
Member_2_6492660_1

ASKER
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
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
rbudj

Member_2_6492660_1

ASKER
CGI is installed

But it is disabled

How do I enable it?
rbudj

In IIS Manager, do you see the CGI icon under IIS of your site?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Member_2_6492660_1

ASKER
Yes

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

Security
Impersonate user.   True

Thoughts
rbudj

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?
Member_2_6492660_1

ASKER
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?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
rbudj

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Member_2_6492660_1

ASKER
Thanks everyone

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




Thanks again for all your help
rbudj

Glad you got it working!
Member_2_6492660_1

ASKER
Your welcome
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes