TechSpotting’s Ubuntu restart Apache guide, showing you the commands required to stop, start & restart Apache on Ubuntu. Restarting Apache is common task often required of a Linux admin often after configuration changes have been made to PHP or Apache.
Ubuntu Restart Apache
/etc/init.d/apache2 restart
Which should give you the following output:
* Restarting web server apache
Ubuntu start Apache
To start Apache on Ubuntu run:
/etc/init.d/apache2 start
Which should give you the following console output:
* Starting web server apache2
Ubuntu Stop Apache
To stop Apache on Ubuntu run:
/etc/init.d/apache2 stop
Stopping Apache should give you the following output:
* Stopping web server apache2
Check out our guide on how to install Apache on Ubuntu