How to restart apache ubuntu

In this article let’s discuss about How to restart apache ubuntu. Let’s go through the following methods without any delay.

Method 1:

# Restart Apache 2 server on Linux/Unix
sudo service apache2 restart

# Start Apache 2 server on Linux/Unix
sudo service apache2 start

# Stop Apache 2 server on Linux/Unix
sudo service apache2 stop

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

# Restart Apache 2 server on Linux/Unix
sudo service apache2 restart

# Start Apache 2 server on Linux/Unix
sudo service apache2 start

# Stop Apache 2 server on Linux/Unix
sudo service apache2 stop

# Reload Apache 2 server on Linux/Unix "No downtime!"
sudo service apache2 reload

Hope the above solution works.

Realted Posts : How to remove angular cli?