ManyCodes.com – codes & scripts Get free programming codes and tutorials!

10Aug/090

Ubuntu Linux Start / Restart / Stop Apache 2.2 Web Server

Q. How to restart or stop Apache 2.2 web server under Ubuntu Linux?

Task: Start Apache 2.2 Server

# /etc/init.d/apache2 start

or

$ sudo /etc/init.d/apache2 start

Task: Restart Apache 2.2 Server

# /etc/init.d/apache2 restart

or

$ sudo /etc/init.d/apache2 restart

Task: Stop Apache 2.2 Server

# /etc/init.d/apache2 stop

or

$ sudo /etc/init.d/apache2 stop