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

jrdavidson's avatar

Homebrew PHP

I'm trying to figure out why homebrew is reporting an error with php with the service started. I've tried restarted php with the command brew services restart php but still shows the list when I run the list command again.

Any suggestions?

me@My-iMac ~  php -v
PHP 8.0.2 (cli) (built: Feb  4 2021 17:58:53) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies
    with Zend OPcache v8.0.2, Copyright (c), by Zend Technologies
 me@My-iMac  ~  brew services start php
Service `php` already started, use `brew services restart php` to restart.
 me@My-iMac  ~ brew services list
Name    Status  User            Plist
dnsmasq unknown root            /Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
mysql   stopped
nginx   error   me /Users/me/Library/LaunchAgents/homebrew.mxcl.nginx.plist
php     error   root            /Library/LaunchDaemons/homebrew.mxcl.php.plist
redis   started me /Users/me/Library/LaunchAgents/homebrew.mxcl.redis.plist
0 likes
3 replies
jrdavidson's avatar

It happens everytime I restart my iMac and run brew services start --all

bugsysha's avatar

I do not have it installed locally cause I'm using docker, but you can check nginx and php logs. They should be somewhere in /usr/local/var/log.

Please or to participate in this conversation.