Apache2 Installation Tutorial in Ubuntu

Update

Sample Image

$ sudo apt update

Install Nginx Server

Sample Image

$ sudo apt install nginx

Start this nginx server

Sample Image

$ sudo service nginx start 

Or

Sample Image

$ sudo systemctl start nginx.service 

check your ip address

Sample Image

$ ifconfig 

Checking nginx Service is work or not.

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