服务器管理器-添加角色和功能

下一步

选择:基于角色或基于功能的安装
下一步

选择:从服务器池中选择服务器
下一步

下一步

选择所需服务
下一步



安装

安装中

安装完成

新建的PHP站点,站点根目录会生成如下的web.config

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <handlers>
            <add name="FastCGI" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\php\php-cgi.exe" resourceType="File" />
        </handlers>
        <httpErrors errorMode="Detailed" />
        <defaultDocument>
            <files>
                <add value="index.php" />
            </files>
        </defaultDocument>
    </system.webServer>
</configuration>