In this chapter, we will learn a little about the background of how Apache HTTP Server came into existence and then install the most current stable version on CentOS Linux 7. Brief History on Apache WebServerApache is a web server that has been around for a long time. In fact, almost as long as the existence of http itself!Apache started out as a rather small project at the National Center for Supercomputing Applications also known as NCSA. In the mid-90's 'httpd', as it was called, was by far the most popular web-server platform on the Internet, having about 90% or more of the market share.At this time, it was a simple project. Staff known as webmaster were responsible for: maintaining web server platforms and web server software as well as both front-end and back-end site development. At the core of httpd was its ability to use custom modules known as plugins or extensions.
These instructions are intended specifically for installing Memcached on a single CentOS 7 node. I’ll be working from a Liquid Web Core Managed CentOS 7 server, and I’ll be logged in as root. Step #1 Install Memcached. Install VMware Tools on CentOS 7 – The Easy and Quick Way. July 18th, 2017 Leave a comment Go to comments. It’s seemingly easy to install VMware Tools especially on Linux. In reality, it can take hours to get it installed correctly for the first time. The KB article on VMware site is unnecessarily complicated, and could be a source of.
A webmaster was also skilled enough to write patches to core server software.Sometime in the late-mid-90's, the senior developer and project manager for httpd left NCSA to do other things. This left the most popular web-daemon in a state of stagnation.Since the use of httpd was so widespread a group of seasoned httpd webmasters called for a summit reqarding the future of httpd. It was decided to coordinate and apply the best extensions and patches into a current stable release. Then, the current grand-daddy of http servers was born and christened Apache HTTP Server.Little Known Historical Fact − Apache was not named after a Native American Tribe of warriors. It was in fact coined and named with a twist: being made from many fixes (or patches) from many talented Computer Scientists: a patchy or Apache. Install Current Stable Version on CentOS Linux 7Step 1 − Install httpd via yum.yum -y install httpdAt this point Apache HTTP Server will install via yum.Step 2 − Edit httpd.conf file specific to your httpd needs.With a default Apache install, the configuration file for Apache is named httpd.conf and is located in /etc/httpd/.
So, let's open it in vim.The first few lines of httpd.conf opened in vim −## This is the main Apache HTTP server configuration file. It contains the# configuration directives that give the server its instructions.# See for detailed information.# In particular, see# # for a discussion of each configuration directive.We will make the following changes to allow our CentOS install to serve http requests from http port 80. Listening host and port# Listen: Allows you to bind Apache to specific IP addresses and/or# ports, instead of the default. See also the # directive.## Change this to Listen on specific IP addresses as shown below to# prevent Apache from glomming onto all bound IP addresses.##Listen 12.34.56.78:80Listen 80From here, we change Apache to listen on a certain port or IP Address.
For example, if we want to run httpd services on an alternative port such as 8080. Or if we have our web-server configured with multiple interfaces with separate IP addresses. ListenKeeps Apache from attaching to every listening daemon onto every IP Address. This is useful to stop specifying only IPv6 or IPv4 traffic. Or even binding to all network interfaces on a multi-homed host.## Listen: Allows you to bind Apache to specific IP addresses and/or# ports, instead of the default. See also the # directive.## Change this to Listen on specific IP addresses as shown below to# prevent Apache from glomming onto all bound IP addresses.#Listen 10.0.0.25:80#Listen 80DocumentRootThe 'document root' is the default directory where Apache will look for an index file to serve for requests upon visiting your sever: will retrieve and serve the index file from your document root.## DocumentRoot: The directory out of which you will serve your# documents.
By default, all requests are taken from this directory, but# symbolic links and aliases may be used to point to other locations.#DocumentRoot '/var/www/html'Step 3 − Start and Enable the httpd Service.root@centos rdc# systemctl start httpd && systemctl reload httpdroot@centos rdc#Step 4 − Configure firewall to allow access to port 80 requests.root@centos# firewall-cmd -add-service=http -permanent.
Small virtual environments, called containers, have become indispensable for developing and managing applications.Working on applications within an isolated container does not affect the host operating system. Containers are more efficient than virtual machines as they do not need their operating system.Kubernetes is an open-source platform that helps you deploy, scale, and manage resources across multiple containers.Follow this tutroial and learn how to install Kubernetes on a CentOS 7 system. Kubernetes packages are not available from official CentOS 7 repositories. This step needs to be performed on the Master Node, and each Worker Node you plan on utilizing for your container setup. Enter the following command to retrieve the Kubernetes repositories.
Cat /etc/yum.repos.d/kubernetes.repokubernetesname=Kubernetesbaseurl=https://packages.cloud.google.com/yum/doc/rpm-package-key.gpgEOF. The nodes, containers, and pods need to be able to communicate across the cluster to perform their functions. Firewalld is enabled in CentOS by default on the front-end. As indicated in Step 2, you can enter the kubeadm join command on each worker node to connect it to the cluster. Kubeadm join -discovery-token cfgrty.jyrfgd -discovery-token-ca-cert-hash sha256:1234.cdef 1.2.3.4:6443Replace the codes with the ones from your master server. Repeat this action for each worker node on your cluster. Now check the status of the nodes.From the master server enter: sudo kubectl get nodesThe system now displays the new worker nodes that you joined to the cluster.