本地测试环境(Windows)在切换成 PHP8.x 版本的时候报错 500 服务器错误,具体报错信息如下:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/49214.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/49214.html
错误原因:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/49214.html
PHP 需要 Visual C 运行时(CRT),即你需要安装 Microsoft Visual C++ 2015-2022 Redistributable 运行时,根据自己 PHP 版本及操作系统位数选择对应的文件即可。一般选择最新的就可以了。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/49214.html
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/49214.html
参考文档:文章源自菜鸟学院-https://www.cainiaoxueyuan.com/wg/49214.html
- https://www.php.net/manual/zh/install.windows.requirements.php
- https://docs.microsoft.com/zh-CN/cpp/windows/latest-supported-vc-redist?view=msvc-170