Commands
Using systemctl
systemctl restart apache2.service
systemctl restart apache2
Using service command
service apache2 start
service apache2 stop
service apache2 restart
service apache2 reload
service apache2 status
Note: Use reload instead of restart most of the time. Restart will reset all connected connections so be careful when using it.
Enable/disable the virtual host (config) file
sudo a2ensite example.com.conf
sudo a2dissite example.com.conf
Reload/restart to take effect
sudo service apache2 reload