版本
Apache 2.4.33 Win64
PHP 5.6 (5.6.34)
安装配置Apache
下载地址:https://www.apachelounge.com/download/
httpd-2.4.33-Win64-VC15.zip下载解压到安装目录C:\Apache24
修改配置文件C:\Apache24\conf\httpd.conf
ServerRoot "C:\Apache24"
DocumentRoot "C:\Apache24\htdocs"
Directory "C:\Apache24\htdocs"
ServerName localhost:80
修改 Directory 添加index.php 添加文件最底部浏览器输入localhost,显示“It works!”,成功
安装配置PHP
下载地址:https://windows.php.net/download#php-5.6
VC11 x64 Thread Safe (2018-Mar-01 06:22:41)下载解压到安装目录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"
修改 extension添加index.php文件C:\Apache24\htdocs\index.php
index.php重启apache服务器,在浏览器中输入localhost/index.php
配置成功!
网友评论