Open Putty with your default Username & Copy – Paste the below Script in it.
#Change Directory of root of server.
sudo nano /etc/apache2/sites-available/000-default.conf DocumentRoot /var/www/html sudo nano /etc/apache2/apache2.conf <Directory /var/www/html/> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> sudo service apache2 restart