php FastCGI 进程意外退出

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23007551/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 16:25:37  来源:igfitidea点击:

The FastCGI process exited unexpectedly

phpwindows-server-2008

提问by Hamamelis

I am trying to run PHP via FastCGI on a Windows 2008 server.

我正在尝试在 Windows 2008 服务器上通过 FastCGI 运行 PHP。

I followed this installation doc http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis7/and have checked I completed the steps correclty numerous times.

我遵循了这个安装文档http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis7/并检查了我多次正确完成步骤。

However when I try to execute a php page i am presented with the following error:

但是,当我尝试执行 php 页面时,出现以下错误:

HTTP Error 500.0 - Internal Server Error C:\PHP\php-cgi.exe - The FastCGI process exited unexpectedly

HTTP 错误 500.0 - 内部服务器错误 C:\PHP\php-cgi.exe - FastCGI 进程意外退出

采纳答案by Akshay Khale

You might be using C:/[your-php-directory]/php.exein Handler mappingof IIS just change it C:/[your-php-directory]/php-cgi.exe.

您可能在IIS 的处理程序映射中使用C:/[your-php-directory]/php.exe只需更改它C:/[your-php-directory]/php-cgi.exe

回答by sepehr

maybe you should try installing VC++ runtime as explained here.

也许您应该按照此处的说明尝试安装 VC++ 运行时。

There's a fairly good chance you're missing the correct VC++ runtime for the version of PHP you're running.

If you're running PHP 5.5.x you need to ensure the VC++11 runtime is installed:

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

Make sure you download and install the x86 version (vcredist_x86.exe), PHP on Windows isn't 64 bit yet.

If you're running PHP 5.4.x then you need to install the VC++9 runtime:

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

您很可能缺少与您正在运行的 PHP 版本对应的正确 VC++ 运行时。

如果您运行的是 PHP 5.5.x,则需要确保安装了 VC++11 运行时:

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

确保下载并安装 x86 版本 (vcredist_x86.exe),Windows 上的 PHP 还不是 64 位。

如果您运行的是 PHP 5.4.x,那么您需要安装 VC++9 运行时:

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

回答by Robot70

When you run php-cgi.exe from the dos command line, you will get the missing MSVCR110.dll pop up message.

当您从 dos 命令行运行 php-cgi.exe 时,您将收到缺少 MSVCR110.dll 的弹出消息。

Like Ben said, Get the x86 download for the dll here: http://www.microsoft.com/en-us/download/details.aspx?id=30679

就像 Ben 说的,在此处获取 dll 的 x86 下载:http: //www.microsoft.com/en-us/download/details.aspx?id=30679

回答by Ben

After much pain and suffering, turns out I needed to install the "Visual C++ Redistributable for Visual Studio 2012 Update 4 32-bit version", even on my 64-bit server.

在经历了很多痛苦之后,我发现我需要安装“Visual C++ Redistributable for Visual Studio 2012 Update 4 32 位版本”,即使在我的 64 位服务器上也是如此。

回答by SaachiTech

If you are installing PHP 7.1.14 on windows server 2008 rc2 Enterprise, only thing worked for me is to install microsoft Visual C++ 2015 Redistributable Update 3from https://www.microsoft.com/en-us/download/details.aspx?id=53587

如果您在 Windows Server 2008 rc2 Enterprise 上安装 PHP 7.1.14,唯一对我有用的是从https://www.microsoft.com/en-us/download/details.aspx安装microsoft Visual C++ 2015 Redistributable Update 3 ?id=53587

回答by Andrew

I tried opening php-cgi.exe directly and it gave me a more clear error message.

我尝试直接打开 php-cgi.exe ,它给了我更清晰的错误信息。

回答by Basel AlkKaddoumi

if you have two application like (your app, phpmyadmin) just disable APC extension Hope that fix that issue it's worked with me

如果你有两个应用程序,比如(你的应用程序,phpmyadmin),只需禁用 APC 扩展希望解决这个问题,它对我有用

回答by Mohamed Abulnasr

As the answer of 'sepehr' this issues are because of VC++ Redistributable suitable version for PHP are not installed or need to be reinstalled again.

作为“sepehr”的答案,这个问题是因为没有安装适用于 PHP 的 VC++ Redistributable 合适版本或需要重新安装。

I faced it before so i'll explain my steps to fix it.

我之前遇到过它,所以我将解释我修复它的步骤。

1- Each PHP version is built by a specific Visual C++ Redistributable version like (10, 11,12,14,..) what ever. ((How you know!! look.. ))

1- 每个 PHP 版本都是由特定的 Visual C++ Redistributable 版本构建的,例如 (10, 11,12,14,..) 什么的。((你怎么知道!!看...))

  • Check back enter link description hereThe PHP Site then at the left side of this page, look at "Which version do I choose?" then see what version of VC++ is fits your PHP version installed.

  • Now YOU HAVE TO Download both of VC++ 32 and 64. and if your PC has it already then Unistall them first. and then install what you downloaded recently bu (first 32 then 64).

  • 回查在此处输入链接描述PHP 站点 然后在此页面的左侧,查看“我选择哪个版本?” 然后查看哪个版本的 VC++ 适合您安装的 PHP 版本。

  • 现在您必须下载 VC++ 32 和 64。如果您的 PC 已经安装了,请先卸载它们。然后安装你最近下载的 bu(先 32 然后是 64)。

- VC download links are exists on the mentioned PHP Site on the left side also.

- 左侧提到的 PHP 站点上也存在 VC 下载链接。

I hope it helps you.

我希望它能帮助你。

回答by Williem

For user using PHP 5.6.x follow this linkand install the x86 version.

对于使用 PHP 5.6.x 的用户,请点击此链接并安装 x86 版本。

回答by carltonstith

I was getting this same error installing PHP 7 on Windows Server 2008 R2. I resolved this by installing the Visual C++ Redistributable for Visual Studio 2015.

我在 Windows Server 2008 R2 上安装 PHP 7 时遇到同样的错误。我通过安装 Visual C++ Redistributable for Visual Studio 2015 解决了这个问题。