Problem with missing PHP extensions

Hi, @mikemuller.

I was uninstalling some PHP that was installed with Homebrew a week ago and then this started happening.

Are you confident that there is now no other version of PHP installed on your system? If your shell environment tries to load another version of PHP in addition to Local’s version, it could result in the errors about incompatible libraries that you see.

Some things you can try:

  1. Check that brew info php does not show “Installed”, like this:

    > brew info php
    ==> php: stable 8.3.7 (bottled), HEAD
    General-purpose scripting language
    https://www.php.net/
    Installed
    

    If it’s installed via brew, you can try uninstalling it (brew uninstall php). You may need to uninstall other packages that depend on PHP to do this (brew will tell you if so).

  2. Temporarily rename your shell config file (usually at ~/.zshrc), restart Local, and see if you still see issues. If that fixes things, you may have something in your shell config that’s loading another version of PHP. (Some apps write to your shell config, so it might not be something you’ve added manually.)

If those ideas don’t help, you can also try removing the versions of PHP that Local installed to force it to redownload them as described here.