Facebook PixelHow to install and setup WordPress on your local computer on Windows (Completely Free) | Blog | CodeWithHarry
How to install and setup WordPress on your local computer on Windows (Completely Free)

How to install and setup WordPress on your local computer on Windows (Completely Free)

"Installing WordPress locally is an excellent idea if you are just starting your WordPress journey. In this article, I will give you a detailed guide on installing WordPress on your local computer."

By CodeWithHarry

Updated: 5 April 2025

Installing WordPress locally is an excellent idea if you are starting your WordPress journey. In this article, I will give you a detailed guide on installing WordPress on your local computer. Follow the steps below to install WordPress on your local computer:

To set up WordPress locally, you need three things:

  1. MySQL: Database Management Software.
  2. PHP: Programming Language
  3. Apache: Web Server Software

It can be a very tedious task to install all of them one by one, especially for a beginner. That’s where Xampp comes into the picture. Xampp is a software package that mimics a complete environment that WordPress needs to function. Apart from this, you also need to download and install WordPress on your local computer. Let’s see how it’s done:

  1. Download the Xampp from the official website of Apache Friends. Open the installer and keep clicking next to install Xampp in default settings.

    Xampp Installation

  2. The next thing that you need to install is WordPress. Click here to download WordPress.

    WordPress Download

    Once you open wordpress.org, you will find a download WordPress button at the bottom of the page. Click it to start downloading WordPress, as shown below!

    WordPress Download Button

  3. Once the download is finished, a zip file will be downloaded. Extract the contents of the zip file, and a folder named “WordPress” will be created as shown in the animation below:

    Extract WordPress

  4. Now, copy the WordPress folder and navigate to C://Xampp/

    Copy WordPress Folder

  5. Paste the WordPress folder inside C://xampp/htdocs, as shown below. The "htdocs" folder contains all the websites that xampp will run:

    Paste WordPress in htdocs

  6. Now, we need to start the Apache and MySQL module. Type “Xampp Control Panel” in the search bar of Windows 10 and open the Xampp application, as shown in the below animation.

    Xampp Control Panel

  7. Click on the start buttons in front of Apache and MySQL modules. You should see the status turn green after you start them.

    Start Apache and MySQL

The next thing that we need to do is to set up a database for our WordPress website. So, open your web browser and head over to localhost/phpmyadmin

phpMyAdmin

  1. Now, click on “Databases” and create a new database with the name "wordpress".

    Create Database

  2. Now head over to localhost/WordPress.

    WordPress Setup Config

  3. Enter the name of the database in which you want WordPress to save your data. In our case, it is “wordpress” because we created a database named wordpress in PHPMyAdmin.

  4. Enter ‘root’ as the user name and leave the password blank. This is the default configuration of Xampp.

Database Configuration

  1. WordPress requires you to fill in some details like name, email address, user name, and password for your WordPress site. Fill in all the details correctly, and then click on the “Install WordPress” button.

Install WordPress

That's it! Congratulations on successfully installing WordPress on your local computer. I guarantee that if you’ve followed every step correctly, then you will get your WordPress installed within minutes. On logging in, you will see a beautiful but confusing dashboard for a beginner.

Don’t worry! I’ve got you covered. Click here to watch my WordPress tutorial free.

Tags

installandsetupwordpresslocallyfree