To change the default port for Apache, you simply need to edit the /etc/apache2/ports.conf file..
Code:
sudo nano /etc/apache2/ports.conf
..and change the "Listen 80" line to whatever port you want to use. Then restart the Apache server by typing..
Code:
sudo /etc/init.d/apache2 restart
..into a terminal.
For SSH, edit the "/etc/ssh/sshd_config" file..
Code:
sudo nano /etc/ssh/ssh_config
..and change "Port 22" to what ever port you want to use. Restart SSH with..
Code:
sudo etc/init.d/sshd restart
I hope this helps!
Bookmarks