start web server ubuntu code example Example 1: apache restart ubuntu sudo service apache2 restart Example 2: configure apache in ubuntu service apache2 reload