Home > database >  Can't restart PHP with homebrew on macOS
Can't restart PHP with homebrew on macOS

Time:07-08

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?

Edit: Solved by using 'chown' on a sub directory that was still running under the wrong user.

CodePudding user response:

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

CodePudding user response:

Edit: Solved by using 'chown' on a sub directory that was still running under the wrong user.

  • Related