sudo systemctl restart apache2
# or
sudo service apache2 restart
sudo service apache2 start
sudo service apache2 restart
sudo service apache2 stop
OR
sudo /etc/init.d/apache2 start
sudo /etc/init.d/apache2 restart
sudo /etc/init.d/apache2 stop
# CentOS/RedHat
sudo service httpd restart
# Debian/Ubuntu
sudo service apache2 restart
sudo service apache2 restart
sudo service apache2 stop
sudo service apache2 start
cd /etc/apache2
apache2ctl configtest
sudo mkdir -p /var/log/apache2/
sudo chmod -R 744 /var/log/apache2/