Brew services won’t start

  homebrew, php

After installing redis I noticed that the services are not active and I have an error status for:

I’ve tried everything I found on the internet, including SO but with no luck.

I tried:

  • reinstalling each service
  • launchctl unload and launchctl load~/Library/LaunchAgents/homebrew.mxcl.dnsmasq.plist (I have tried this for each service)
  • brew doctor says: Your system is ready to brew.
  • launchctl enable <service target>

However if I run sudo brew services list everything works except mysql and php (PHP 8.x)

When I try to start each services individually with brew services start SERVICE NAME I get the following error. Here’s for php

Bootstrap failed: 5: Input/output error

Error: Failure while executing; `/bin/launchctl bootstrap gui/501
/Users/mvpop/Library/LaunchAgents/homebrew.mxcl.php.plist` exited with 5.

I ran out of ideas of what I could try in order to be able to start the services.

Any advice would much appreciate.


Source: Ask PHP