Install WordPress on Windows

There are some reasons why you should build and test your website locally.  It enables you to test out themes, plugins, and files before your website goes live. 

One of the major ways to build a WordPress site locally is to use an application called XAMPP. This article will walk you through the step-by-step process of installing WordPress on Windows using XAMPP.

Install WordPress On Windows Using XAMPP

Step 1: Download and Install XAMPP locally

XAMPP is an abbreviation for cross-platform, Apache, MySQL, PHP, and Perl. You can download XAMPP from a website named Apache Friends.

Select a compatible file version from the list of options and click the download button. The average size of a XAMPP file is about 150MB, so this might take a few minutes to download completely, depending on your network connection.

Install WordPress on Windows

After downloading, run the file to launch the XAMPP installer

Install WordPress on Windows

Click on the Next button

Install WordPress on Windows

To install your WordPress website locally, the required modules are MySQL and phpMyAdmin. Uncheck every other component and click the Next button

Install WordPress on Windows

Select a folder to install XAMPP but just leave it at the default option if you are not sure.

Click on the Next button.

Install WordPress on Windows

A new screen will pop up asking you to install Bitnami for XAMPP. Installing Bitnami is not necessary when installing WordPress locally, so you are to uncheck the box.

Click on the Next button.

Install WordPress on Windows

It will request for your preferred language. Click on the Next button

Install WordPress on Windows

The new screen reads that you are now ready to Install. Click on the Next button.

Install WordPress on Windows

The installation process might take a few minutes

Install WordPress on Windows

After installing, you have the option to launch the XAMPP control panel

Click on the Finish button

Install WordPress on Windows

Step 2: Run the Apache and MySQL modules

For your WordPress to function locally, you would have to run two modules – Apache and MySQL, through the control panel.

In the Control panel, click on the Start button to launch both modules

Install WordPress on Windows

After launching them, their status turns green, indicating that they have started running

Install WordPress on Windows

To test that your local server is working, go to your web browser and type in:  http://localhost/. If your local server is working, it will display the window as seen below

Install WordPress on Windows

Next is to install your WordPress files

Step 3: Install WordPress Files

To add WordPress files locally, go to and download the latest version of WordPress

Go to the folder where you installed XAMPP on your Windows and search for the htdocs folder.

Install WordPress on Windows

Open the htdocs folder and create a new folder in it for the new site. You would want to give it a name that is easy to remember and locate. In this case, let’s call ours test site.

Install WordPress on Windows

It is also important to note that the folder name given will be used to access your site when testing it in your web browser. Again, in this case, we can check our site using http://localhost/testsite on our web browser.

After creating the folder named test site, extract the WordPress file you recently downloaded into it.

Step 4: Create a WordPress Database

Now, you would need to create a database for the WordPress you installed. You can do this using MySQL.

Go to your XAMPP control panel and click the Admin button for the MySQL option.

Install WordPress on Windows

This opens the phpMyAdmin window. Click on the Databases option on the top part of the window.

Install WordPress on Windows

Give your database a name. It is also essential to also use a name that you can remember because you will need it in a minute!

Install WordPress on Windows

When creating a database locally, you don’t need to create a username and password, unlike building your website live. Click on the Create button.

Step 5: Install your WordPress Locally

Revisit your site using the link: http://localhost/testsite, this time you would see the WordPress installer

Install WordPress on Windows

You would see the information that will be required during the installation process. Click on Let’s GO

Fill in the required information. Your database name is the name of the database we created initially, Username is the root.

Click on Submit

Install WordPress on Windows

Next give your website a title, fill in your username and password. Click on Install WordPress

Now your WordPress was successfully installed, it is time to log in.

You can access your local WordPress site by going to localhost/testsite, and WordPress admin by going to localhost/testsite/wp-admin


Installing WordPress on your Windows is quite straightforward and once you get a hang of it, you can go on to test as many websites as build before going live. We recommend the use of XAMPP because of its simplicity but feel free to try out other local server applications.

Have you installed WordPress on Windows using a different method? Feel free to share with us. If you encountered any challenges while installing WordPress using XAMPP, please reach out to us too. We would be happy to help out.

Was this helpful?

What’s your goal today?

1. Find the right Web hosting solution

If you’re looking for industry-leading speed, ease of use and reliability Try ScalaHosting with an unconditional money-back guarantee.

2. Make your website lighting fast

We guarantee to make your WordPress site load in less than 2 seconds on a managed VPS with ScalaHosting or give your money back. Fill out the form, and we’ll be in touch.

Please enter a valid name
Please enter a valid website
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

3. Streamline your clients’ hosting experience

If you’re a web studio or development agency hosting more than 30 websites, schedule a call with Vlad, our co-founder and CTO, and see how we can deliver unmatched value to both your business and your clients.


Need a custom cluster or professional advice?

Book a meeting and get a free 30-minute consultation with Vlad, co-founder & CTO of Scala Hosting, who will help you select, design and build the right solution - from a single data center cluster to a multi-region & multi-datacenter high availability cluster with hundreds of servers.

Book a free consultation

4. Learn how to grow your website in 2023

An all-star team of SEO and web influencers are sharing their secret knowledge for the first time in years. Learn about the future of SEO, Web Design best practices and the secrets to getting the foundation for your website to thrive. Watch the exclusive webinar.

An Exclusive Insiders Look Behind The SEO and Web Development Curtain


Working in the web hosting industry for over 13 years, Rado has inevitably got some insight into the industry. A digital marketer by education, Rado is always putting himself in the client's shoes, trying to see what's best for THEM first. A man of the fine detail, you can often find him spending 10+ minutes wondering over a missing comma or slightly skewed design.