Apache
“Apache HTTP Server, colloquially called Apache (/əˈpætʃi/ ə-PATCH-ee), is a free and open-source cross-platform web server software, released under the terms of Apache License 2.0. Apache is developed and maintained by an open community of developers under the auspices of the Apache Software Foundation.”
Supposedly, 40% of hosted websites run via Apache
What is a web server? what is apache? : Although we call Apache a web server, it is not a physical server, but rather a software that runs on a server. Its job is to establish a connection between a server and the browsers of website visitors (Firefox, Google Chrome, Safari, etc.) while delivering files back and forth between them (client-server structure).” from - hostinger - What is Apache? An In-Depth Overview of Apache Web Server
http://httpd.apache.org/docs/2.4/install.html
Sections
Start and Stop Apache server
From: cyberciti - star-stop-restart-apache2-webserver
Restart:
# /etc/init.d/apache2 restart
$ sudo /etc/init.d/apache2 restart
$ sudo service apache2 restart
Stop:
# /etc/init.d/apache2 stop
$ sudo /etc/init.d/apache2 stop
$ sudo service apache2 stop
Start:
# /etc/init.d/apache2 start
$ sudo /etc/init.d/apache2 start
$ sudo service apache2 start
—– A note about Debian/Ubuntu Linux systemd users Use the following systemctl command on Debian Linux version 8.x+ or Ubuntu Linux version Ubuntu 15.04+ or above:
## Start command ##
systemctl start apache2.service
## Stop command ##
systemctl stop apache2.service
## Restart command ##
systemctl restart apache2.service
—– CentOS/RHEL (Red Hat) Linux version 4.x/5.x/6.x or older specific commands
## Start ##
service httpd start
## Stop ##
service httpd stop
## Restart ##
service httpd restart
——— CentOS/RHEL (Red Hat) Linux version 7.x or newer specific commands Most modern distro now using systemd, so you need to use the following command:
## Start command ##
systemctl start httpd.service
## Stop command ##
systemctl stop httpd.service
## Restart command ##
systemctl restart httpd.service
———- Generic method to start/stop/restart Apache on a Linux/Unix
## stop it ##
apachectl -k stop
## restart it ##
apachectl -k restart
## graceful restart it ##
apachectl -k graceful
## Start it ##
apachectl -f /path/to/your/httpd.conf
apachectl -f /usr/local/apache2/conf/httpd.conf
Add custom domain
https://drupalize.me/blog/201504/configure-apache-multiple-domains
Journal
- 2020.07.29 Separated out XAMPP Application