▲ Top
Stack

LAMP Stack (Classic)

Linux, Apache, MySQL, PHP. The original web stack.

Architecture Diagram

%% Autogenerated lamp-stack graph TD classDef standard fill:#1e293b,stroke:#38bdf8,stroke-width:1px,color:#e5e7eb; classDef c-actor fill:#1e293b,stroke:#e5e7eb,stroke-width:1px,stroke-dasharray: 5 5,color:#e5e7eb; classDef c-compute fill:#422006,stroke:#fb923c,stroke-width:1px,color:#fed7aa; classDef c-database fill:#064e3b,stroke:#34d399,stroke-width:1px,color:#d1fae5; classDef c-network fill:#2e1065,stroke:#a855f7,stroke-width:1px,color:#f3e8ff; classDef c-storage fill:#450a0a,stroke:#f87171,stroke-width:1px,color:#fee2e2; classDef c-security fill:#450a0a,stroke:#f87171,stroke-width:1px,color:#fee2e2; classDef c-gateway fill:#2e1065,stroke:#a855f7,stroke-width:1px,color:#f3e8ff; classDef c-container fill:#422006,stroke:#facc15,stroke-width:1px,color:#fef9c3; subgraph server ["Web Server (Single Node)"] direction TB vm("Virtual Machine
compute
Linux (Ubuntu/Debian)") class vm c-compute apache(("Apache HTTPD
network
Web Server + ModPHP")) class apache c-network app("PHP Application
container
WordPress / Custom") class app c-compute db[("MySQL / MariaDB
database
Relational Database")] class db c-database fs[("Local Filesystem
storage
/var/www/html")] class fs c-storage end %% Orphans users(("Web Visitors
actor
Public Traffic")) class users c-actor %% Edges users -.-> apache apache -.-> app app -.-> db app -.-> fs

Description

The LAMP stack is a classic, battle-tested architecture for hosting dynamic websites and content management systems like WordPress, Drupal, or custom PHP applications.

It relies on Linux as the OS, Apache as the web server, MySQL (or MariaDB) for relational data, and PHP as the scripting language.

Tech Stack

Component Technology
App PHP / WordPress
Web Apache
Db MySQL / MariaDB
Os Linux

System Components

The following distinct entities are defined in this architecture:

Component Type Notes
Web Visitors actor Public Traffic
Virtual Machine compute Linux (Ubuntu/Debian)
Apache HTTPD network Web Server + ModPHP
PHP Application container WordPress / Custom
MySQL / MariaDB database Relational Database
Local Filesystem storage /var/www/html

Interested in this architecture?

Let's discuss how to adapt the LAMP Stack (Classic) stack for your specific needs.

Contact Us