略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: 环境要求

2024-04-24

环境要求

PHP 至少需要 Windows 2008/Vista。 32 位或 64 位(也就是 X86 或 X64。PHP 不能在 Windows RT/WOA/ARM上运行)。 自 PHP 7.2.0 起,不再支持 Windows 2008 和 Vista。

PHP 需要 Visual C 运行时(CRT)。许多应用程序需要它,所以它可能已经被安装。

微软的开发环境 Visual Studio 2019 包含了编译 PHP 的全部环境要求,请参阅 » https://visualstudio.microsoft.com/downloads/

你需要下载 x86 版本的 CRT 来编译 x86 版本的 PHP。同理,编译 x64 版本的 PHP 需要 x64 版本的 CRT。

如果系统已经安装了 CRT,安装程序会提示你,而不会改变任何东西。

CRT 安装程序支持 /quiet 和 /norestart 命令行开关,所以你可以用脚本运行它。

add a noteadd a note

User Contributed Notes 1 note

up
-1
v4ri4bl3 at gmail dot com
10 days ago
Install using Windows Terminal (or PowerShell):

  > winget install Microsoft.VC++2015-2022Redist-x64

Other version ids:
- Microsoft.VC++2015-2022Redist-x86
- Microsoft.VC++2019Redist-arm64

官方地址:https://www.php.net/manual/en/install.windows.requirements.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3