Skip to content
Laravel

The stack

LEMP & LEPP, with Laravel.

L Linux
E Nginx said “engine-x”
P PHP
+
Laravel

Flip the database. The whole page follows.

Why E? Nginx is pronounced “engine-x.” LEMP is Linux, Nginx, MySQL and PHP. LEPP swaps MySQL for PostgreSQL. Put Laravel on top and you have a complete, open-source platform for building almost any application, from a five-page site to systems that run a business.

01 — One request, end to end

Follow a request through the stack.

🌐

Browser

your PC · HTTPS

🌐 the internet

~20–80 ms

🐧 Linux server · in the cloud

⚡

Nginx

web server

<1ms
🐘

PHP-FPM

worker pool

<1ms
◆

Laravel

your app

<1ms
🗄

PostgreSQL

database

Press the button and watch each layer do its job.

02 — Why the E

Nginx holds the door, PHP does the work.

Apache used to be the go-to solution for serving websites. The problem was that it maxed out easily once traffic picked up. Nginx was engineered from the ground up for outstanding performance, and that’s why Nginx is part of our standard technology stack: it’s the E in LEMP and LEPP.

Why Apache maxes out: the classic LAMP setup (Apache with mod_php) gives every connection its own heavyweight process with PHP built in, even for someone downloading a logo or sitting idle.

The re-engineered Nginx, on the other hand, runs just a handful of worker processes, and each one can juggle thousands of visitors at once. It serves lightweight files (images, CSS, JavaScript) itself, and hands only the heavier PHP requests to a dedicated pool of PHP-FPM workers. The result is a server that stays fast and lean as traffic grows.

Visitors connected at once

◀ Drag the slider to add traffic ▶

Apache + mod_php (LAMP)
Nginx + PHP-FPM (LEMP / LEPP)

An illustrative model, not a true representation of actual performance.

Here’s how Nginx outperforms Apache as visitors pile up. Drag the traffic slider, or pick Busy, Rush or Viral.

Why Nginx performs better

  • ✓Nginx’s memory stays flat as traffic grows.
  • ✓Nginx handles TLS, HTTP/2 and HTTP/3, compression and caching up front, before PHP is involved.
  • ✓One Nginx can load-balance many app servers when you need to scale out.

03 — The layers

Four open-source layers, one framework on top.

L

Linux

Runs most of the world’s servers and clouds. It’s stable, scriptable and free, and the same OS runs on your laptop (WSL or Docker), staging and production.

E

Nginx

Event-driven web server and reverse proxy. Handles TLS, static files, HTTP/2 and HTTP/3, compression, rate limiting and load balancing, then hands PHP work to FPM.

MP

MySQLPostgreSQL

The most widely deployed open-source database. InnoDB transactions, simple replication, fast primary-key reads, and supported by every host on earth.

The most advanced open-source database. Strict data integrity, JSONB, window functions, transactional schema changes, row-level security, and extensions like PostGIS and pgvector.

P

PHP + Laravel

Modern PHP is typed, JIT-capable and fast, with a new release every year. Laravel adds routing, ORM, queues, auth, automated testing and deployment, all with conventions people and AI both understand.

04 — Change it any time

Same Laravel code, any database.

Your stack isn’t a life sentence. Laravel writes the database code for you, so moving to a different database is one line of configuration, and the stack’s name changes with it. Pick a database.

Your stack

LLinux
ENginx
PPostgreSQL
PPHP

LEPP

The one line that changes · .env

DB_CONNECTION=pgsql

✓ Your application code: unchanged

Choose the database for what your business needs, not for what your code is locked into.

Proof it still works · migrate · test · import data

Pick a database above: the new database gets migrated, then every test runs against it.

05 — The framework

Laravel turns a stack into a platform.

Under the hood, Laravel is a large, well-tested collection of PHP classes that gives every application the same structure, built on the SOLID principles. The parts every business application needs are already written, so nobody has to re-invent the wheel.

Already done

Logins, database access, email, background jobs, security and testing are built, tested and patched by a large community. Day one starts where most projects would be months in.

Organized the same way

Every Laravel project keeps things in the same places. A developer can open a project they have never seen and know where the code lives, so new people are productive in days, not months.

Spent on your business

The time and budget go into the business logic, the part that makes your company different, instead of rebuilding the plumbing every application needs.

Already done for you

Eloquent & migrations

One ORM and one migration system for MySQL, MariaDB, PostgreSQL, SQL Server and SQLite. The schema lives in version control.

Queues & scheduling

Send email, build reports and call APIs in the background. Cron becomes readable PHP.

Auth & security

Login, password reset, API tokens, CSRF, encryption, hashing and rate limits are built in.

Real time

Broadcast events over WebSockets for live dashboards and notifications.

Performance

OPcache, config and route caching, and long-lived workers when you need more speed.

Automated testing

Feature and unit tests out of the box: fake the database, queue, mail and time.

Deployment

From one Linux server to auto-scaling cloud, with first-party tools for both.

AI-ready

Strong conventions mean coding agents write idiomatic Laravel. First-party tooling gives them context.

06 — Now and next

Why it’s the best way to build, today and for years to come.

01

No license fees, no lock-in

Every layer is open source. Run it on your own server, any cloud or a container, and move whenever you want.

02

Proven for decades

Linux, Nginx, MySQL, PostgreSQL and PHP power a huge share of the web. Their problems are solved and documented.

03

Fast where it counts

Nginx holds connections cheaply, PHP-FPM workers stay warm, OPcache skips recompiling, and the database does the heavy lifting.

04

Built for AI-assisted development

Clear conventions and a huge body of examples make Laravel one of the easiest frameworks for AI to write well and for people to review.

05

Ready for AI features

Call any AI model from a queued job. Store embeddings in PostgreSQL with pgvector and search them next to your real data.

06

Modernize, don’t rewrite blind

Put Laravel in front of a legacy database or IBM i, replace one screen at a time, and keep the business running.

07

Small attack surface

Few moving parts, each patched on a regular schedule. Nginx in front, PHP and the database never exposed directly.

08

Easy to hire for

PHP and SQL skills are everywhere, and Laravel’s conventions mean a new developer is productive in days.

09

Predictable future

PHP, Laravel, Nginx and both databases ship on regular release schedules with published support windows.

This site runs on Linux and PHP with Laravel. Written in strict TypeScript for the interactive parts.