I have homebrew's php70 installed and successfully connecting to apache via a unix domain socket.
I had to use sudo to start php though:
sudo brew services start php70.
If I don't do this, the socket is created under my regular user account name, rather than with owner _www, the latter being essential to allow apache to access the socket.
Should I be starting php70 as root like this, or is there a safer way?
I tried creating a group with my own user name and apache as members of it, with intention of creating the socket under that group, but gave up as not entirely sure on the right track.
Am I wasting my time trying to avoid use of sudo? Maybe the answer is just .. 'it depends'.. ?