Ok I feel like this is a very dumb question but after years of working with Ubuntu/LAMP I still don't know the answer.
Out of the box of course the Ubuntu LAMP server uses the www-data user for apache.
My question is how should I be handling ownership of these files if I am not actually using the www-data user for my own login?
If my username is aaron, then of course any files I create will be owned as aaron:aaron. What I have been doing is periodically changing ownership of all Web files to www-data:www-data. But is this the right way to do things?
I know the question seems ridiculous but I am just curious how others handle this type of thing.