What a joke Local app is. I never had such problems like this with Desktop Server. What a sad day for the entire WordPress community to have this.
Support now is non existent - Flywheel Local is a joke & needs to be removed .
Exact same problem… 502 Bad Gateway… I will have to go back to MAMP!
Hi @benselby and @RanaRene - please see my post several messages above. 502 Bad Gateway (nginx/1.16.0) in all sites after update - #12 by austinwendt
What you’re describing is expected on computers still running macOS Mojave or prior. Nick and I have replied in this thread several times trying to help troubleshoot; saying support is nonexistent isn’t fair to the many Local team members and community members who work threads in here.
I’m sorry Local hasn’t been the best tool for you, and I understand if you choose to use another tool better suited for your situation. @bensieg if you have reverted to Local v6.4.3 and are still seeing issues, please share your log file again and I will start a new thread for us to troubleshoot that specifically. The issue mentioned by the OP in this thread has been solved.
Where is the log file found? I am looing all over Local and don’t see where this is. Where do I get it?
Hi,
I revert to Local v6.4.3, now i can use any php version and the front works, but cant access to wp-admin. 503 service unavailable. Any idea?
Thanks
Here is a guide to finding that log file - Retrieving Local’s Log File - Local
@lolobomac - if you share your log file as well, I can take a look.
@lolobomac Thanks for sharing those, that gives us more info to go on. There is an ETIMEDOUT error in the logs that I’m looking into.
Is this for all of your sites, or just certain sites? If you create a new site using the same PHP version, are you able to access that wp-admin?
Here’s my log
local-logs.zip (12.0 KB)
I’m getting the same for every site whether I import it or create a new one, or create one from a blueprint:
502 Bad Gateway
nginx/1.16.0
Thanks Ben, I will take a look. Can you share a screenshot of the page you’re seeing? That can help us track down where the 502 is originating from.
In all old sites. With a new site i can use any php version and have access to wp-admin.
On old sites cant access to wp-admin:
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
But the site is running.
It’s a blank white page with the following info you see in the little screenshot I made.
Hi @austinwendt - thank you for your reply. Please be aware I 1st reported this issue Nov 3 - and still have exact same issue - Bad Gateway. I am still running MAC 10.13.6 which works fine with MAMP & all other apps I use.
I have over 30 sites active in my Flywheel LOCAL install - and I get Bad Gateway 502 on all if I use any version of PHP above 7.3.5. I can load , say PHP v8 - but if I do that Wordpress fails to load plus I get the 502 error. I have switched back to Local v6.4.3 & have tried deleting this folder ~/Library/Application Support/Local/lightning-services - all to no avail.
What do I do to get this fixed?
Thanks
That (plus the logs) tells me there is a PHP configuration mismatch between what your existing sites have and what your brand new sites are getting.
On an old site, can you try:
- Starting the site
- Switching the PHP version to a new value (doesn’t matter, as long as it isn’t the current version)
- Click “Apply” next to the PHP version, and “Apply changes” when the modal pops up
- When the processes finishes, repeat this and switch it back to the original value
This is a shortcut to forcing the PHP config to refetch itself from the global configuration new sites are using. Does this clear up the 502 for the site?
@benselby I’d be interested in seeing if this is the same fix for you. Is yours also only existing sites, while new sites function as expected?
No. I get a 503 error on wp-admin.
I am having a degree of success.
I have set all of my Flywheel domains to use PHP v8 - this was quite laborious as I had to repeatedly delete “lightning-services” every time - but now all is much better.
If I try to use PHP above v8 - WordPress will not load producing a Bad Gateway 502 error.
If I add anew site I have to use PHP v7.4.1 - cannot use PHP v8
Hope this helps
EDIT! Just added new site using PHP v8?? Not sure what is going on now
EDIT2: Just loaded a DIVI site using PHP v8 - it loads but against WORDPRESS on Flywheel panel ( get this error message:-
[14-Dec-2022 11:18:07 UTC] PHP Warning: Failed loading Zend extension ‘’ (tried: /Users/runner/work/_temp/local-lightning-php/php-8.0.0/build/lib/php/extensions/no-debug-non-zts-20200930/ (dlopen(/Users/runner/work/_temp/local-lightning-php/php-8.0.0/build/lib/php/extensions/no-debug-non-zts-20200930/, 9): image not found), /Users/runner/work/_temp/local-lightning-php/php-8.0.0/build/lib/php/extensions/no-debug-non-zts-20200930/.so (dlopen(/Users/runner/work/_temp/local-lightning-php/php-8.0.0/build/lib/php/extensions/no-debug-non-zts-20200930/.so, 9): image not found)) in Unknown on line 0
I see this error quite a lot but the sites still seem to run OK
Interesting - that’s good that it is working! Which PHP version are you selecting? PHP 8.0.0? If that is the case, my assumption is that PHP 7.4.1 would work and PHP 7.4.30 wouldn’t. That sounds like what you saw.
@lolobomac @bensieg same question to you - which version of PHP do you have running on your site? Looking at (other) Ben’s response, does switching to PHP 8.0.0 resolve the issue?
Correct - PHP v8 - anything higher - Wordpress will not load.
Same if I try to use PHP 7.4.30 - no Wordpress but YES PHP 7.4.1 works fine!
Very grateful for your help - THANKS!
I switched all of mine down to PHP v7.4.1 and closed down Local. Checked Activity Monitor to see that all processes for that stopped.
Opened Local up and switched them all to PHP v8.0, and then shut down Local and checked to make sure all processes had stopped.
I then opened up Local and I’m still getting the same error on all sites. Super frustrated with this app.