How to change Apache Port

1 min read
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