WordPress On IIS

Adrian Jenkins
3 min readMar 8, 2023


Configure MariaDB

Download MariaDB

Follow installation.

After the installation, go to Start Menu and open “HeidiSQL”.

Add a new session and change its name from “Unnamed” to “localhost”.

Create a new DB under localhost.

Name it “wordp1”.

Go to the User Manager.

Click on “Add new user.

Set the username as “admindb”. Set from the host as Access from everywhere.

Set a password for the new user and retype the password

Allow Global Privileges Click save, then close.

Configure WordPress

Download WordPress

Unzip it under “C:\inetpub\wwwroot\wordpress”.

Before configuring WordPress, we need to enable “mysqli” support.

Go to php installation and open the php.ini file and uncomment “extension=mysqli”.

Note: Mind as well uncomment “curl” and “openssl”.

Browsed to “localhost/wordpress”.

Fill connection string:

You can make a copy of “wp-config-sample”, add connection string details and then rename it to “wp.config.php”.

After that is done, “Run the installation” and fill details of Site:

Finally, log in:

Right now, this is running under localhost.

Go to your Dashboard > Settings and change WordPress & Site Address URLs to your public IP address.

Otherwise, site will not be accessible outside your VM.

Also, you need to open port at VM level. Being 80 for HTTP, 443 for HTTPS, or whichever you are using.