IIS 7.5 PHP失败"FastCGI进程意外退出". [英] IIS 7.5 PHP failure "The FastCGI process exited unexpectedly"
问题描述
我一直在尝试使PHP与IIS 7.5一起使用,并且遇到了一些障碍.每当我尝试加载页面时,都会出现以下错误:
I've been attempting to get PHP working with IIS 7.5 and have hit a bit of a roadblock. Whenever I try to load the page I get the following error:
"HTTP错误500.0-内部服务器错误 C:\ Program Files \ PHP \ php.exe-FastCGI进程意外退出"
"HTTP Error 500.0 - Internal Server Error C:\Program Files\PHP\php.exe - The FastCGI process exited unexpectedly"
模块FastCgiModule
Module FastCgiModule
通知ExecuteRequestHandler
Notification ExecuteRequestHandler
处理程序PHP_via_FastCGI
Handler PHP_via_FastCGI
错误代码0x00000000
Error Code 0x00000000
请求的URL * http://localhost:80/index.php
Requested URL *http://localhost:80/index.php
物理路径C:\ inetpub \ wwwroot \ index.php
Physical Path C:\inetpub\wwwroot\index.php
匿名登录方法
匿名登录用户
失败的请求跟踪日志目录C:\ inetpub \ logs \ FailedReqLogFiles
Failed Request Tracing Log Directory C:\inetpub\logs\FailedReqLogFiles
我已根据需要修改了PHP.ini文件以用于IIS,并且还将其切换为详细模式. C:\ inetpub \ logs \ FailedReqLogs中没有任何日志文件,在生成的其他日志文件中也没有与此错误相关的文件.
I've modified the PHP.ini file as required for use with IIS, and have also switched it to verbose mode. There isn't any log fiel in C:\inetpub\logs\FailedReqLogs, and none related to this error in the other log files generated.
我尝试了在这里和其他地方找到的其他修复程序,但到目前为止没有成功.
I've tried the other fixes I've found here and elsewhere but nothing's been successful so far.
更详细地说,这些是: 重新检查PHP.ini 设置fastCGI以在IIS中与PHP配合使用(配置它以加载php.exe) 尝试使用WinCache作为执行方法.
In some detail these were: re-checking PHP.ini Setting up fastCGI to work with PHP in IIS (configuring it to load the php.exe) Trying WinCache as the execution method.
推荐答案
当我将PHP 5.4.14升级到5.5.3(32位)时遇到了这个问题.
I had this problem when I upgraded PHP 5.4.14 to 5.5.3 (32-bit).
要修复此问题,我必须安装针对Visual Studio 2012更新3
To fix it I had to install the Visual C++ Redistributable for Visual Studio 2012 Update 3
我发现升级后不再加载我的网页时,需要通过从控制台运行php --version来使用此DLL.然后,该文件显示我需要MSVCR110.dll,该文件带有MS的32位VS可重新分发更新.由于我在窗口更新"中关闭了可选更新,因此我没有自动获取它.
I found out that I needed this DLL by running php --version from the console when my web pages no longer loaded after the upgrade. Which then revealed that I needed the MSVCR110.dll, that comes with the 32-bit VS redistributable update from MS. Since I have optional updates turned off in Window Update, I did not get it automatically.
它们也有不同的风格(32位,64位和ARM),32位对我有用.
They also come in different flavors (32-bit, 64-bit, and ARM) 32-bit is what worked for me.
这篇关于IIS 7.5 PHP失败"FastCGI进程意外退出".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!