How To Install WordPress On Your Own PC (2026)
Quick answer
- Download the free Local app from localwp.com, run the installer, click Create a New Site, enter a site name, choose the Preferred environment, set a WordPress username, password and admin email, click Add Site, then click the Admin button.
- On Windows, click Allow access on every Windows Defender pop-up when you create your first site; if you missed them, update the Allowed Apps section of the Windows Defender Firewall settings.
- Local needs Windows 10 (64-bit) or Windows 11, 4GB of RAM and 1.5GB of disk space; XAMPP with a manual WordPress install is the other route.
Applies to: Local on Windows 10 (64-bit) and Windows 11; XAMPP with a manual WordPress install
The quickest way to run WordPress on your own PC is the free Local app, which sets up the server, PHP and database for you. It takes a few minutes and needs no hosting account.
The other route is XAMPP plus a manual WordPress install, which gives you more control and more steps.
This guide follows Local’s own help documentation, WP Engine’s setup guide, the WordPress install documentation and the XAMPP FAQ.
Table of Contents
- The steps at a glance
- What you need before you start
- Install Local on Windows
- Allow Local through Windows Defender Firewall
- Create your first WordPress site
- What the .local domain does
- Open the WordPress admin
- Reset the admin password in Local
- Install WordPress manually with XAMPP
- Keep XAMPP for development only
- If Apache cannot use port 80
- Which method to pick
- Related guides
- More Windows guides
The steps at a glance
| Step | What you do |
|---|---|
| 1 | Download Local from localwp.com and run the installer |
| 2 | Click Let’s Go! and approve any prompts |
| 3 | Click Create a New Site and fill in the form |
| 4 | Click Allow access on each Windows Defender pop-up |
| 5 | Click Admin to open the WordPress login screen |
What you need before you start
| Item | Requirement |
|---|---|
| Windows version | Windows 10 (64-bit) or Windows 11 |
| Memory | 4GB of RAM |
| Disk space | 1.5GB, more for large sites |
| Account | No Flywheel or WP Engine account is required |
| Cost | Local is free |
Local’s documentation says Windows 7, 8 and 8.1 can run it only with limited functionality, and that 32-bit Windows is unsupported.
Local ships with PHP, MySQL and Nginx, so you do not install a separate web server.
Install Local on Windows
- Go to localwp.com and click Download For Free.
- Choose Windows as your platform and fill in the form; the form also asks for an organization type and requires you to accept the WP Engine Terms of Service and Privacy Policy.
- Run the installer when the download finishes and follow the prompts.
- Click Let’s Go! on the start-up screen.
- Approve any prompts while the required programs install.
When installation finishes, you land on the Local dashboard.
Allow Local through Windows Defender Firewall
Local’s installation guide says Windows Defender will likely show several pop-ups when you create your first site.
Click Allow access on each one so Local’s components can talk to each other on the network.
If you missed them, open the Windows Defender Firewall settings and update the Allowed Apps section.
Create your first WordPress site
- On the dashboard, click Create a New Site.
- Enter a site name; you can change it later.
- Under Advanced Options, you can choose a domain with a suffix and change the folder where site files are stored.
- Choose Preferred for the recommended setup, or Custom to configure the environment yourself.
- Enter a WordPress username, a strong password and an admin email address.
- Click Add Site.
After a few moments the site appears on the dashboard with its details, including its domain.
What the .local domain does
WP Engine’s guide uses my-first-local-site.local as its example domain.
It says Local edits your hosts file to make the domain work.
Multisite is an optional setting under Advanced Options in the same form.
Open the WordPress admin
Click the Admin button for your site on the Local dashboard to reach the WordPress login screen.
Sign in with the username and password you chose in the form.
On the Overview tab you can turn on One-Click Admin, which logs you in automatically.
Reset the admin password in Local
If you forget the password, Local’s troubleshooting page uses the site shell and WP-CLI.
- Right-click the site in Local’s sidebar and select Open site shell.
- If you do not know the username, list the users.
- Reset an existing administrator’s password, replacing the placeholders with the user’s email and your new password.
- If no user exists, create an administrator; WP-CLI generates a random password unless you add the –user_pass option.
Then try logging in to the WordPress admin again.
Install WordPress manually with XAMPP
The WordPress documentation lists a web server with PHP, MySQL or MariaDB and the WordPress package from wordpress.org/download as the requirements.
The XAMPP FAQ says you start it from the control panel, \xampp\xampp-control.exe.
- Download and unzip the WordPress package.
- Create a database, then create a database user with all privileges on it in phpMyAdmin.
- Optionally rename wp-config-sample.php to wp-config.php and enter your database details; if you skip this, the installer creates the file.
- Put the WordPress files in your web root, or in a subfolder.
- Open /wp-admin/install.php in your browser, or /your-folder/wp-admin/install.php for a subfolder.
- Enter a site title, admin username, password (twice) and email address.
The WordPress documentation says the database host is usually localhost.
| wp-config.php setting | What to enter |
|---|---|
| DB_NAME | The database name |
| DB_USER | The database username |
| DB_PASSWORD | The user’s password |
| DB_HOST | Usually localhost |
Keep XAMPP for development only
The XAMPP FAQ says XAMPP is meant for development and is not production ready.
It adds that the MySQL root user has no password by default.
The FAQ says you can open http://localhost/security/ to set a password for the MySQL root user and phpMyAdmin.
The same page says phpMyAdmin is reachable only from the local machine by default.
If Apache cannot use port 80
The XAMPP FAQ lists the ports XAMPP uses: Apache on 80 (HTTP) and 443 (HTTPS), and MySQL on 3306.
It says only one server can use port 80 at a time.
For Windows 10, the FAQ says Microsoft IIS runs on port 80 by default and describes stopping the World Wide Web Publishing Service in Services and setting its startup type to Disabled.
Which method to pick
| Point | Local | XAMPP |
|---|---|---|
| Server, PHP and database | Bundled (PHP, MySQL, Nginx) | Apache and MySQL, managed from the control panel |
| WordPress install | Create a New Site form | Manual: database, files, install.php |
| Intended use | Local development | Development only |
Local’s FAQ says you can later move a site to Flywheel or WP Engine with its Connect feature.
Related guides
If you want a Linux command line next to Windows, see how to install WSL in Windows 11.
If you plan to upload a finished site to a host, see fixing WinSCP connection errors.
Official sources: Local installation guide, WP Engine local development guide, WordPress: How to install and XAMPP FAQs for Windows.
More Windows guides
- How To Install Optional Updates In Windows 11 (2026)
- How To Use Winget To Install Apps In Windows 11 (2026)
- How To Install Docker Desktop On Windows 11 (2026)
- How To Install Git On Windows 11 (2026)
- How To Install Node.js And npm On Windows 11 (2026)
- How To Install RSAT Tools On Windows 11 (2026)
See all: Windows 11 Guides