how to restart apache in ubuntu 18.04 code example
Example 1: restart apache
sudo systemctl restart apache2
# or
sudo service apache2 restart
Example 2: apache restart ubuntu
sudo service apache2 restart
sudo systemctl restart apache2
# or
sudo service apache2 restart
sudo service apache2 restart