Apache server is an open-source and cross-platform HTTP server, primarily used to serve both static content and dynamic Web pages on the World Wide Web.
Starting, stopping, and restarting/reloading are the most common tasks while working with an Apache web server by developer or system administrator. In this article, I’ll explain how to start, stop, and restart Apache server on the most famous Debian/Ubuntu Linux distributions.
Start Apache 2 web server
Execute the following command to start the Apache service:
systemctl start apache2.service
Stop Apache 2 web server
Execute the following command to stop the Apache service:
systemctl stop apache2.service
Restart Apache 2 web server
Whenever you make changes to the Apache configuration, you need to restart the server processes. Execute the following command to restart the Apache service:
systemctl restart apache2.service