05-12-2021, 01:24 AM
As @Mashiro said, you will need to run chown so Apache is the owner of your /var/www/html folder, Wordpress is super fickle with this step and it’s rather painful down the road when you are trying to install themes, plug-ins and the like and keep running into permission errors.
sudo chown -R www-data /var/www/html
sudo chown -R www-data /var/www/html