Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Setup & site building · Guide

How to Install WordPress on Windows (Step by Step)

How to Install WordPress on Windows (Step by Step)

Short answer

To install WordPress on Windows, use a local server tool. Local and WordPress Studio create a site in a few clicks, while XAMPP needs you to start Apache and MySQL, create a database, copy WordPress into the htdocs folder and run the installer in your browser.

Key takeaways

  • WordPress needs a web server, PHP and a database, which Windows lacks by default.
  • Local and WordPress Studio are the easiest options for beginners.
  • XAMPP teaches how the server parts fit together.
  • WSL suits developers who want a Linux-like setup.
  • A local install is for building and testing, not for public sites.

Can you install WordPress on Windows?

Yes, you can run WordPress on any modern Windows PC by installing a local server tool such as Local, WordPress Studio or XAMPP, which supplies the web server, PHP and database WordPress needs.

WordPress is not a normal desktop program. It is a PHP application that needs a web server and a MySQL or MariaDB database. Windows does not include those by default, so you install a tool that bundles them.

A local install is private to your computer. Only you can see it, which makes it ideal for learning, testing themes and plugins, and building a site before moving it to a host.

If you want a public website that anyone can visit, you need web hosting instead. A local Windows install is a workshop, not a live site.

Which method should you use to install WordPress on Windows?

Beginners should use Local or WordPress Studio because they set everything up in a few clicks, while XAMPP suits people who want to learn how the server parts fit together.

MethodDifficultyBest forNotes
LocalEasyMost beginners and freelancersOne-click sites, SSL, email testing
WordPress StudioEasyQuick, lightweight local sitesMade by the WordPress.com team
XAMPPMediumLearning server basicsManual database and file setup
WSL with a Linux stackAdvancedDevelopers who want a Linux setupNeeds command-line skills

All four are free. You can also try more than one, as they can live side by side if you keep their ports from clashing.

WordPress itself has modest needs. The official server requirements list recommended PHP and database versions, and the local tools above meet them for you.

How do you install WordPress on Windows with Local?

Download Local for Windows, run the installer, click the plus button to create a new site, choose a name and environment, set an admin username and password, and Local builds the site for you.

Step by step:

  1. Go to localwp.com and download the Windows version
  2. Run the installer and accept any Windows security prompts
  3. Open Local and click + or Create a new site
  4. Enter a site name, such as mytestsite
  5. Pick Preferred environment unless you need a specific PHP version
  6. Enter an admin username, password and email
  7. Click Add Site and wait for setup to finish
  8. Click WP Admin to open the dashboard, or Open site to view it

Local gives each site its own address, often ending in .local. It can also add a trusted SSL certificate with one click.

Our full guide on how to install WordPress using Local covers each screen in more detail.

If a site will not start, Local's Windows troubleshooting guide covers common causes like antivirus software and blocked ports.

How do you install WordPress on Windows with WordPress Studio?

Download Studio from the WordPress.com developer site, install it, click to add a site, give it a name and Studio creates a working WordPress install with an admin login.

WordPress Studio is a free desktop app for Windows and macOS. It uses WordPress Playground technology, so it does not need a full Apache or MySQL setup and stays light on resources.

Basic steps:

  1. Download and install Studio for Windows
  2. Open the app and click Add site
  3. Name the site and choose a folder if asked
  4. Wait a moment while Studio sets it up
  5. Click the link to open WP Admin

Studio is a good choice for quick experiments and theme work. If you need a classic Apache and MySQL environment that matches typical hosting, Local or XAMPP may fit better.

How do you install WordPress on Windows with XAMPP?

Install XAMPP, start Apache and MySQL, create a database in phpMyAdmin, extract WordPress into the htdocs folder, then visit localhost in your browser and run the installer.

Step by step:

  1. Download XAMPP for Windows from Apache Friends
  2. Install it, ideally to C:\xampp, outside Program Files
  3. Open the XAMPP Control Panel and start Apache and MySQL
  4. Visit http://localhost/phpmyadmin and create a new database, such as wordpress
  5. Download WordPress from WordPress.org
  6. Extract the ZIP into C:\xampp\htdocs\wordpress
  7. Visit http://localhost/wordpress in your browser
  8. Enter the database name, user root and an empty password, unless you set one
  9. Fill in your site title, admin username, password and email
  10. Click Install WordPress and log in

