The easiest way to install WordPress on Windows 10 is with a local server app. Install XAMPP, start Apache and MySQL, create a database in phpMyAdmin, then copy WordPress into the htdocs folder and open it in your browser to run the setup. The site runs only on your PC, so it’s ideal for testing themes and plugins.
Applies to: Windows 10 and Windows 11. Checked against WordPress.org documentation on October 10, 2026.
Choose how to run WordPress
- XAMPP (this guide): free, gives you Apache, MariaDB, and PHP in one install. You set up the database yourself, which helps you learn how WordPress works.
- Local: a free app that creates WordPress sites in a few clicks. It’s the quickest option if you only want a test site.
- WampServer: similar to XAMPP, but Windows only.
All three make a site that only you can see. To put a site on the internet, you need web hosting.
Before you start
- About 1 GB of free disk space.
- An administrator account on the PC.
- Close apps that might use port 80, such as Skype or IIS, or be ready to change the port later.
Step 1: Install XAMPP
- Download the Windows version of XAMPP from the Apache Friends website. Pick the newest PHP version offered.
- Run the installer. If Windows warns about User Account Control, select OK.
- Keep the default components. At minimum you need Apache, MySQL, PHP, and phpMyAdmin.
- Install it to C:\xampp, not to Program Files. Folder permissions in Program Files can stop XAMPP from working properly.
Step 2: Start Apache and MySQL
- Open the XAMPP Control Panel.
- Select Start next to Apache and MySQL. Both turn green when they’re running.
- If Windows Defender Firewall asks, allow access on Private networks only.
To check that it works, open a browser and go to http://localhost. You should see the XAMPP welcome page.
Step 3: Create a database
- Go to
http://localhost/phpmyadmin. - Select the Databases tab.
- Type a name such as wordpress, leave the collation as it is, and select Create.
Step 4: Copy WordPress into htdocs
- Download the latest WordPress .zip file from WordPress.org.
- Extract it. You get a folder named wordpress.
- Move that folder into C:\xampp\htdocs. You can rename it, for example to mysite. The folder name becomes part of your local address.
Step 5: Run the WordPress setup
- Go to
http://localhost/wordpress, or use the folder name you chose. - Pick a language and select Let’s go.
- Enter the database details: Database Name is the name you created, Username is root, Password is blank, and Database Host is localhost.
- Select Submit, then Run the installation.
- Enter a site title, admin username, password, and email, then select Install WordPress.
Sign in at http://localhost/wordpress/wp-admin with the username and password you just chose.
XAMPP’s blank root password is fine for a site that only runs on your PC, but don’t use it on a server that other people can reach.
Step 6: Start and stop your site
- Your site only works while Apache and MySQL are running. Open the XAMPP Control Panel and start them each time you want to use it.
- Select Stop on both when you’re done, to free up memory.
- To delete the site, delete its folder in htdocs and drop its database in phpMyAdmin.
Step 7: Set up permalinks
By default, WordPress uses addresses like ?p=123. To use readable addresses, go to Settings > Permalinks in the WordPress dashboard, choose Post name, and select Save Changes. XAMPP’s Apache already has the rewrite module turned on, so this works without extra setup.
Back up your local site
- Copy your site’s folder from C:\xampp\htdocs to another drive.
- In phpMyAdmin, select your database, open the Export tab, and select Export to save a .sql file.
- Keep both together. To restore, copy the folder back and import the .sql file on the Import tab.
The quicker option: Local
If you don’t want to set up a database yourself, the free Local app does it for you.
- Download and install Local from its official website.
- Select Create a new site (the plus button), give it a name, and keep the Preferred environment.
- Enter an admin username and password, then select Add site.
- Select WP Admin to open the dashboard, or Open site to view it.
Local can also create a shareable link for a running site, which is useful if you want someone to review it.
Moving your site online
When the site is ready, buy hosting, then use a migration plugin to copy the site from your PC to the server. Most hosts also offer a free migration service. After moving it, change your admin password and make sure the site address in Settings > General matches your domain.
If something goes wrong
- Apache won’t start: Another program is using port 80 or 443. In the Control Panel, select Config next to Apache > httpd.conf, change
Listen 80toListen 8080, save, and start Apache again. Then usehttp://localhost:8080/wordpress. - MySQL won’t start: Another database server may be using port 3306. Stop the other MySQL service in Services, or change the port in my.ini.
- “Error establishing a database connection”: MySQL isn’t running, or the database name in wp-config.php doesn’t match the one you created.
- “The uploaded file exceeds the upload_max_filesize directive”: Open php.ini from the Apache Config button, raise
upload_max_filesizeandpost_max_size, and restart Apache. - The page shows a list of files instead of WordPress: You opened the wrong folder. Check the address matches the folder name in htdocs.
Frequently asked questions
Is a local WordPress site free?
Yes. XAMPP and WordPress are both free. You only pay if you move the site to web hosting.
Can other people see my local site?
No. Only your PC can open it. To share it, move it to a hosting account, usually with a migration plugin.
Do I need Windows 10 Pro?
No. XAMPP runs on Windows 10 Home and Pro, and on Windows 11.
Can I install more than one WordPress site?
Yes. Create a new database and copy WordPress into a new folder in htdocs for each site.
If you also want PHP on its own for other projects, see how to install PHP in Windows 10. For containers, see how to install Docker in Windows 10.

Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.
His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.