Install

sudo apt install apache2

Check status

sudo service apache2 status

Add username for sftp auth

sudo usermod -a -G www-data <username>

Important: you’ll need to log out (type exit at the prompt) and back in for this change to take effect. After re-logging, you should see the group membership using the groups command

Enable user access to /var/www/html

sudo chown -R <username>:www-data /var/www/html
sudo chmod 2775 /var/www/html
find /var/www/html -type d -exec sudo chmod 2775 {} \\;
find /var/www/html -type f -exec sudo chmod 0664 {} \\;