Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't restart PHP with homebrew on macOS

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?

like image 631
LCB1997 Avatar asked Nov 22 '25 16:11

LCB1997


1 Answers

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

like image 59
vinceAmstoutz Avatar answered Nov 24 '25 05:11

vinceAmstoutz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!