Local site works wth PHP7.4, but not with PHP8.2

I’m using the latest of Local on 10.14 Mojave OSX with a WP6.3 site pulled from WPEngine. For some reason, Local didn’t create a wp-config.php file, so I manually created one in the site folder and that worked.

Now the site works with PHP7.4, but doesn’t with PHP8.2 and throws the browser error “The server is temporarily unable to service your request due to maintenance downtime or capacity problems.”

Using Nginx or Apache doesn’t make a difference; the router mode makes no difference. The installed standard OSX Apache is stopped. I raised RAM allocation in wp-config.php with no luck.

Any ideas?

Apache error log:

[Mon Oct 09 09:28:59.849613 2023] [proxy:error] [pid 42192:tid 123145384521728] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /Users/username/Library/Application Support/Local/run/fshWnRvpr/php/php-fpm.socket (unused-domain-string-but-required) failed
[Mon Oct 09 09:28:59.850162 2023] [proxy_fcgi:error] [pid 42192:tid 123145384521728] [client] AH01079: failed to make connection to backend: httpd-UDS

PHP log Warning:

[09-Oct-2023 15:42:50 UTC] PHP Warning: PHP Startup: Unable to load dynamic library ‘/Users/username/Library/Application Support/Local/lightning-services/php-8.2.10+1/bin/darwin/lib/php/extensions/no-debug-non-zts-20220829/imagick.so’

Hi @markratledge

In order to utilize the latest Local releases and features you’ll need to be on macOS 10.15 or higher. More details on our minimum requirements below. You can still utilize older versions of Local/PHP but some features (like PHP 8.2) for example won’t be accessible.

OK, thanks. The newest version on OS 10.15 worked.

1 Like

Glad to hear it @markratledge! Happy Developing :slight_smile:

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