LAMP stack

The LAMP stack is the term used to describe an all-in-one web and database server. Typically, the components are:

  • Linux: The underlying operating system; in our case, we will be using CentOS 7.
  • Apache: The web server element of the stack.
  • MariaDB: The database component of the stack; typically, it is MySQL-based. As CentOS 7 ships with MariaDB, we will be using that rather than PHP.
  • PHP: The dynamic language used by the web server to generate content.

There is also a common variation of the LAMP stack called LEMP; this replaces Apache with NGINX, which is pronounced engine-x, hence the E rather than N.

We are going to be looking at creating roles to deal with these components; these are:

  • common: This role will prepare our CentOS ...

Get Learn Ansible 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.