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.

Like what you read? Give Tim a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.