The LAMP stack
The LAMP stack is the term used to describe an all-in-one web and database server. Typically, the components are as follows:
- Linux is the underlying operating system; in our case, we will use Ubuntu 22.04
- Apache is the web server element of the stack
- MariaDB is what we will use as the database component of the stack; typically, it is based on MySQL, which could also be used
- PHP is the dynamic language used by the web server to generate content
A common variation of the LAMP stack is called LEMP; this replaces Apache with NGINX, which is pronounced engine-x, hence the E rather than the N.
We are going to look at creating roles to deal with these components; these are as follows:
common
: This role will prepare our Ubuntu server, installing any supporting packages and services we needapache
: This role will install the Apache web server and configure a default virtual hostmariadb
: This role will not only install MariaDB but...