I can allow user ec2-user (Amazon AWS) write access to the public web directory (/var/www/html):
sudo chown -R ec2-user /var/www/html
which allows me to use Filezilla.
And I can allow apache write access by:
sudo chown -R apache:apache /var/www/html
which allows me to install plugins, updates, etc on Wordpress.
How can I set the permissions to be able to do both?