PHP7 和 IIS8 HTTP 错误 500.0 - FastCGI 进程意外退出

PHP7 and IIS8 HTTP Error 500.0 - The FastCGI process exited unexpectedly

在 Windows Server 2012 上,我正在 运行ning IIS 8 和 PHP 7.04。我收到以下错误:

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

当我从命令行运行执行以下操作时:

c:\php\php.exe phpinfo()

我收到以下错误:

The program can't start because VCRUNTIME140.dll is missing from your computer. Try reinstalling the program to fox this problem.

我已经从 MS (vc_redist.x64.exe) 安装了 Visual C++ redistributable 2015。看起来 VCRUNTIME140.dll 放在 C:\Windows\System32 中。

我是否缺少 PHP 路径或环境变量?

解决方案是安装 32 位版本的 Visual C++ redistributable 2015 (VC_redist.x86.exe)。感谢这里的提示: https://github.com/cmderdev/cmder/issues/482