How to Install WordPress on a Windows Server with IIS

Updated on March 28, 2022
How to Install WordPress on a Windows Server with IIS header image

WordPress is a popular open-source content management system (CMS) designed to make website development easy and extensible with free tools, plugins, and themes available through a single backend dashboard. WordPress requires an active database, web server, and dynamic script processor (PHP) to run on a server.

In this article, you install WordPress on a Windows server running the Internet Information Services (IIS) web server.

Prerequisites

Install WordPress and MySQL

WordPress Installation Window

  1. Download and install the Microsoft Web Platform installer from the official website.
  2. Open the Web Platform Installer.
  3. Enter WordPress in the search bar.
  4. Click Add to include WordPress in the downloads queue, then click Install to preview prerequisites.
  5. Enter a new MySQL database administrator password.
  6. Click Next to Install MySQL and WordPress on the server.
  7. At the computer restart popup, click No to proceed.
  8. Configure the site URL with an application name, or leave the field blank to serve WordPress on the root domain or Server IP address.
  9. Click next to complete the installation of WordPress files.

Configure WordPress

Visit your Server IP address or registered domain name to set up WordPress.

http://Windows-Server-IP

Select your installation language, then enter your WordPress site title, administrator username, a strong password, and email address to complete the setup.

Create a new Web.config file in your WordPress files directory, commonly C:\inetpub\wwwroot\

Open the file with Notepad, and paste the following rewrite rules to handle permalinks correctly:

<rewrite>
    <rules>
        <rule name="Main Rule" stopProcessing="true">
            <match url=".*" />
            <conditions logicalGrouping="MatchAll">
                <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
            </conditions>
           <action type="Rewrite" url="index.php" />
        </rule>
    </rules>
</rewrite>

Save and close the file.

Log in to your WordPress website.

http://Windows-Server-IP/wp-login.php

Test common CMS functions by installing plugins and themes, then create and view blog posts to test your permalink settings.

Next Steps

You have successfully installed WordPress on a Windows server with IIS. You can update your CMS and perform several WordPress functions on the server. For example, to assign your WordPress website to a domain name linked to the server, edit site bindings in Internet Information Services (IIS) Manager to add your domain.

For more information on setting up your Windows Server instance, refer to the following articles: