Restart Apache Server Command Line Ubuntu Linux

To restart the web server apache in Ubuntu you can use the command sudo service apache2 restart for the way that’s borrowed from Red Hat. Or sudo restart apache2 for the shiny new Upstart way.