How to start, stop and restart apache service in ubuntu or Debian Operating System

 

Question: How to start, stop and restart apache2 service in ubuntu or Debian Operating System.

In this post i am going to explain how to stop, start and restart apache2 service in Ubuntu and Debian Operating system. The apache service file is located in path /etc/init.d/apache2

 

 

 

 

How to start apache2 service in ubuntu/Debian

#/etc/init.d/apache2 start

 

How to stop apache2 service in ubuntu/Debian

#/etc/init.d/apache2 stop

 

How to restart apache2 service in ubuntu/Debian

#/etc/init.d/apache2 restart