restart sites-enabled apache2 code example Example: how to stop a web server linux # how to stop a web server linux sudo service apache2 stop