Install WordPress Locally with Local By Flywheel

Install WordPress Locally with Local By Flywheel Plays from YouTube

A free, step-by-step tutorial by Ferdy. Watch it right here or on YouTube.

Related: Learn more about WordPress

How to install WordPress locally with Local

Do you want to play with WordPress without paying for web hosting? With Local you can build a WordPress website on your own computer, for free. It works on Mac, Windows and Linux. It is a great way to practice, test themes and plugins, or build a site for a client before it goes live.

In this tutorial I download Local, create my first website, make it secure, share it with a live link, change a few settings, create a blueprint so I never have to repeat the same setup steps, and finally move the finished website to real web hosting.

Good to know: I recorded this video in 2021, so some screens in Local may look different today. If you are ready to build a live website straight away, follow my newest WordPress tutorial.

Step 1: download Local and create your first site

  1. Download Local for free. You do not need an account to download it. Choose your platform: Mac, Windows or Linux, and fill in a few details. The file is around 260 MB.
  2. Install it. On a Mac you drag it to your Applications folder.
  3. Open Local and click to create your first website. Give it a name. Under advanced options you can change the local domain and the folder, but the defaults are fine.
  4. Choose the Preferred environment. You can also pick a custom setup, for example Apache instead of NGINX, but I keep it simple.
  5. Fill in a WordPress username, password and email address. Leave multisite off unless you need it.
  6. Click Add site. Local may ask for your computer password. That is normal.

One tip: do not use “root” as username and password. That is common on local websites, but if you later move the site to the internet with those details, it can be hacked easily.

Click Open site to see your website and WP Admin to log in. Now you can do everything you can do on a live site. In the video I install the Blocksy theme and import a starter site, and it works just like online.

Step 2: make your local site secure and adjust settings

Your new site shows “not secure” in the browser. To fix that:

  1. In Local, click Trust next to SSL and enter your computer password.
  2. In WordPress, go to Settings, General and add an “s” to http in the WordPress Address and Site Address.
  3. Save and log in again. Your local website is now on https.

In the site overview you can also change the domain, the web server and the PHP version. That is handy if you want to test a plugin on another PHP version. I like to turn on One-click admin, so I can log in with one click without typing my details. You also find the database here, but I rarely need it.

Under Tools you find Live Links. With a live link you can show the website on your computer to a client or a friend. You need a free Local account for this, so create one and verify your email. Then enable the live link, copy it with the login details and send it. I opened it on my iPad and the site worked.

Keep in mind: your computer has to stay on and Local has to keep running. Turn the live link off when you are finished.

Step 4: preferences and blueprints

In the Local preferences I switch the theme to dark, choose my browser, and set new site defaults, like my default email address and the domain suffix. You can change .local into .com, for example.

Blueprints are my favorite feature. Every time I start a new website I do the same clean up steps. With a blueprint you only do that once:

  1. Create a new site and clean it up the way you like: delete sample pages and posts, remove unused plugins and themes, set your name and site title.
  2. Right click the site in Local and choose Save as Blueprint. I called mine “Start from scratch”.
  3. Next time you add a site, open the advanced options and choose your blueprint. The new site starts in exactly that clean state.

And there is no limit on the number of local websites you can create.

Step 5: move your local website to web hosting

  1. On your local site, install the free All-in-One WP Migration plugin, go to Export, Export to File and download it. This file contains everything, including the database.
  2. Get web hosting and a domain if you do not have them yet, and install a fresh WordPress website there.
  3. On the live site, install All-in-One WP Migration, choose Import and drag your file in. Click proceed and finish.
  4. Log in with the username and password from your local website, not the live one.
  5. Go to Settings, Permalinks, choose Post name and save twice.

Now the live website looks exactly like the local one. I use the same backup and import method, together with emails and the domain name, in this tutorial about moving a website to a new host.

When you quit Local, all local websites stop. Open Local again and start the site you want to work on.

Frequently asked questions

Is Local free?

Yes. You can download it for free and create as many local websites as you want. You only need a free account for live links.

Can other people see my local website?

Not by default. It only runs on your computer. With a live link you can share it temporarily, as long as your computer and Local keep running.

Do I still need web hosting?

Only when you want your website online permanently. For practicing and learning, Local is enough. When you are ready, follow my WordPress tutorial for beginners.

Can I use any theme or plugin in Local?

Yes. It is a normal WordPress installation, so you can install themes like Astra or Blocksy and any plugin you like.

9 thoughts on “Install WordPress Locally with Local By Flywheel”

  1. 2020-04-17 17:20:40 says:

    Hi,
    i’m not able to Download From Link : “https://localwp.com”. Please give any alternate Link.

  2. 2020-04-23 17:42:44 says:

    sir i am new and i want to learn wordpress and join fiverr please help me sir.
    Guide me how to start .

  3. 2020-04-26 16:40:25 says:

    Ik heb een aantal van je tutorials bekeken en leer er veel van. Bedankt voor de duidelijke en leerzame uitleg. Ik heb wel een vraag over “local”. Ik heb Local geïnstalleerd. Dit koste wat moeite maar uiteindelijk, nadat ik mijn virusscanner uitgeschakeld had, lukte dat. Het rare is dat ik de aangemaakt website niet via “view site” kan bekijken (er volgt “404 site not found”) maar wel via de live link. Ik heb al uren gezocht naar een oplossing maar kan die niet vinden. Wat doe ik verkeerd?

  4. Hey Ferdy,

    I really enjoy your tutorials… well done. Thank you. I took your advice on Local by Flywheel. the first couple of days were exactly as you said in the video. this morning I woke up to a message with a critical update with bug fixes. It offered a live update.

    I clicked yes and it created a problem the would not allow me to access my local website. I immediately contact the folks at Flywheel but they have been unresponsive in addressing my problem. this is obviously a bug in their release. Moreover, they do not seem to care about his bug.

    Here’s the error message I receive when trying to start my local site: “Heads-up! Local’s router is having trouble starting.”

    I’ve lost two days of work because of this. Any thoughts on this?
    Cheers,
    Kevin

  5. 2020-06-05 03:21:46 says:

    Hello Ferdy,
    I have searched all over the internet to install wordpress and elementor on my 32 bits windows system, but all failed. Can you help me with a link to download these.
    Thanks.

  6. If you have any existing website that you are not happy with, is it best create a new website in Local by Flywheel and try and move it across or should I just create new pages in the current wordpress admin?

    If I want to start using Envato Elements for the new website, can I do this in my current website?

    Many thanks for your wonderful tutorials

    Kim

  7. 2021-09-21 14:36:35 says:

    I got:

    “Heads-up! Local’s router is having trouble starting.”

    The first time, it said to close anything that uses port 80, so I shut off Firefox and then closed and reopened Local. It then connected. However, as soon as I opened ANY browser, Local went offline again. So, I uninstalled Local, restarted, and reinstalled Local. I also ran SFC /scannow which found no errors. Now, I cannot connect via port 80 and I have no idea why?

Leave your comment

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

Never miss
a tutorial

Every tutorial lives on YouTube. Subscribe and never miss a new one.

Black Friday A full year of Hostinger web hosting + free domain for about $30 with coupon code FERDY1 year hosting + free domain: about $30 with code FERDY Ends Dec 14 Get the deal Ad