Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

CookieMonster's avatar

brew services list php status showing error?

I am running my application on my mac using laravel valet. I upgraded my php version(phpinfo()) using homebrew. So running:

php -v gives me

PHP 7.4.16 (cli) (built: Mar  4 2021 20:52:51) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.16, Copyright (c), by Zend Technologies

phpinfo() gives me :

PHP 7.4.16

and my composer.json says my php is

"require": {
        "php": "^7.4.5",
.......

How do I change from 7.4.5 to 7.4.16?

And running brew services list gives me this after upgrading my php version:

Name      Status  User        Plist
dnsmasq   error   root        /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
[email protected] started   /Users/name/Library/LaunchAgents/[email protected]
nginx     error   root        /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
php       stopped                        
[email protected]   error   root        /Library/LaunchDaemons/[email protected]

I tried restarting the php and it says has already been started but the status still show as above. Tried using my application normally and everything seems to be working in order. Should I be concerned of the above?

0 likes
2 replies
fylzero's avatar

@nickywan123 Eh, I wouldn't worry about it. I have two Macs and noticed this command always says things have errors. Does PHP work? Nginx? Then who cares what this command says. If anyone has better advice, I'd love to know how to fix these things as it triggers my OCD as well... but I can develop and everything works regardless of what Brew says. So... ¯\_(ツ)_/¯

This thread is interesting: https://github.com/Homebrew/homebrew-services/issues/92

Apparently a common cause of this is just the Mac launchd service losing track of the PID, which is pretty meaningless functionality-wise.

4 likes

Please or to participate in this conversation.