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:

Start:

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

Stop:

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

Restart:

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

Matthew McCaffrey

Leave a Reply