Hi I set up wordpress on a VPS and I'm running into two problems:
- Either WordPress asks for ftp details in order to update plugins or delete them
- Through FTP I cannot delete files as I get a permission denied error.
Problem 1 is solved by running: sudo chown -R www-data public_html
Problem 2 is solved by running: sudo chown -R myusername public_html
Solving one problem creates the other apparently. I want to be able to login with my user to ftp and modify anything, while I also want wordpress to be able to update plugins and such things. Am I doing something wrong?