This is the same famous five-minute install that runs on web hosts. The WordPress docs explain it in the installation guide.

For screenshots of each step, see our guide on adding WordPress to XAMPP.

What about installing WordPress with WSL?

Windows Subsystem for Linux lets you run a real Linux system inside Windows, where you can install Apache or Nginx, PHP and MariaDB yourself and run WordPress just like on a Linux server.

This route is for developers. It gives the closest match to most hosting servers and works well with command-line tools like WP-CLI and Git.

Microsoft documents setup in its guide to installing WSL. After that, you set up a LAMP or LEMP stack inside the Linux distribution, create a database and download WordPress.

If you are new to servers, start with Local or Studio. You can move to WSL later once you are comfortable.

How do you open the WordPress dashboard on Windows?

Add /wp-admin to your local site address, such as localhost/wordpress/wp-admin for XAMPP, or click the WP Admin button in Local or Studio, then log in with the admin details you chose.

Bookmark the login page so you can return quickly. Local and Studio also remember your sites, so you can start and stop them from the app.

Remember that the server must be running. With XAMPP, start Apache and MySQL each time you restart Windows. With Local, start the site from the app.

Our guide on opening the WordPress dashboard in localhost covers login problems and common addresses.

What problems happen when installing WordPress on Windows?

The most common issues are port conflicts with other software, antivirus tools blocking the server, wrong database details, and Windows file permission prompts.

Typical fixes:

  • Apache will not start: another program, such as Skype or IIS, may be using port 80. Change the Apache port or stop the other program
  • MySQL will not start: another database service may already use port 3306
  • Error establishing a database connection: check the database name, user and password in wp-config.php
  • Site loads slowly: exclude your local sites folder from real-time antivirus scanning, if you trust it
  • Blank page: turn on debug mode and check the PHP error log

If your local site still will not load, see WordPress not working on localhost for more fixes.

What can you do with WordPress on Windows once it is installed?

You can build and test a full site offline, try themes and plugins safely, learn WordPress, and later move the finished site to real hosting.

Good uses for a local install:

  • Testing plugin updates before applying them on a live site
  • Building a client site before they buy hosting
  • Learning the block editor and Site Editor without risk
  • Developing custom themes or plugins

When your site is ready, use a migration plugin or your host's migration tool to move it online. Local also has built-in connections to some hosts. Our guide to setting up a local WordPress development environment explains how local work fits into a full workflow.

Is a local Windows install safe for a real website?

No, a local install is meant for development only; running a public site from your Windows PC exposes it to security risks and depends on your computer and home internet staying on.

Home connections rarely have static IP addresses, and opening ports on your router invites attacks. Proper hosting handles security, uptime, backups and email much better.

Use your Windows install as a safe sandbox, then publish on a host built for WordPress.

Frequently asked questions

Is it free to install WordPress on Windows?

Yes. WordPress is free, and Local, WordPress Studio, XAMPP and WSL are all free to use. You only pay when you move the finished site to web hosting and buy a domain name.

What is the easiest way to install WordPress on Windows?

Local and WordPress Studio are the easiest. Both let you create a working site with a few clicks and no manual database setup. XAMPP takes more steps but teaches you how the server parts work.

Can other people see my WordPress site on Windows?

No. A local install runs only on your computer, so other people cannot visit it. Some tools offer temporary share links for previews, but for a public site you need web hosting.

Why will Apache not start in XAMPP?

Another program is often using port 80 or 443, such as IIS or other server software. Stop that program or change the Apache port in XAMPP's settings, then try starting Apache again.

Can I move a local Windows WordPress site to hosting?

Yes. Use a migration plugin, your host's migration tool, or Local's built-in host connections. You will need to update the site address so links point to your real domain.

Sources

  1. Server requirements WordPress.org
  2. How to install WordPress WordPress Developer Resources
  3. Local Local by WP Engine
  4. WordPress Studio WordPress.com Developer
  5. XAMPP Apache Friends
  6. Install WSL Microsoft Learn

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.