I have a WordPress installation on my first VPS, and ownership problem with www-data user and user I created (let's call it user1) to use for login (I disabled root login).
I use user1 for FTP, but I can't overwrite the files owned by www-data, and if I chown all files to user1, I can overwrite, but WordPress is not able to install anything from dashboard or delete, until I return ownership to www-data.
How can I have both? FTP user that's capable of writing, overwriting files, and being able to add, remove, update plugins from dashboard?
Thanks in advance!