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

StepWhat you do
1Download Local from localwp.com and run the installer
2Click Let’s Go! and approve any prompts
3Click Create a New Site and fill in the form
4Click Allow access on each Windows Defender pop-up
5Click Admin to open the WordPress login screen

What you need before you start

ItemRequirement
Windows versionWindows 10 (64-bit) or Windows 11
Memory4GB of RAM
Disk space1.5GB, more for large sites
AccountNo Flywheel or WP Engine account is required
CostLocal 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

  1. Go to localwp.com and click Download For Free.
  2. 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.
  3. Run the installer when the download finishes and follow the prompts.
  4. Click Let’s Go! on the start-up screen.
  5. 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

  1. On the dashboard, click Create a New Site.
  2. Enter a site name; you can change it later.
  3. Under Advanced Options, you can choose a domain with a suffix and change the folder where site files are stored.
  4. Choose Preferred for the recommended setup, or Custom to configure the environment yourself.
  5. Enter a WordPress username, a strong password and an admin email address.
  6. 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.

  1. Right-click the site in Local’s sidebar and select Open site shell.
  2. If you do not know the username, list the users.
wp user list
  1. Reset an existing administrator’s password, replacing the placeholders with the user’s email and your new password.
wp user update <your-email> –user_pass=PASSWORD
  1. If no user exists, create an administrator; WP-CLI generates a random password unless you add the –user_pass option.
wp user create USERNAME <your-email> –role=administrator

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.

  1. Download and unzip the WordPress package.
  2. Create a database, then create a database user with all privileges on it in phpMyAdmin.
  3. Optionally rename wp-config-sample.php to wp-config.php and enter your database details; if you skip this, the installer creates the file.
  4. Put the WordPress files in your web root, or in a subfolder.
  5. Open /wp-admin/install.php in your browser, or /your-folder/wp-admin/install.php for a subfolder.
  6. Enter a site title, admin username, password (twice) and email address.

The WordPress documentation says the database host is usually localhost.

wp-config.php settingWhat to enter
DB_NAMEThe database name
DB_USERThe database username
DB_PASSWORDThe user’s password
DB_HOSTUsually 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

PointLocalXAMPP
Server, PHP and databaseBundled (PHP, MySQL, Nginx)Apache and MySQL, managed from the control panel
WordPress installCreate a New Site formManual: database, files, install.php
Intended useLocal developmentDevelopment only

Local’s FAQ says you can later move a site to Flywheel or WP Engine with its Connect feature.

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.

Leave a Reply

Your email address will not be published. Required fields are marked *