What is Apache:
Apache HTTP Server is a free and open-source web server that allows users to deploy their websites on the internet. It is one of the oldest and most reliable web server software maintained by the Apache Software Foundation.
Learn how to start, stop, and restart Apache 2 Web Server:
Start Apache Web Server:
To Start Apache web server use the following commands for Ubuntu and Debian users.
sudo service apache2 start
or
sudo /etc/init.d/apache2 start
See whether Apache is running/active or not
sudo service apache2 status
or
sudo /etc/init.d/apache2 status
Stop Apache Web Server:
To Stop Apache web server use the following commands for Ubuntu and Debian users.
sudo service apache2 stop
or
sudo /etc/init.d/apache2 stop
See whether Apache is running/active or not
sudo service apache2 status
or
sudo /etc/init.d/apache2 status
Restart Apache Web Server:
To Restart Apache web server use the following commands for Ubuntu and Debian users.
sudo service apache2 restart
or
sudo /etc/init.d/apache2 restart