check installation of apache2 ubuntu code example
Example 1: ubuntu install apache2
sudo apt-get install apache2
Example 2: apache2 ubuntu install
sudo apt install apache2
sudo apt-get install apache2
sudo apt install apache2