Setup & site building · Guide
How to Install WordPress on Your Computer

Short answer
To install WordPress on your computer, download a free local tool such as LocalWP or WordPress Studio, install it, and create a new site. The tool installs the web server, PHP and database for you, then gives the site a .local address you can open in your browser.
Key takeaways
- A local site runs on your own computer at an address such as mysite.local, and only you can see it.
- LocalWP needs at least 4 GB of RAM and 1.5 GB of disk space.
- WordPress Studio needs macOS 13 or newer, 64-bit Windows, or 64-bit Debian-based Linux.
- XAMPP bundles Apache 2.4.71, MariaDB 10.11.19 and PHP 8.3.37 or newer in one installer.
- Move a local site live with a migration plugin, and back it up before the move.
What does installing WordPress locally mean?
Installing WordPress locally means running a full WordPress site on your own computer, where only you can see it.
The site lives on your hard drive, not on a web host. You open it in your browser at an address such as mysite.local, and you log in to the same WordPress dashboard you would use on a live site.
Nothing you do there reaches the internet until you move the site to a host.
A local site is the safe place to learn WordPress, build a site before it goes live, or test a theme or plugin update. If a change breaks the local copy, the live site is untouched, and you can start the local copy again in minutes.
Which tool should you pick?
Pick LocalWP if you want the most control over PHP and database versions, or WordPress Studio if you want the fastest start with no setup.
Both tools are free desktop apps that install the web server, PHP and the database for you. XAMPP is a third option, but it needs more manual steps, so it suits people who already know how a server works.
Compare the three tools on the facts from their own docs (checked November 2026):
| Tool | Cost | Needs | Best for |
|---|---|---|---|
| LocalWP | Free | 4 GB RAM, 1.5 GB disk | Matching a live server setup |
| WordPress Studio | Free | macOS 13 or newer, 64-bit Windows, or 64-bit Debian Linux | The fastest first site |
| XAMPP | Free | A download of about 190 MB | Learning how the server parts fit |
LocalWP needs at least 4 GB of RAM and 1.5 GB of disk space, macOS Monterey (12) or higher, or 64-bit Windows 10 or 11, according to the LocalWP install guide.
WordPress Studio needs macOS 13 (Ventura) or newer, 64-bit Windows, or 64-bit Debian-based Linux, according to the WordPress Studio docs.
XAMPP bundles Apache, MariaDB and PHP in one installer, and its Windows download page lists PHP 8.3.37, 8.4.28 and 8.5.13 builds, each about 190 MB. See the XAMPP download page.
If you only want to try WordPress for an hour, the browser-based WordPress Playground runs a site with no install at all. For anything longer, install LocalWP or Studio on your computer.
How do you install WordPress with LocalWP?
Download LocalWP, install it, click Create a New Site, and pick the Preferred environment.
Download the installer from the LocalWP site for your operating system. On a Mac, open the .dmg file and move Local to the Applications folder.
On Windows, run the installer and follow the prompts, then click Allow access on the Windows Defender popups so the parts of Local can talk to each other. The LocalWP install guide gives these steps for each system.
Create the site in four steps:
- Open LocalWP and click Create a New Site.
- Give the site a name, such as
my-test-site. - Pick the Preferred environment, which sets PHP and MySQL for you.
- Set the admin username, password and email, then click Add Site.
LocalWP downloads WordPress, creates the database and runs the install for you. The site then appears in the LocalWP list with a .local address. Click the site name, then WP Admin, to open the dashboard in your browser.
Pick the Custom environment only when you need to match a live server. It lets you choose the PHP version, the web server and the database version by hand. For a first site, Preferred is the right choice, and you can change the versions later from the site settings.
How do you install WordPress with WordPress Studio?
Download WordPress Studio, open it, click Not now on the account screen, and add a blank site.
WordPress Studio is the free local development tool from Automattic, the company behind WordPress.com. The Studio docs describe it as a tool that spins up local sites in seconds and can publish to WordPress.com and Pressable.
It is open source and free, and a WordPress.com account is only needed for preview sites and publishing, not for a local site.
Install it for your system:
- On a Mac, download the installer for your chip, open it, and drag WordPress Studio to the Applications folder.
- On Windows, download the installer from WordPress.com or install it from the Microsoft Store.
- On Linux, download the Debian package and install it with
sudo apt installand the file path.
On first launch, Studio asks about a WordPress.com account. Click Not now to go straight to your first local site.
Then click Add site, stay on Create, pick Blank site, enter a name, and click Create site. Studio fills in the folder, the WordPress version and the PHP version, and you can change any of them.
How do you install WordPress with XAMPP?
Install XAMPP, start Apache and MySQL in its control panel, create a database, then run the WordPress installer in your browser.
XAMPP is an Apache distribution with MariaDB, PHP and Perl in one package, as stated on the Apache Friends download page. The Windows installer for PHP 8.3.37 includes Apache 2.4.71, MariaDB 10.11.19 and phpMyAdmin 5.2.3.
Pick the PHP version that matches the live server the site will run on, since WordPress.org recommends PHP 8.3 or newer. See the WordPress.org Requirements page.
Follow these steps:
- Download and install XAMPP, then open the XAMPP Control Panel.
- Click Start next to Apache and MySQL, and wait until both show as running.
- Open
localhost/phpmyadminin your browser and create a database calledwordpress. - Download WordPress from wordpress.org and unzip it into the
htdocsfolder, in a folder such ashtdocs/mysite. - Open
localhost/mysitein your browser and run the WordPress installer with the database name, usernamerootand a blank password.
The blank MySQL password is normal for XAMPP, but it is also why a local XAMPP site must never be opened to the internet. Keep the site on your own computer, and use a real password when the site moves to a host.
How do you open your local site and log in?
Start the site in your tool, click the WP Admin link, and log in with the admin account you created.
Each tool starts the site in its own way. In LocalWP, click the site in the list and press Start, then click WP Admin.
In Studio, click the site and press Start, then click WP Admin in the preview panel. In XAMPP, start Apache and MySQL in the control panel, then open localhost/mysite/wp-admin in your browser.
Use the dashboard the same way you would on a live site. Install a theme, add a page, or try a plugin, and check the result on the front end at the local address.
The Site Health screen under Tools, then Site Health, shows the PHP version and any problems, and it works the same locally as it does live. The guide to WordPress minimum requirements explains what each version number means.
Write down the admin username and password somewhere safe. A local site has no password reset email unless you set up mail on your computer, so a lost local password means a database edit or a fresh install. LocalWP and Studio both let you change the admin password from their site settings.
How do you move a local site to live hosting?
Export the local site, import it on the host, and update the site address from the local domain to the live domain.
A WordPress site has two parts: the files and the database. Both must move, and every mention of the local address in the database must change to the live address. Doing this by hand means editing the database, so most people use a migration plugin instead.
The safe route uses a staging step:
- Set up the live hosting account and install a blank WordPress on it.
- Install the same migration plugin on the local site and on the live site.
- Export the local site from the plugin, then import the file on the live site.
- Open the live site, log in, and check the homepage, a post and the login page.
The guide to migrating WordPress manually covers the file and database steps for people who want to do it without a plugin.
The guide to setting up a staging site shows the reverse path, copying a live site down to a safe copy for changes. Before the move, back the local site up with the steps in the guide to backing up WordPress, so a failed import costs minutes, not a day of work.
What problems come up most often?
The common problems are a port clash, a missing password, and a local address that still shows after the move.
A port clash happens when another program already uses port 80 or 443, so Apache cannot start. Close the other program, or change the ports in the tool settings, then start the site again. LocalWP and Studio handle ports for you, which is one reason they fail less often than XAMPP.
If the dashboard login fails, check the username and password you set when you created the site.
The admin email on a local site receives no mail by default, so the password reset link will not arrive. Change the password from the tool settings or create a new admin user from the database.
If the live site still shows the local address after a move, the database still holds the old address. Run a search and replace on the database for the local address, such as mysite.local, and replace it with the live domain.
Check the Settings, then General page after the move, since it shows the two addresses WordPress uses. A VPS install is the next step if you want the live server to run the same stack as your local copy.
Frequently asked questions
Does it cost anything to install WordPress locally?
No. LocalWP and WordPress Studio are free, and they install the web server, PHP and the database for you. XAMPP is also free, but it needs more manual steps. You only pay when you move the site to a web host.
What computer do I need to run WordPress locally?
LocalWP needs at least 4 GB of RAM and 1.5 GB of disk space, macOS 12 or higher, or 64-bit Windows 10 or 11. WordPress Studio needs macOS 13 or newer, 64-bit Windows, or 64-bit Debian-based Linux. Both run on most computers bought in the last few years.
Can other people see my local WordPress site?
No. A local site is visible only on your own computer. Other people cannot open it unless you share it through a tool such as LocalWP Live Links or Studio Share, or move it to a web host.
How do I move a local site to live hosting?
Yes. Export the site with a migration plugin, import it on the live host, and update the site address from the local domain to the live domain. Back the local site up first, so a failed import costs minutes instead of a day of work.
Why will Apache not start in XAMPP?
A port clash is the usual cause: another program already uses port 80 or 443, so Apache cannot start. Close the other program or change the ports in the tool settings, then start the site again. LocalWP and Studio handle ports for you, so they fail less often.
Sources
- Install Local LocalWP
- WordPress Studio Docs WordPress Developer Resources
- Download XAMPP Apache Friends
- Requirements WordPress.org
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.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


