502 Bad Gateway for first site

What issue or error are you experiencing?
I Just downloaded local by flywheel and I am very excited to start using wordpress, however, when i made my first site, everything worked till I tried to open the site I created. When it opens on chrome, it says “502 Bad Gateway nginx/1.16.0”. I have searched and searched and tried a lot of fixes and they haven’t worked.

This is what it looks like when I set up the site…

I get the feeling it may be because my mac has had issues with local things in the past. For example when I tried using Domestika locally it didn’t work, I had to make it global for it to work. The thing is when I did it for Domestika it didn’t really matter if it was local or global but for this I don’t know if it would make a difference and I don’t even know how I would do it.

What steps has been taken to resolve the issue?
I have already tried to restart everything, use different settings, even ChatGPT couldn’t help me ;-;

System Details

  • Local Version:

  • Operating System (OS) and OS version:
    Screen Shot 2024-02-03 at 17.18.10

Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)

Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi @Illyaas-Sowunmi

The issue is due to your OS version (10.13) no longer being supported with the latest releases of Local. Per our minimum requirements, Local will only work on MacOS 10.15 or higher. You may still be able to use older versions of Local by downloading them from the releases page directly, but in order to use the latest along with the latest versions of things like PHP, you’ll have to update your OS.

1 Like

Ok thank you very much. What is the latest older version I can use on IOS 10.13, if you know what I mean?

I’m not certain but you might have to go back to a Local version in the v5.0 to v6.0 range.

You might be able to spin up a site in current Local app, but you might need to try downgrading your PHP and MySQL versions to the lowest available if you want to try that as well.

OMG thank you very much! I got version 6.4.3 and it works now so far. Although I don’t know how much it will affect my learning curve that I have a much later version of it. How different do you think it would be? and do you think I am better off getting the latest version and reducing the PHP and SQL versions?

1 Like

If you’re just using Local as an instructional tool to learn, it’s not too much of a concern. If you’re working on a site that you’ll want to take live eventually, that’s where things can become tricky. Depending on your webhost, they will likely have minimum versions of WP/PHP/MySQL you will have to use. Due to things like security and performance, it’s always a good idea to keep these as up to date as possible. So it all comes back to what you’re using Local for.

If you are planning to make a site or sites to take live, you could always move them into a Dev or Staging environment first or move them to a live site with privacy mode or something enabled. That way you can test updating the versions of everything first to make sure it doesn’t the break the site before it’s public.

For now, I plan on using it to learn how to use wordpress. My plan is to learn how to use it to make websites then start freelancing to make money as a side hustle. I really hope this works out for me! Since it will be quite a while before my first customer, I assume, I think I will leave that problem till I get there. Hopefully by then I can get a better computer. Do you have any tips for my journey? I already know how to make websites using HTML, CSS and a bit of JavaScript.

1 Like

That sounds like a great plan! :slight_smile:

As far as WordPress-specific tips, it’s a big world, but there are a lot of great resources out there. You can obviously learn a lot from YouTube and other blogs and so on for free, but there are also some great resources out there like WPBeginner that I’d highly recommend if you’re brand new. They’ll become very helpful as you progress.

As far as using Local, you already know where the forums are which you can post and search in for answers but we also have a library of help docs you can use here as well:

Thank you very much for all your help! I never actually thought forum helps can be this quick.


I won’t tell you that it always is this quick but you happened to write in at the perfect time while I was catching things up :slight_smile: :green_heart:

1 Like

oh ok. Well, I’m learning something everyday! It has been quite difficult as a self programming learner having nobody who can help me. But now I have found a few ways I can ask for help which is great!


Hi @Illyaas-Sowunmi -

@Nick-B has been such a help here, I would also recommend a few more resources for WordPress learning!

First, I would check out this workshop that might help you build out your first site (Brian is using Local):

I would also recommend you consider attending our weekly live chat about WordPress, Build Mode - the next one is this Friday, Feb 9th:

Thank you for choosing Local! I will close this thread now but let us know if you have any more questions along the way.


This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.