PHP 7 – IIS Config

Date: 2016-06-28

Application Pool:

  1. .Net CLR Version: No Managed Code
  2. Managed Pipeline: Classic
  3. Set Application Pool Identity

Web site:

  1. Authentication, Anonymous Authentication, Application pool identity
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <defaultDocument enabled="true">
            <files>
                <clear />
                <add value="index.php" />
            </files>
        </defaultDocument>
        <handlers>
           <clear />     
           <add name="Default handler" path="/" verb="*" modules="DefaultDocumentModule" resourceType="Either" requireAccess="Script" />                      
           <add name="Folder handler" path="*/" verb="*" modules="DirectoryListingModule" resourceType="Directory" requireAccess="Script" />
           <add name="PHP_via_FastCGI2" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\Program Files\PHP\v7.0\php-cgi.exe" resourceType="Either" requireAccess="Script" />                    
           <add name="Static File Handler" path="*" verb="*" modules="StaticFileModule" resourceType="File" requireAccess="Script" />           
        </handlers>
        <directoryBrowse enabled="true" />
    </system.webServer>
</configuration>
3250cookie-checkPHP 7 – IIS Config