How to change Apache Port

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


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.