edit default port for linux server

Shell
# Change Apache, FTP, and SSH Default Port To A Custom port
nano /etc/apache2/ports.conf
Source

Also in Shell: