how to restart apache ubuntu 18.04 code example Example 1: apache restart ubuntu sudo service apache2 restart Example 2: start apache service systemctl status apache2