Starting, Stopping, and Restarting Apache Web Server on Ubuntu

To start, stop, and restart the Apache Web Server (httpd) on Ubuntu, you can use the /etc/init.d/apache2 script.

You need to ssh to your Pod as root, or use sudo command. Here are each of the commands:


root@mypod:~# sudo /etc/init.d/apache2 start


root@mypod:~# sudo /etc/init.d/apache2 stop


root@mypod:~# sudo /etc/init.d/apache2 restart

Matthew McCaffrey

Leave a Reply