Local, formerly Local by Flywheel, is a free desktop app from WP Engine for running WordPress with a real web server and MySQL. It is heavier than Studio and closer to the stack that builds a static site.
For StaticScope, that closeness is the point. An editing site on nginx, with a current PHP version and MySQL, is less likely to surprise you than a SQLite install with a bundled runtime.
Create a site
Local’s interface has changed across major versions, and the labels below describe the current shape rather than a promise about the next release. If a button has moved, look for the same idea under the site’s settings or tools.
- Install Local and open it.
- Select the plus button, or Create a site.
- Name the site. Local derives a local domain from it, usually
name.local. - Choose the environment. Preferred gives you the versions Local recommends. Custom lets you pick the web server, PHP version and MySQL version. Choose Custom if parity matters.
- Set the WordPress admin username, password and email.
- Create the site and wait for provisioning.
PHP and web server choice
PHP
Match the host. If production runs PHP 8.2, use 8.2. If you are testing a plugin update for a range of customers, test the oldest supported version too. StaticScope needs PHP 7.4 or newer and recommends 8.1 or newer. Avoid running a version the host does not offer only because it is newer.
You can change PHP per site from the site overview in most versions; if the control has moved, look under the site’s settings.
Web server
nginx and Apache render WordPress differently in small ways: trailing slashes, case sensitivity, .htaccess, rewrite rules and how a missing file is handled. The static host will almost certainly use nginx or a CDN, so nginx is the closer test.
Apache is the right choice if the site depends on .htaccess or an Apache-only module, or if the client’s current host is Apache and you want to reproduce a bug. Neither choice changes the static output: the build is HTML, CSS, images and files. It changes which URLs WordPress serves and which bugs you see before the build. A site that only works because Apache is forgiving is a site that will break at the static host.
MySQL
Match the major version if the site uses MySQL-specific features or a plugin with strict SQL. For a simple content site the difference rarely shows. For WooCommerce, membership plugins or anything with custom tables, match production.
SSL
Local serves sites over HTTP by default. The site overview has an SSL section with a Trust button. Trusting creates a self-signed certificate and registers it with your operating system. macOS may ask for your password, and newer versions may require adding it to Keychain manually. After that, https://name.local works without a browser warning.
- You do not need SSL for StaticScope. The crawler disables certificate verification, so a self-signed certificate will not fail a build.
- Turn it on if a plugin forces HTTPS, you are testing Secure cookies, or HSTS is part of the site.
- Change the WordPress address too. Use Settings → General or
wp search-replacein a site shell. Otherwise WordPress redirects back to HTTP and the padlock is misleading. - The static site’s HTTPS is separate. Set the published address with
https://; its certificate comes from the host, not Local.
Site shell
The site shell opens a terminal with the site’s PHP, MySQL client and WP-CLI on the path, in the WordPress root. In current versions the button is called Site shell; older versions called it Open site shell. It may be in the site overview, the site menu or the bottom of the window depending on the release.
wp plugin list
wp option get home
wp option get siteurl
wp search-replace 'http://old.local' 'https://new.local'
wp staticscope status
wp staticscope detect
wp staticscope crawl
wp staticscope post_process
wp staticscope check --strict
The StaticScope commands are the same as on any WordPress install. check --strict exits non-zero when a referenced file is missing or a page still points at WordPress, which makes it a useful gate before publishing.
If the shell fails to open, it is usually the shell profile rather than the site. A syntax error in .zshrc or a missing tool can stop Local’s launcher script. Check Local’s logs before rebuilding the site.
Where the files live
On macOS and Linux: ~/Local Sites/<site-name>/app/public. On Windows: under C:\Users\<you>\Local Sites\<site-name>\app\public.
app/publicis the WordPress root, withwp-content.app/sqlholds database dumps.confholds the nginx or Apache config and PHP config.logsholds the server logs.
Local can move a site’s folder; if you do, let the app update its records.
Plugins go in app/public/wp-content/plugins. StaticScope’s working files go under wp-content/uploads/staticscope-* and nowhere else.
For a backup, use Local’s export, or stop the site and copy the folder with a fresh SQL dump. Copying while MySQL runs can give you a torn database.
Connect it to StaticScope
- Check Settings → Permalinks. Choose Post name. The structure must end in a slash; plain permalinks are not supported.
- Check Settings → General. The WordPress address and site address should be the Local URL, not the public domain. If you set them to the public domain, WordPress will generate public links and StaticScope will try to crawl the public site.
- Install StaticScope and the publishing add-on.
- Set StaticScope → Settings → Published site address to the public address. This is what links in the copy point at.
- Leave the basic auth fields empty unless you have put a password prompt in front of the Local site. Local itself does not add one.
- Build a preview and read the report.
- Publish.
If the build cannot connect, test from the site shell:
curl -I http://name.local
If that fails, the problem is Local’s router or the site being stopped, not StaticScope. If it works in the browser but not in the shell, check the hostname resolves to 127.0.0.1 and that Local’s router is running. If the site runs inside a container or virtual machine with a mapped port, StaticScope usually detects the port; if not, use the staticscope_crawl_connect_to filter to point it at the address the server listens on.
Scheduled posts need WordPress to run at the scheduled time. Local uses WP-Cron, which runs on requests, so a scheduled post goes live when someone visits the site or a real cron job hits wp-cron.php. Even then, the static site only changes if a publish runs. The GitHub add-on can publish on schedule, but Local must be running and the Publish site screen open. For anything that must be reliable, put the editing site on a server.
Use the Local URL while editing. If you change the WordPress address to the public domain, the editing site and the crawler both start pointing at the public site. The build will copy the wrong thing or fail.
Limits
- Local is a development tool. Live Links is a tunnel for showing a site to someone, not a production host. The site stops when the app closes.
- The router and hostnames can move. After a major update, check the site still answers on its domain before blaming the crawler.
- Mail is caught by Mailpit rather than delivered. Test form notifications with that in mind.
- Backups are your job. The database and files are on your disk; Local’s Cloud Backups add-on or your own backup is still needed.