Updating Apache server to latest version using SSH

Guide on how to update Apache server to latest version with all the security fixes using SSH terminal in Linux operating system.

Simple guide on how to update Apache server setup to latest version which includes all the fixes for older bugs in previous release using SSH terminal.

Update Apache using SSH terminal

Add following code of lines in SSH terminal to update and upgrade Apache server:

1

2

3

sudo add-apt-repository ppa:ondrej/apache2

sudo apt-get update

sudo apt-get dist-upgrade

These will exclusively upgrade only distinct files which are outdated with new files in reposistory. In some cases, these will not work out due to modified files. Hence other method is to completely update Linux server.