---
title: "LEMP stack VPS: Nginx, MySQL and PHP-FPM · CloudSat"
description: "Deploy a LEMP stack on a CloudSat VPS: Nginx, a MySQL-compatible database and PHP-FPM ready for Laravel, WordPress or Symfony. Root SSH and NVMe storage."
url: https://cloudsat.io/apps/deploy-lemp
updated: 2026-11-18T15:52:35Z
source: CloudSat (https://cloudsat.io/). Prices in USD.
---

[Web hosting](https://cloudsat.io/apps/category/web-hosting-stacks)

# LEMP on a VPS

The LEMP app sets up Nginx, a MySQL-compatible database and PHP-FPM on a clean VPS, a lean base for Laravel, WordPress or Symfony.

[Deploy LEMP](https://dash.cloudsat.io/console/deploy?image=app%3Alemp&plan=cloud-1g) [All apps](https://cloudsat.io/apps)

## About LEMP

LEMP swaps Apache for Nginx (said engine-x, hence the E): Linux, Nginx, a MySQL-compatible database and PHP under PHP-FPM. Nginx serves static files itself and hands PHP requests to a pool of FPM workers over FastCGI.

That split keeps memory flat when many visitors arrive at once, which is why LEMP suits busy blogs, shops and APIs on modest plans. On a CloudSat VPS you tune worker counts, OPcache and cache headers yourself.

After deploy Nginx answers on port 80 with a default server block, PHP-FPM is running, and the database is ready for your first schema.

## What you get with LEMP

- Nginx for static files, TLS and reverse proxying
- PHP-FPM pools with their own users and limits
- A MySQL-compatible database server
- FastCGI caching and compression in the web server

## LEMP use cases

- Laravel or Symfony apps with clean URL routing
- WordPress sites behind Nginx page caching
- PHP APIs that need predictable memory under load

## After you deploy LEMP

1. Wait until the console shows **Running**, check `http://<server IP>/`, then log in as root over SSH.
2. Add a server block for your domain (on Ubuntu's layout, in `/etc/nginx/sites-available/` linked into `sites-enabled`) and test it with `nginx -t`.
3. Create a database and user for the app with the `mysql` client, then put those credentials in the app's config.
4. Issue a certificate, for example with Certbot's Nginx plugin, and reload Nginx.

## LEMP ports

Open these in your firewall if you use one: `80/tcp HTTP`, `443/tcp HTTPS`.

## LEMP FAQ

### Does \`.htaccess\` work on LEMP?

No. Nginx ignores `.htaccess`, so rewrite rules move into the server block. Most frameworks publish an Nginx example, and WordPress needs little more than a `try_files` line.

### How many PHP workers should I run?

Divide the memory you can spare by the size of one PHP-FPM process (check it with `top`) and use the result for `pm.max_children`.

**Disclaimer.** The LEMP project has no affiliation with CloudSat and does not endorse it. Names and logos belong to their owners and appear only to identify the software.

## Apps like LEMP

[All apps in Web hosting](https://cloudsat.io/apps/category/web-hosting-stacks)

- [LAMP](https://cloudsat.io/apps/deploy-lamp): Web hosting The LAMP app installs Apache, MariaDB and PHP with the lamp.sh script, plus a `lamp` command that adds virtual hosts and databases.
- [NGINX](https://cloudsat.io/apps/deploy-nginx): Web servers NGINX is the open-source web server and reverse proxy that serves static files, terminates TLS and balances traffic across app servers with low memory use.
- [WordPress](https://cloudsat.io/apps/deploy-wordpress): CMS WordPress is the open-source CMS for blogs, business sites and online stores, with a block editor for building pages and a huge range of themes and plugins.
- [phpMyAdmin and MySQL](https://cloudsat.io/apps/deploy-phpmyadmin-and-mysql): Databases This stack installs MySQL Community Server with phpMyAdmin, the PHP web interface for browsing tables, running SQL, importing dumps and managing users.
- [AdminBolt](https://cloudsat.io/apps/deploy-adminbolt): Web hosting AdminBolt is a commercial hosting control panel for AlmaLinux 9: sites, mail, DNS, databases and backups, licensed by AdminBolt after a 30-day trial.
- [aaPanel](https://cloudsat.io/apps/deploy-aapanel): Control panels aaPanel is a free Linux hosting panel: one-click LNMP or LAMP, then sites, databases, FTP and SSL from a browser, with a web terminal included.
