windows 10安装php
window10 手动配置WAMP环境之php安装
工具/原料
Windows 10笔记本电脑一台
php-7.4.7-Win32-vc15-x86.zip
修改服务器配置文件
1、下载并解压php安装包php-7.4.7-Win32-vc15-x86.zip
2、打开apache服务器配置文件httpd.conf,在最后添加:PHPIniDir "C:\Program Files\php7"LoadModule php7_module "C:\Program Files\php7\php7apache2_4.dll"

4、找到 DirectoryIndex index.html添加服务器默认打开的文件,修改为php文件:DirectoryIndex index.php

2、添加下面代码并保持:<?phpphpinfo();
