LEMP logo
Developer Stacks

LEMP Stack Hosting on Your Own VPS

NGINX, MySQL and PHP-FPM — lower memory per connection and fast static file serving.

Size a server for LEMP

Every stop is a real configuration you can deploy. Priced per 30 days, billed by the hour, exclusive of 18% GST.

2 vCPU
4 GB
40 GB
5 TB

What LEMP is

LEMP replaces Apache with NGINX: Linux, NGINX (the E is for its pronunciation), MySQL or MariaDB, and PHP-FPM. The substitution changes the performance profile in ways worth understanding before choosing.

NGINX uses an event-driven model rather than a process or thread per connection, so memory use stays roughly flat as concurrency rises. It also serves static files considerably faster, since it does so directly from the event loop without involving PHP at all. For a site with many images, scripts and stylesheets, or many slow mobile connections held open, that difference is real.

The trade is configuration. There is no .htaccess — rewrite rules, headers and access control live in the server configuration and take effect on reload. That is more predictable and faster, and it means an application cannot change its own routing without server access. Software that ships .htaccess rules needs those translated once during setup.

Why run LEMP on a VPS

Root access to the NGINX configuration, which is where all routing lives in this stack.

PHP-FPM pool sizing under your control — the usual concurrency ceiling.

Static assets served straight from NGINX, without touching PHP.

Multiple PHP versions per site when applications disagree.

LEMP features

NGINX with HTTP/2 and TLS

PHP-FPM with per-site pools

MariaDB or MySQL with direct access

Free Let's Encrypt certificates with renewal

FastCGI caching for uncached PHP output

Gzip and Brotli compression

Recommended server

A starting point for LEMP, not a hard floor — size it on the sliders.

Memory4 GB for a typical site; 8 GB for several or for heavy PHP
CPU2 vCPU; 4 under sustained traffic
Storage40 GB
Operating systemUbuntu 22.04 LTS or AlmaLinux 9

How deployment works

NGINX, MariaDB and PHP-FPM are installed with server blocks and TLS for your domains. If you are migrating an application that shipped .htaccess rules, those are translated into the NGINX configuration during setup — that is the one migration step that catches people out.

It is your server. LEMP is installed directly on your VPS or VDS, not inside a container we manage. You get root over SSH, you can install anything alongside it, change its configuration, or remove it entirely. We do not hold a key to it.

What people run it for

High-concurrency sites

Many simultaneous connections without memory scaling per connection.

Static-heavy sites

Images and assets served without invoking PHP.

APIs

PHP APIs where request throughput matters more than per-directory config.

Reverse proxying

NGINX in front of Node, Python or anything else on the same machine.

LEMP hosting questions

A VPS with Linux, NGINX, MySQL or MariaDB and PHP-FPM installed and configured, with root access throughout.

Deploy LEMP on your own server

Root access, your choice of size, and no container between you and the application.