How to Start, Stop, or Restart Apache Server on Ubuntu?

By Hardik Savani May 1, 2024 Category : Ubuntu

Hello folks,

This post is focused on how to start, stop, status, or restart the Apache server on Ubuntu. If you want to see an example of the Ubuntu Apache restart command, then you are in the right place. In this article, we will implement a Ubuntu Apache start command. This article will give you a simple example of the Apache stop command on Ubuntu.

Here, i will give you list of commands where you can start, stop or restart apache server in ubuntu. so, let's see the simple example command of start, stop and restart apache2 server in ubuntu:

Ubuntu Start Apache Web Server:

I will give you simple two commands to start your apache web server in ubuntu. you can use any one. you can see the following commands:

sudo systemctl start apache2

OR

sudo service apache2 start

Ubuntu Stop Apache Web Server:

I will give you simple two commands to stop your apache web server in ubuntu. you can use any one. you can see the following commands:

sudo systemctl stop apache2

OR

sudo service apache2 stop

Ubuntu Restart Apache Web Server:

I will give you simple two commands to restart your apache web server in ubuntu. you can use any one. you can see the following commands:

sudo systemctl restart apache2

OR

sudo service apache2 restart

Ubuntu Status Apache Web Server:

I will give you simple two commands to restart your apache web server in ubuntu. you can use any one. you can see the following commands:

sudo systemctl status apache2

OR

sudo service apache2 status

I hope it can help you...

Tags :
Shares