IIS8+PHP8运行出错FastCGI进程意外退出解决方法

IIS8.5+PHP8,配置好后打开php页面出错,错误提示:

引用内容 引用内容
HTTP 错误 500.0 - Internal Server Error
C:\PHP8\php-cgi.exe - FastCGI 进程意外退出



在CMD运行php-cgi.exe也出错,错误提示:

引用内容 引用内容
PHP Warning:  'C:\Windows\SYSTEM32\VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.28 in Unknown on line 0



这是因为计算机缺少PHP8运行组件"Microsoft Visual C++ 2015-2019 Redistributable"导致的,到微软官网下载安装:



问题解决。

Microsoft Visual C++ 2015-2019 Redistributable 下载地址:

x86版本:https://aka.ms/vs/16/release/VC_redist.x86.exe
x64版本:https://aka.ms/vs/16/release/VC_redist.x64.exe

评论: 0 | 引用: 0 | 查看次数: 1798
发表评论
登录后再发表评论!