-
Notifications
You must be signed in to change notification settings - Fork 706
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
valet change folder ownership #1220
Comments
Hi, all! I wanted to chime in on this one, since I've written about this as well when I was dealing with this issue in PHP Monitor and even shipped a feature/workaround that "fixes" this, called "Fix Homebrew Permissions". I don't think anything can be done about the ownership (it's a consequence of running If implemented, you could then feasibly run Technical detailsIn phpmon, I restore the ownership like so...
... for the following directories: let directories = [
"\(brewDir)/Cellar/\(formula)"
"\(brewDir)/opt/\(formula)"
"\(brewDir)/var/homebrew/linked/\(formula)"
]; So this has to happen for all installed PHP versions/formulae as well as for |
@PATROMO What are the reasons for running php as root? (Thanks for chiming in @nicoverbruggen) |
I believe running all those services as |
@nicoverbruggen thanks for explaining :) |
That's a Homebrew thing, though. I don't think we are supposed to change those permissions as long as the services are running, or we risk breaking the services in question. I believe one of the reasons was that for the services to start at boot (which happens via a I was also able to find this explanation:
|
Thanks @nicoverbruggen. Looks like we probably won't be intervening here if it's a Homebrew thing. |
I'm just going to do a quick recap to make sure A) I'm understanding it correctly and B) this is clear to others in the future.
|
@mattstauffer As far as I understand it, your recap is correct! Since it was not a difficult issue to fix, I've opened an MR with a my proposed enhancement/fix 😙 |
After fresh brew php installation:

After valet usage:

This causes problems when upgrading the php version in the future.

The text was updated successfully, but these errors were encountered: