Contact Us

How to Install WordPress on Windows 10 locally

June 25, 2022
How to install WordPress on Windows 10 locally

WordPress is one of the best platforms that help build professional websites for businesses. Installing WordPress locally on your computer will help you build high quality websites, themes, plugins… Using some tools like XAMPP will help you run WordPress locally on windows 10 and you can build your entire website locally, then export it using WP Migration plugin which will help you re-import your website on a hosting server.

Hosting a WordPress website online in the development phase may cost some money and some time to achieve. The solution is to install WordPress locally and build your website whenever you have time, and once you’re done you can purchase a hosting server and a domain name and put your website online.

In this article we will show you step by step how to setup a WordPress website locally on your computer using XAMPP. First of all let’s talk about what is XAMPP and how it works. 

What is XAMPP ?

XAMPP is an open source web server that allows programmers and developer to write and test their code on a local webserver using Apache, MySQL, PHP and Perl. It was developed by Apache on September 2002. This amazing tool includes a lot of servers and databases such as MariaDB, Apache HTTP Server and interpreters for PHP and Perl. 

Some XAMPP advantages

  1. XAMPP is a very easy and simple to use software compared to other webserver software like WAMPP.
  2. It can be used on both Windows and Linux.
  3. Clicking a simple button allow you to start and stop apache and database servers using the XAMPP’s control panel.
  4. Using XAMPP, you can access PhpMyAdmin dashboard very easily.

XAMPP is actually not the only software that provides a control panel to manage webservers or database servers locally. There are many other software that does the same job as XAMPP. However, we choose XAMPP because of its flexibility and simplicity.

How does WordPress work locally ?

Now that you know what is XAMPP and how it works, let’s see how WordPress will work locally on your computer. A WordPress local website is a simple WordPress website installed locally using a local database and a local webserver (XAMPP). You have the ability to modify your website as much as you want in a safe way.

Once you are done building or modifying your website locally, you can export it and host it online or replace your existing website by the local one.

Installing WordPress on Windows 10 locally

Step 1 : Download and install XAMPP

Downloading and installing XAMPP will be the first step on your way to install WordPress locally on your computer. This software as we explained previously in this article will help you run a webserver and MySQL server locally on your machine. You can download it from this link.

Installing WordPress on Windows 10 locally

Once the .exe file is downloaded, run it to install XAMPP, then click Next to continue.

In the next step of XAMPP installation, the installation panel will ask you to choose the components you want to install with XAMPP. For our case we only need to select Apache, MYSQL, PHP and phpMyAdmin. So check them and click next

Installing XAMPP in windows 10

Now, you can select which folder you want to install XAMPP in. You can leave the default option and click next.

Installing XAMPP in windows 10

In this step, XAMPP installer is asking us to download Bitnami but we do not need that to install WordPress, so just uncheck the box and click Next.

Installing XAMPP in windows 10

Now click next to install XAMPP.

Once the installation done, feel free to click Finish.

Step 2 : Apache and MYSQL configuration

The XAMPP software was successfully installed on your computer, so now open the XAMPP control panel and click on start button for both Apache and MySQL as shown bellow.

Installing XAMPP in windows 10

If there was no problem, you will see Apache and MySql’ background in the green color which means both servers are running and everything is good.

In order to test everything we have done till now, you should open your browser and go to http://localhost/dashboard . If you see a webpage like the following image, then you are good to move on to the next step. Otherwise, please go back and check if you missed any of the steps we described previously.

Step 3 : Download and add WordPress to XAMPP

Now, you need to download WordPress from this link, and copy the installed folder and then paste it in the folder called htdocs which you can find in the XAMPP file location (C://xampp).

Adding WordPress to XAMPP in htdocs file

The htdocs folder is actually the holder of all PHP local projects, and since WordPress is a PHP platform we need to put the project folder in the htdocs folder. 

Step 4 : Create a new Database to hold our websites’ data

PhpMyAdmin is simple dashboard that help manage MySql databases very easily. We can manage Databases, Tables, Views…

In order to build our website, we need a database and that is why we are using PhpMyAdmin. Go to this link to access the dashboard http://localhost/phpmyadmin/ , then click on New to create a new database. 

Enter a name for your database and click create. You can put whatever the name you prefer.

Adding database in PhpMyAdmin

Step 5 : Install WordPress

Normally, if you arrived to this step then you have installed everything and you ran all the servers we need. You also prepared the database to hold the data of our website.

In order to install website go to http://localhost/FOLDERNAME. The FOLDERNAME is the name of the WordPress folder you put in the htdocs folder. 

Choose the language of your WordPress website and click next. Now you need to provide some general information about the website. 

Database Name : The name of database you created in PhpMyAdmin.

Username: “root”

Password : Just leave it blank

Installing WordPress in windows 10 locally

Once you are done and you have completed the installation process then click finish. 

Congratulations! Your WordPress website is ready. Go ahead and start building cool websites.


Learning to install and work with WordPress locally on your computer will help you understand a lot of things and build cool themes and plugins. Since you are not aware about any cost of money in the domain name or the hosting, you can build as much as you want of WordPress websites on your computer without paying anything. 

I hope you enjoyed reading this article and Thank you.

Web Design Services

Looking for a web design agency to bring your business online and build the website you need to get more high quality clients ? agency is ready to help you build your beautiful looking website.

Latest Blogs

We are a team of creative thinkers and problem solvers dedicated to expanding the limits of what is possible by helping brands achieve their goals.

Social Media

Copyright © 2021 Grow Your Business. All rights reserved.