After updating the PHP version of my site from within local to PHP v7.4.1 via Local, I get a 502 Bad Gateway Error when trying to visit the local site in a browser. Also, the “WordPress Version” line for the site within Local just shows the three loading dots and never shows the WordPress version. Thinking this may be part of the issue.
The only way to resolve was by reverting back to PHP v7.3.5.
System Details
Which version of Local is being used? v5.9.7+5156
What Operating System (OS) and OS version is being used? Mac OS Big Sur
Attach the Local Log. See this Community Forum post for instructions on how to do so:
I already had a site using PHP v7.4.1 and after upgrading Local, I started getting 502 errors. Downgrading the PHP to v7.3.5 fixed the issue for me.
I also tried creating a new site with PHP v7.4.1 and received an error that Local was unable to install WordPress. Downgrading the PHP to v7.3.5 fixed this issue as well.
I can’t get any site to run on 7.4.1, but I get a 503 Service Unavailable error instead of the 502. Switching to 7.3.5 ‘solves’ it. This occurs wether I change an existing site or start new.