How to change Apache Port

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

Originally published at Tim Leland.

Show your support

Clapping shows how much you appreciated Tim’s story.