Let’s start the discussion about How to restart, Stop, Start or Reload Apache in following methods. The Apache HTTP Server is a cross-platform web server software that is free and open-source under the Apache License 2.0. An open community of developers creates and maintains Apache.
Contents
Restart Apache 2 server on Linux/Unix
To restart Apache 2 server on Linux or Unix run the below command.
sudo service apache2 restart
Start Apache 2 server on Linux/Unix
To start Apache 2 server on Linux or Unix run the below command.
sudo service apache2 start
Stop Apache 2 server on Linux/Unix
To stop Apache 2 server on Linux or Unix run the below command.
sudo service apache2 stop
Reload Apache 2 server on Linux/Unix
To reload Apache 2 server on Linux or Unix run the below command.
sudo service apache2 reload
I hope the strategies listed above work for you. Happy coding and come back again.
Similar Post : How to start Apache on debian