Eu encontrei a solução.
Eu fui para a pasta: /etc/apache2/sites-available/000-default.conf e mudei esta linha: DocumentRoot /var/www/html to DocumentRoot /var/www
e, em seguida, fui ao arquivo: /etc/apache2/apache2.conf e alterei esta linha: <Directory /var/www/html> to <Directory /var/www/>