Sample Image
Apache2 Installation Tutorial in Ubuntu

update and upgrade

$ sudo apt update && apt upgrade -y

Install Apache2 Server

Sample Image

$ sudo apt install apache2

Start this apache2 server

Sample Image

$ sudo service apache2 start 

Or

Sample Image

$ sudo systemctl start apache2.service 

check your ip address

Sample Image

$ ifconfig 

Checking Apache Service is work or not.

Type your ip address in browser , If you see apache default page your apache installation is successful.
Sample Image