版本
Apache 2.4.33 Win64
PHP 5.6 (5.6.34)
安装配置Apache
下载地址:https://www.apachelounge.com/download/
下载解压到安装目录C:\Apache24
修改配置文件C:\Apache24\conf\httpd.conf
ServerRoot "C:\Apache24"
DocumentRoot "C:\Apache24\htdocs"
Directory "C:\Apache24\htdocs"
ServerName localhost:80
浏览器输入localhost,显示“It works!”,成功
安装配置PHP
下载地址:https://windows.php.net/download#php-5.6
下载解压到安装目录C:\php-5.6.34-Win32-VC11-x64
配置php.ini
将php安装目录下的php.ini-production备份,重命名为php.ini
extension_dir = "C:\php-5.6.34-Win32-VC11-x64\ext"
添加index.php文件C:\Apache24\htdocs\index.php
重启apache服务器,在浏览器中输入localhost/index.php