{
    "title": "IIS (Windows Server)",
    "seo_title": "IIS: definition, PHP via FastCGI and WordPress on Windows",
    "h1": "IIS (Windows Server)",
    "description": "IIS, the Windows Server web server: how it runs PHP via FastCGI, the role of web.config and URL Rewrite, and precautions for WordPress.",
    "lead": "IIS (Internet Information Services) is Microsoft's web server, built into Windows Server and Windows. It runs PHP through its FastCGI module and php-cgi.exe, and is configured with web.config files; to run WordPress with pretty permalinks, it also needs the URL Rewrite module.",
    "language": "en",
    "locale": "en-US",
    "type": "definition",
    "url": "https://www.wp-feint.com/glossary/iis/",
    "canonical": "https://www.wp-feint.com/glossary/iis/",
    "markdown": "https://www.wp-feint.com/glossary/iis/index.md",
    "json": "https://www.wp-feint.com/glossary/iis/index.json",
    "published": "2026-10-28T08:00:00+00:00",
    "modified": "2026-11-22T12:07:41+00:00",
    "site": {
        "name": "WP Feint",
        "url": "https://www.wp-feint.com/"
    },
    "translations": [
        {
            "language": "en",
            "hreflang": "en-US",
            "title": "IIS (Windows Server)",
            "url": "https://www.wp-feint.com/glossary/iis/",
            "markdown": "https://www.wp-feint.com/glossary/iis/index.md",
            "json": "https://www.wp-feint.com/glossary/iis/index.json"
        },
        {
            "language": "fr",
            "hreflang": "fr-FR",
            "title": "IIS (Windows Server)",
            "url": "https://www.wp-feint.com/fr/definitions/iis/",
            "markdown": "https://www.wp-feint.com/fr/definitions/iis/index.md",
            "json": "https://www.wp-feint.com/fr/definitions/iis/index.json"
        },
        {
            "language": "es",
            "hreflang": "es-ES",
            "title": "IIS (Windows Server)",
            "url": "https://www.wp-feint.com/es/glosario/iis/",
            "markdown": "https://www.wp-feint.com/es/glosario/iis/index.md",
            "json": "https://www.wp-feint.com/es/glosario/iis/index.json"
        },
        {
            "language": "de",
            "hreflang": "de-DE",
            "title": "IIS (Windows Server)",
            "url": "https://www.wp-feint.com/de/glossar/iis/",
            "markdown": "https://www.wp-feint.com/de/glossar/iis/index.md",
            "json": "https://www.wp-feint.com/de/glossar/iis/index.json"
        },
        {
            "language": "it",
            "hreflang": "it-IT",
            "title": "IIS (Windows Server)",
            "url": "https://www.wp-feint.com/it/glossario/iis/",
            "markdown": "https://www.wp-feint.com/it/glossario/iis/index.md",
            "json": "https://www.wp-feint.com/it/glossario/iis/index.json"
        },
        {
            "language": "pt",
            "hreflang": "pt-BR",
            "title": "IIS (Internet Information Services)",
            "url": "https://www.wp-feint.com/pt/glossario/iis/",
            "markdown": "https://www.wp-feint.com/pt/glossario/iis/index.md",
            "json": "https://www.wp-feint.com/pt/glossario/iis/index.json"
        },
        {
            "language": "nl",
            "hreflang": "nl-NL",
            "title": "IIS (Windows Server)",
            "url": "https://www.wp-feint.com/nl/woordenlijst/iis/",
            "markdown": "https://www.wp-feint.com/nl/woordenlijst/iis/index.md",
            "json": "https://www.wp-feint.com/nl/woordenlijst/iis/index.json"
        }
    ],
    "headings": [
        {
            "level": 1,
            "text": "IIS (Windows Server)"
        },
        {
            "level": 2,
            "text": "How IIS runs PHP"
        },
        {
            "level": 2,
            "text": "web.config and URL Rewrite"
        },
        {
            "level": 2,
            "text": "For WordPress"
        },
        {
            "level": 2,
            "text": "Common mistakes"
        }
    ],
    "body": "IIS is the web server that ships with Windows Server, where it's enabled as a server role. It's mostly chosen in Microsoft environments, for ASP.NET applications, but it can also run PHP and therefore WordPress. It's also the server that control panels such as [Plesk](https://www.wp-feint.com/glossary/plesk/) use on their Windows servers.\n\n## How IIS runs PHP\n\nSince IIS 7.0, a FastCGI component has made it possible to run PHP and other languages; Microsoft states that it hasn't changed in IIS 10.0. Setting it up follows three steps described on Microsoft Learn:\n\n- install the CGI role service, which registers the FastCGI module;\n- declare a FastCGI application pointing to the PHP executable, for example `C:\\PHP\\php-cgi.exe`;\n- create a handler mapping that sends `*.php` files to the FastCgiModule.\n\nFor this use, the PHP website recommends the “Non-Thread Safe” (NTS) builds, designed for FastCGI; the “Thread Safe” builds target Apache, when PHP is loaded as a module. PHP-FPM, widely used on Linux with [Nginx](https://www.wp-feint.com/glossary/nginx/), isn't the tool used here: IIS manages its own php-cgi.exe processes, with settings such as the maximum number of instances or of requests before recycling.\n\n![Diagram of a WordPress request's path through IIS: the browser requests a page, IIS receives the request, the URL Rewrite module applies the web.config rules and routes the URL to index.php, the handler mapping sends .php files to the FastCGI module, and the non-thread-safe build of php-cgi.exe runs WordPress.](https://www.wp-feint.com/media/2026/10/iis-fastcgi-php-en.webp)\n\n## web.config and URL Rewrite\n\nIIS doesn't read [Apache](https://www.wp-feint.com/glossary/apache-http-server/)'s [.htaccess](https://www.wp-feint.com/glossary/htaccess/) files. Its configuration lives in applicationHost.config at the server level, or in web.config files at the site or folder level. URL rewriting requires the URL Rewrite module, downloaded separately, compatible with IIS 7 through IIS 10, and able to import Apache mod_rewrite rules.\n\nWordPress can write its own permalink rules to web.config. It only does so when the conditions are met: IIS 7 or later, the URL Rewrite module loaded and PHP running as FastCGI, as its iis7_supports_permalinks() function checks.\n\n*Video: “What is IIS (Internet Information Services) and How Does It Work?” (Eye on Tech)*\n\n## For WordPress\n\n- **PHP version**: on Windows, installing new PHP versions is often up to you. Follow the [PHP end-of-life schedule](https://www.wp-feint.com/end-of-life-php-versions/) and don't leave an old branch in place.\n- **The PHP-CGI flaw**: in 2024, the [CVE-2024-4577 vulnerability](https://www.wp-feint.com/php-cgi-cve-2024-4577-windows-flaw/) hit PHP in CGI mode on Windows with certain system languages. Check your version and your configuration.\n- **Don't overwrite web.config**: add your rules to the existing rewrite section, without deleting WordPress's own rules.\n- **File permissions**: the application pool identity must be able to write to wp-content/uploads, but not to the whole site.\n\nWP Feint supports IIS: the Pro version's alias rules go in the `system.webServer/rewrite/rules` section of web.config, as explained on the [hosting and cache compatibility](https://www.wp-feint.com/features/hosting-and-cache-compatibility/) page.\n\n## Common mistakes\n\nInstalling the Thread Safe build of PHP for IIS, forgetting the URL Rewrite module and then wondering why permalinks return 404 errors, or pasting .htaccess rules into a web.config without converting them: IIS doesn't understand Apache syntax as is.\n\n## Related terms\n\n- [Apache HTTP Server](https://www.wp-feint.com/glossary/apache-http-server/)\n- [Nginx](https://www.wp-feint.com/glossary/nginx/)\n- [PHP-FPM](https://www.wp-feint.com/glossary/php-fpm/)\n- [htaccess file (.htaccess)](https://www.wp-feint.com/glossary/htaccess/)\n- [Plesk](https://www.wp-feint.com/glossary/plesk/)\n\n\n## Sources\n\n- [Microsoft Learn : FastCGI <fastCgi> (IIS configuration reference)](https://learn.microsoft.com/en-us/iis/configuration/system.webserver/fastcgi)\n- [IIS.net : URL Rewrite](https://www.iis.net/downloads/microsoft/url-rewrite)\n- [PHP : Downloads for Windows (Thread Safety)](https://www.php.net/downloads.php?os=windows)\n- [WordPress Developer Resources : iis7_supports_permalinks()](https://developer.wordpress.org/reference/functions/iis7_supports_permalinks/)",
    "definition": "IIS (Internet Information Services) is Microsoft's web server, built into Windows Server and Windows. It runs PHP through its FastCGI module and php-cgi.exe, and is configured with web.config files; to run WordPress with pretty permalinks, it also needs the URL Rewrite module.",
    "group": "Web hosting",
    "aka": [
        "Internet Information Services",
        "IIS 10",
        "Windows web server",
        "web.config"
    ],
    "related": [
        {
            "title": "Apache HTTP Server",
            "url": "https://www.wp-feint.com/glossary/apache-http-server/",
            "markdown": "https://www.wp-feint.com/glossary/apache-http-server/index.md"
        },
        {
            "title": "Nginx",
            "url": "https://www.wp-feint.com/glossary/nginx/",
            "markdown": "https://www.wp-feint.com/glossary/nginx/index.md"
        },
        {
            "title": "PHP-FPM",
            "url": "https://www.wp-feint.com/glossary/php-fpm/",
            "markdown": "https://www.wp-feint.com/glossary/php-fpm/index.md"
        },
        {
            "title": "htaccess file (.htaccess)",
            "url": "https://www.wp-feint.com/glossary/htaccess/",
            "markdown": "https://www.wp-feint.com/glossary/htaccess/index.md"
        },
        {
            "title": "Plesk",
            "url": "https://www.wp-feint.com/glossary/plesk/",
            "markdown": "https://www.wp-feint.com/glossary/plesk/index.md"
        }
    ],
    "sources": [
        {
            "title": "Microsoft Learn : FastCGI <fastCgi> (IIS configuration reference)",
            "url": "https://learn.microsoft.com/en-us/iis/configuration/system.webserver/fastcgi"
        },
        {
            "title": "IIS.net : URL Rewrite",
            "url": "https://www.iis.net/downloads/microsoft/url-rewrite"
        },
        {
            "title": "PHP : Downloads for Windows (Thread Safety)",
            "url": "https://www.php.net/downloads.php?os=windows"
        },
        {
            "title": "WordPress Developer Resources : iis7_supports_permalinks()",
            "url": "https://developer.wordpress.org/reference/functions/iis7_supports_permalinks/"
        }
    ],
    "format": "application/json"
}