ubuntu 18 restart apache code example
Example 1: restart apache
sudo systemctl restart apache2
# or
sudo service apache2 restart
Example 2: start apache service
systemctl status apache2
sudo systemctl restart apache2
# or
sudo service apache2 restart
systemctl status apache2