install a web server on ubuntu code example
Example 1: how to install apache server in ubuntu
sudo apt update
sudo apt install apache2
Example 2: configure apache in ubuntu
service apache2 reload
sudo apt update
sudo apt install apache2
service apache2 reload