vitor Posted July 22, 2022 Share Posted July 22, 2022 Welcome @wilson jack, Apple has removed PHP from macOS in the initial release of Monterey. Easiest way to get it back (Alfred will pick it up) is to install Homebrew, followed by brew install php. Link to comment
wellerpond Posted September 12, 2022 Share Posted September 12, 2022 Excellent assist on installing Homebrew! When I paste in "brew install php" I get this error: "zsh: command not found: brew" I am not very comfortable with Terminal so haven't really experimented. Am I missing something obvious? Thank you! Link to comment
vitor Posted September 12, 2022 Share Posted September 12, 2022 Are you on an Apple Silicon Mac? Try /opt/homebrew/bin/brew install php. Link to comment
wellerpond Posted September 12, 2022 Share Posted September 12, 2022 I'm on an apple silicon. Tried your command and got a slightly different message zsh: no such file or directory: opt/homebrew/bin/brew Link to comment
vitor Posted September 12, 2022 Share Posted September 12, 2022 You missed the leading /. As in /opt, not opt. Link to comment
Annika Posted February 24, 2023 Share Posted February 24, 2023 For anyone else who finds this topic: I installed PHP via Homebrew (Apple Silicon) but Alfred was still showing "/usr/bin/php [not installed]". I kept messing around with the Workflow and at some point Alfred automatically discovered where PHP was installed. In the future, I would just quit and relaunch Alfred after installing a missing interpreter. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now