sudo nano /etc/apache2/ports.conf # change Listen 80 to Listen 8080 sudo nano /etc/apache2/sites-enabled/000-default.conf # change <VirtualHost: *:80> to <VirtualHost: *:8080> sudo systemctl restart apache2