Install WordPress on Windows

This section covers the WordPress installation on Windows operating system. The following steps demonstrate how to set up and configure a virtual host on Windows 10 using XAMPP.

Step 1: Download XAMPP and WordPress

It's crucial to create the ideal atmosphere for WordPress before downloading. Installing XAMPP or WAMP on Windows will enable you to build up a server-database stack (the industry-favorites are Apache as a web server and MySQL as the database)

In this guide, I will be using XAMPP, downloadable from the Apache website.

Download XAMPP

You will notice a variety of settings that are compatible with various PHP versions. I chose the options that are most compatible with the most recent PHP release.

Run it after the download is complete to install XAMPP on your local computer. Launch the control panel after installation to see and modify Apache and MySQL status.

 install XAMPP

Starting these two services is necessary for installing WordPress locally.

Step2:  Install and Setup WordPress Locally

Download the WordPress setup from the official website after configuring the webserver and database.

Setup WordPress Locally

Place the zip file in the XAMPP directory's htdocs folder. Go to the project directory after unzipping the file.Important: Ensure that the Apache and MySQL services are active in the XAMPP management panel.

Next, build the database for your new WordPress site by going to the phpMyAdmin portal. The portal is most likely located at the following URL (depending on your port configuration).

  1. http://localhost:80/phpmyadmin/

phpmyadmin

Once the database is created, launch the WordPress installation setup by visiting the following URL.

  1. http://localhost:80/newwpsite/wp-admin/setup-config.php

launch the WordPress

Select the desired language and click ‘Continue’.

On the next screen, follow the steps to add database credentials to the wp-config.php file.

add database credentials to the wp-config.php file

Open wp-config.php file within your favorite code editor and define database credentials as follow:

  1. // ** MySQL settings - You can get this info from your web host ** //
  2. /** The name of the database for WordPress */
  3. define( 'DB_NAME', 'newwpsite' );
  4. /** MySQL database username */
  5. define( 'DB_USER', 'root' );
  6. /** MySQL database password */
  7. define( 'DB_PASSWORD', '' );

Save the file and head back to WordPress installation wizard.

WordPress installation wizard

Type in the username, password, and database name. You are free to create your own table prefix, but for now I'm sticking with the default. Once finished, press "Submit."

The successful database setting will be verified on the next screen. To launch the WordPress installation, click "Run the installation."

Run the installation

Provide details about your website on the following screen, then enter your account and password to access the WordPress dashboard.

WordPress dashboard

Click the "Install WordPress" button when you're finished. The success message and button to open the well-known WordPress dashboard login page will be displayed.

WordPress dashboard login page

That is all that is required to locally install WordPress on a Windows computer.

Share