IIS && php7.1.30 && Mysql5.7 (windowsserver2012r2)
IIS
- 在Server Manager中, 选择Add roles and features
- 在Server Roles中,选择Web Server(IIS)全点上
- 在Role Services中,全选 注意!.NET Extensibility 4.5 和 ASP.NET 4.5别选,如果要选,需要在下一步添加路径
- 安装
php7.1.30
- 首先运行clearcompressionflag.exe
安装补丁如下
Windows8.1-KB2919442-x64.msu
Windows8.1-KB2919355-x64.msu
Windows8.1-KB2932046-x64.msu
Windows8.1-KB2934018-x64.msu
Windows8.1-KB2937592-x64.msu
Windows8.1-KB2938439-x64.msu
Windows8.1-KB2959977-x64.msu
Windows8.1-KB2999226-x64.msu - 配置php.ini文件放入php文件夹中
- 进入IIS控制面板,选择Handler Mappings
- 选择Add Module Mappings
- 配置
Request path: *.php
Module: FastCgiModule
Executable(optional): php-cgi.exe
Name: FastCgi
- 选择FastCGI Settings
- 右击edit
Monitor changes to file: C:\php\php.ini
Environment Variables:
Name: PHP_FCGI_MAX_REQUESTS
Value: 1000
- 选择Default Document
- Add “index.php”
- 在默认的站点下新建一个名为"index.php"的文件
- 加入
<?php
phpinfo();
?>
- 访问http://localhost/测试是否成功
Mysql5.7
- 安装.net4.5.2.exe
- 安装Mysql