In this recipe, we will learn how to install and configure the Apache web server to enable the serving of static web pages. Apache is one of the world's most popular open source web servers. It runs as the backend for over half of all the Internet's web sites and can be used to serve both static and dynamic web pages. Commonly referred to as httpd
, it supports an extensive range of features. It is the purpose of this recipe to show you how easily it can be installed using the YUM package manager so that you can maintain your server with the latest security updates. Apache 2.4 is available on CentOS 7.
To complete this recipe, you will require a working installation of the CentOS 7 operating system with root privileges, a console-based text editor of your choice, and a connection to the Internet in order to download additional packages. It is expected that your server will be using a static IP address and a hostname.