install apache for ubuntu 18.04 code example Example: how to install apache server in ubuntu sudo apt update sudo apt install apache2