xdebug-osx icon indicating copy to clipboard operation
xdebug-osx copied to clipboard

Issue with restarting php-fpm

Open sjelfull opened this issue 8 years ago • 7 comments

I got this error when trying disable for the first time:

$ xdebug-toggle off

Xdebug has been disabled, restarting php-fpm
/Users/fred/Library/LaunchAgents/homebrew.mxcl.php70.plist: Could not find specified service

When looking at brew services list, this is the line for php-70:

php70                      started root /Library/LaunchDaemons/homebrew.mxcl.php70.plist

sjelfull avatar Mar 13 '17 14:03 sjelfull

Which macOS is this?

w00fz avatar Mar 13 '17 23:03 w00fz

It's Sierra, 10.12.3.

sjelfull avatar Mar 14 '17 11:03 sjelfull

I'm having trouble also restarting the plist you pointed out from the services list, via launchctl. I think I'll fallback to just use brew services manager for restarting the service, which seems to automatically tap to and install if missing.

Can you try my last commit and see if that makes it work?

w00fz avatar Mar 17 '17 14:03 w00fz

Using brew services restart php${php_version} works for me. Thanks!

glaubersp avatar Mar 21 '17 18:03 glaubersp

Same here 🎉

sjelfull avatar Mar 22 '17 10:03 sjelfull

Same problem here with PHP 7.1

xdebug-toggle on

Xdebug has been enabled, restarting php-fpm
/Users/JM/Library/LaunchAgents/homebrew.mxcl.php71.plist: Could not find specified service

You are running PHP v7.1 with Xdebug enabled

Running brew services restart php71 unfortunately didn't fix it

sgtlambda avatar Apr 02 '17 14:04 sgtlambda

@sgtlambda is the php71.plist file the only one missing in that folder? I don't have FPM in my setup but that sounds like it should be there, unless it has changed?

w00fz avatar Jul 05 '17 16:07 w00fz