- Edit your port by running this command
sudo nano /etc/apache2/ports.conf
- Change Listen 80 to 8000
- To exit nano editor, press ctrl + x then y to save
- Then restart apache
sudo service apache2 restart
sudo nano /etc/apache2/ports.conf
sudo service apache2 restart