How to Install WordPress on Windows Server 2016
Please share with your friends...
  • 3
  • 1
  •  
  • 1
  •  
  • 1
  •  
  •  
  •  
    6
    Shares

This article describes how to download, install and configure WordPress on Windows Server 2016. The instructions use Windows PowerShell wherever possible, and are suitable for servers with and without the Desktop Experience feature installed (Server Core). These instructions can even be used with Windows 10!

The following instructions assume you are starting with a newly built and patched Windows Server 2016 or Windows 10 computer.

The instructions cover the installation of the following components:

  • Internet Information Services (IIS)
  • URL Rewrite 2.1
  • File System Security PowerShell Module
  • MySQL Server 5.7
  • Visual C++ Redistributables
  • PHP
  • WinCache
  • PHP Manager for IIS 1.4.0
  • WordPress

Contents


The Shortlink to this post is https://wp.me/p9mh5O-l4.

If you found this post helpful or useful in some way, please help us by doing the following:

  • Like or link to this post from your favourite social media platforms;
  • Click our advertisers banners;
  • Make a Purchase through our associates links;
  • Make a Paypal Donation;
  • Leave a Reply below.
Thank you!

Chris

⇓ LastPageNext ⇒

Oracle, MySQL®, MySQL® Logo are trademarks of Oracle Corporation. Microsoft®, Windows®, Windows PowerShell® and Windows Server® are trademarks of the Microsoft Corporation.

Please share with your friends...
  • 3
  • 1
  •  
  • 1
  •  
  • 1
  •  
  •  
  •  
    6
    Shares
Tagged on:                                                 

4 thoughts on “How to Install WordPress on Windows Server 2016

  • 09/03/2018 at 8:58 AM
    Permalink

    Thanks for posting this! I’ve not run the entire script yet, but have a question about what is best to do when an install file is no longer available (or has been moved to an “archive” folder). I think I recall that the original posting was about May 2017. Some of the versions listed in the script are not available, or not where they were originally. Thoughts?

    Reply
    • 10/03/2018 at 2:54 PM
      Permalink

      Hi there!
      I’ve updated the instructions and script to download the latest versions of MySQL (5.7.21) and PHP (7.1.15), plus address an issue with HTTPS downloading in PowerShell. Tested on fully patched versions of Windows Server 2016 (v1607 b14393) and Windows 10 (v1709 b16299) – all good. Also removed PHP 5.5 from the instructions, as this is well out of support now.
      Hope this helps 🙂
      Chris

  • 21/03/2018 at 3:00 AM
    Permalink

    Hello,

    Thanks for posting this great tutorial. I’ve run into an issue midway through and can’t continue. Any suggestions?

    PS C:\Users\webadmin\Downloads> Set-Content $MYSQL_INIT “ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘H*****’;”

    PS C:\Users\webadmin\Downloads> Content $MYSQL_INIT “CREATE DATABASE wordpress;”
    >> Add-Content $MYSQL_INIT “CREATE USER ‘wordpress’@’localhost’ IDENTIFIED BY ‘H******’;”
    >> Add-Content $MYSQL_INIT “GRANT ALL PRIVILEGES ON wordpress.* TO ‘wordpress’@’localhost’;”

    Get-Content : A positional parameter cannot be found that accepts argument ‘CREATE DATABASE wordpress;’.
    At line:1 char:1
    + Content $MYSQL_INIT “CREATE DATABASE wordpress;”
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidArgument: (:) [Get-Content], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.GetContentCommand

    Reply

Leave a Reply