In this instructional exercise we will see some apache web server orders and
How do I restart an Apache 2 Web Server under a Debian/Ubuntu/CentOS/RHEL/Fedora Linux or UNIX-like working frameworks .
 
        Apache is essentially used to serve both static substance and dynamic Web pages on the World Wide Web. Many web applications are planned anticipating the climate and highlights that Apache gives. Apache can be begun or restarted utilizing any of the accompanying techniques on Linux or Unix-like systems.
Debian || Ubuntu Linux Specific Commands to Start || Stop || Restart ApacheYou can either utilize administration or/and so forth/init.d/order as follows on Debian Linux form 7.x or Ubuntu Linux variant Ubuntu 20.04 or older:
Start Apache 2 web server >>/etc/init.d/apache2 startOR
 sudo/etc/init.d/apache2 startOR
 sudo service apache2 start/etc/init.d/apache2 stopOR
 sudo/etc/init.d/apache2 stopOR
 sudo service apache2 stop/etc/init.d/apache2 restartOR
 sudo/etc/init.d/apache2 restartOR
 sudo service apache2 restartUtilize the accompanying systemctl order on Debian Linux form 8.x+ or Ubuntu Linux rendition Ubuntu 15.04+ or above:
 ### Start order ### 
 systemctl start apache2.service ### Stop order ### 
sudo systemctl stop apache2.service ### Restart order ### 
sudo systemctl restart apache2.serviceWe can see status utilizing the accompanying order :
 ### Status order ### 
 sudo systemctl status apache2.serviceAfter Status commans Output :
 
Alpine Linux start/stop/restart Apache 2 utilizing openrc - - >
We want to utilize the help order as root client:
 service apache2 start 
 service apache2 stop 
 service apache2 status 
 service apache2 restartFreeBSD client can restart Apache as this Commands:
/usr/local/etc/rc.d/apache22 restart 
 ## OR 
 service restart apache22 
 
 service stop apache22 
 service start apache22Latest form of FreeBSD 13 accompanies apache24, so orders like are :
/usr/local/etc/rc.d/apache24 restart 
 ## OR 
 service restart apache24 
 
 service stop apache24 
 service start apache24# Summing up #
In this Article we figured out how to begin, stop or restart the Apache 2 web server utilizing order line .
 

 
 
 
 
