I am really confused about ownership www-data vs [username] (ex: admin, mike). www folder owned by [username] same as any folder or file created, great. So why do I need to change owner to www-data? some applications/scripts does not work unless owner is www-data.
After changing owner to www-data then logging to FTP/SFTP by [username] I cannot change anything as "Permission denied".
Is it possible to set owner to "www-data" and do not get "Permission denied"?
Is it important to set owner to "www-data"?
I understand it's apache user and group but I thought folder should be owned by website username.