Making sure that any files or directories created inherited the www-data group

sudo usermod -a -G www-data USER_NAME
sudo chown -R www-data:www-data /var/www/vhosts
sudo chmod g+x /var/www/vhosts