I successfully installed homebrew by following the instructions of the official website (https://brew.sh/).
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
It was installed under /opt/homebrew
I then did install php with brew install [email protected]
If I restart php with brew services restart php I get the following error message:
Permission denied @ rb_sysopen - /Users/USER/Library/LaunchAgents/homebrew.mxcl.php.plist
I use macOS Monterey 12.4
Using sudo to restart php results in the warning:
Warning: php must be run as non-root to start at user login!
Does anybody have an idea on how to solve this issue?
Command to restart my php-fpm:
brew services restart [email protected]
If you don't have brew services, try installing it like this:
brew tap homebrew/services
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With