Open the terminal and run the following command
sudo setfacl -R -m u:$USER:rwx,u:www-data:rwx /var/www;