Best way to set ownership of web root
I’ve created a droplet, but the owner and group is root.
In other set-ups, I’ve seen the web root have user and group of something like www-data or apache.
How do I emulate this set-up so I can read and write files to my web root without needing to run commands as sudo?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×