Configuration:
- VPS from DigitalOcean
- WordPress
Installation
Refer to How to migrate or install WordPress by Tomaž Zaman for most settings. It also includes guidance on migrating wordpress (files and database) from a previous one.
Add a FTP user
In order to update plugins, a ftp user needs to be created. WordPress searches $HOME and its subdirectories for uploads/wp-content . If your vps/ftp user does not meet that condition, you can to create a different ftp user with:
sudo groupadd ftp-users
sudo useradd --home $HOME --group ftp-users --shell /bin/bash ftpadmin
sudo passwd ftpadmin
Change permission:
sudo chown -R ftpadmin $HOME
sudo chmod 755 $HOME
Reference: VSFTPD Installation & Setup on Ubuntu by rosenred
Edit existing FTP user
For existing user, its $HOME can be changed at /etc/passwd