Answer 1, authority 100%
This is a hard restart:
sudo /etc/init.d/apache2 restart
Restart without killing the process, just applying the new configuration:
sudo /etc/init.d/apache2 reload
Answer 2, authority 75%
To restart, use:
sudo apache2ctl restart
You can learn more about the command by calling the help:
man apache2ctl
Answer 3, authority 38%
sudo service apache2 restart
in more detail here:
https://askubuntu.com/questions/6358/how-do-you-restart-apache
Answer 4, authority 25%
If systemd
is installed, then you can restart using it :
sudo systemctl restart apache2.service