502 Bad Gateway on anything PHP 8+ after updating to macOS Sequoia (15.0.1) and Local (9.0.5+6706)
What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc
The 502 bad gateway error occurs on any existing site I had with a PHP version 8.x.x or higher.
Temporary solution for now is to revert sites back to 7.4.30, but this isn’t ideal long term.
The only exception to this is if I create a brand new site, with recommended settings (PHP 8.1.29 | Web server nginx | MySQL Version 8.0.16). This works fine until I migrate an existing website into this fresh installation. At that point the 502 error returns.
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.
If you use the Site Shell function, can you try disabling all plugins or swapping out a theme on a site with this issue? Just to double check it’s not some site level conflict happening. Otherwise my next recommendation is going to be a full uninstall and reinstall with these steps:
Export any sites that you have on Local and save them to a folder somewhere on your computer: Backup a Local Site - Local
Fully uninstall Local from your computer following the MacOS specific steps here: Uninstall Local - Local
Install the latest version of Local on this link: Releases - Local
Once installed, please restart the computer.
When the computer is restarted and turned on, close any applications that automatically run in the background (AntiVirus, Firewall, and other Developer applications included).