In this article, we will see how to run WordPress on ASP.NET Core Host. Yes, you read it right. It’s now possible to run an entire WordPress Application over an ASP.NET Core Host seamlessly. But what are the benefits and how do you get it running? That’s exactly what this article will cover. You can find the source code of the implementation here for your reference.

Table of Contents

Prerequisites

You will need to have these on your machine before you get started.

  1. Visual Studio 2019 IDE / Visual Studio Code
  2. The Latest .NET SDK – Get it here
  3. MySQL Server Installed and configured, as WordPress will be using this Server Instance for Persistence.

Steps to Run WordPress on ASP.NET Core

Here are the steps needed to run WordPress with ASP.NET Core. After this section, we will talk about the benefits and the scope of such an approach.

Step 1 – Setting up the MySQL Database

As mentioned earlier, make sure that you have the latest versions of both MySQL Server (Community) and MySQL WorkBench installed on your machine. If not, download and install them from the below link.

https://dev.mysql.com/downloads/windows/installer/8.0.html

Note that you will have to download the MSI Executables for installing the services on to your machine. With that done, Open up MySQL Workbench. Here we will need to add a blank database/schema for our WordPress Application to run. The tables will be auto-generated by WordPress as soon as the application launches for the first time.

wordpress schema

Make sure that you note down the username , password , database name and the port at which mysql is running. We will need these details when we start configuring WordPress on ASP.NET Core

#asp.net core

Running WordPress on ASP.NET Core in 4 Easy Steps - Peachpie
1.70 GEEK