Installing the web and database servers

As of the time of writing this book, the Apache HTTP server (or just Apache for short) remains the world's most widely used web server and is often used within what is called a LAMP stack. In this stack, a Linux distribution is used as the operating system, Apache as the web server, MySQL/MariaDB as the database server, and PHP as the server-side programming language for applications. Each one of these components is free, and these technologies are widely spread and thus easy to learn/get help on.

To install the Apache and MariaDB (a free and open source fork of MySQL) servers, run the following commands on each node. Note that this will install PHP as well:

yum update && yum install httpd mariadb mariadb-server ...

Get CentOS High Performance now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.