Who should be the owner of the folder /var/www (apache)?

After installing Apache on Raspbian rights on /var/www from root. So it is necessary to leave? Or create another user and transfer the rights to him? If you with explanations for things.
July 4th 19 at 22:58
3 answers
July 4th 19 at 23:00
That's when you can answer the question "why" - and then get the answer to the first part of the question.
I thought that there is some standard practice. All individually? - wiley_Robel81 commented on July 4th 19 at 23:03
: In front of the intersection. Where do I turn, left or right? Now the wheel is in position "directly". I assume there is some standard practice... - Concepcion.Walsh commented on July 4th 19 at 23:06
OK, if we discard all unnecessary and Your responses, I understand correctly that there should remain something of type "the answer to the question depends on the set before the web server task"? If so, is it enough for more specific response information that is a public web server with WordPress? Or it is necessary to take into account more factors? - wiley_Robel81 commented on July 4th 19 at 23:09
: WordPress you just have to write in some directories, as I recall he tells what. All other writing is not required, and a standard will be quite handy. - Concepcion.Walsh commented on July 4th 19 at 23:12
: Got it, thanks! - wiley_Robel81 commented on July 4th 19 at 23:15
July 4th 19 at 23:02
Well, as far as I know, for example, in Ubuntu, the Apache user is www-data, I think in raspbian should be. I think the rights those that default should be the most correct.
Ie, when you install Apache it creates the user and /var/www belongs to him? On Raspbian, all Ruth.. - wiley_Robel81 commented on July 4th 19 at 23:05
July 4th 19 at 23:04
I would have left standard right, but the contents of that directory you can set the owner and rights as needed.

Find more questions by tags Raspberry PiUbuntu