Local WordPress, step by step.
How to set up local WordPress on Ubuntu, Debian and Windows with WSL 2: trusted HTTPS, PHP per site, shared cores, local mail, multisite and copies of production.
Local WordPress on Windows with WSL 2
Run WordPress on Windows 10 or 11 inside Ubuntu under WSL 2, on the same Apache, PHP and MySQL as your host, with local names and HTTPS that Windows browsers trust.
Alternatives to Local for WordPress on Linux
What runs local WordPress on Ubuntu and Debian besides the Local app, native or in Docker, and which one fits your work. Dated facts, with sources.
Local WordPress development on Ubuntu and Debian, the whole setup
Run WordPress on Ubuntu or Debian without Docker, on Apache, PHP-FPM and MySQL or MariaDB, with WP-CLI, a local name and trusted HTTPS, step by step.
A PHP version per site with PHP-FPM on Ubuntu and Debian
Run an old site on PHP 8.1 and a new one on 8.4 on the same Apache, each in its own PHP-FPM pool, and check the code before you switch.
Catch local WordPress mail with Mailpit
Keep a local copy of a site from emailing real customers, and read every message it sends in a web inbox on your machine.
Copy a production WordPress site to your machine
From a git repo and a database dump to a working local copy, with the addresses replaced, the uploads loading and no mail reaching real people.
Several WordPress versions side by side, with one copy of each
Test a plugin or a site on another WordPress release without copying the core into every site, by sharing one core per version.
Trusted HTTPS for local WordPress on Ubuntu and Debian
Make your own local certificate authority, sign a certificate for each site and have every browser trust it, without a warning page.
WordPress multisite on local domains
Run a subdirectory or subdomain network locally, with names that resolve, one certificate for every site and the right wp-config.php constants.