ThinkCMF system installation method under iis7 environment

Published: 2018-09-18

Under IIS environment, some environment checks cannot pass

  1. Upload the website program to the FTP root directory. Note that it is not under wwwroot; except for public, upload the files in the public directory to wwwroot

  2. Create a new file in the wwwroot directory, name it web.config, copy the following code and save it


  3. <?xml version="1.0"?>
    <configuration>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="rewrite1" stopProcessing="true">
                        <match url="^(.*)$" ignoreCase="false" />
                        <conditions logicalGrouping="MatchAll">
                            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
                            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
                        </conditions>
                        <action type="Rewrite" url="index.php/{R:1}" appendQueryString="true" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>
  4. Modify always_populate_raw_post_data = -1 in the php.ini file (if it is off, it cannot pass the check)

  5. Visit the domain name to install

    image.png