Docs / App Marketplace / LEMP Stack Breeze: Quick Start Guide

LEMP Stack Breeze: Quick Start Guide

By Admin · Feb 25, 2026 · Updated Apr 23, 2026 · 119 views · 2 min read

What You Get

The LEMP Stack Breeze comes pre-configured with:

  • Linux — Ubuntu 22.04 LTS
  • Nginx — Web server (Engine-X)
  • MariaDB — Database server
  • PHP-FPM 8.2 — FastCGI Process Manager

Why LEMP Over LAMP?

Nginx uses less memory and handles more concurrent connections than Apache. It is the preferred choice for high-traffic sites and modern web applications.

Web Root

/var/www/html/

Nginx Configuration

# Default site config
/etc/nginx/sites-available/default

# Add a new site
sudo nano /etc/nginx/sites-available/mysite.conf
sudo ln -s /etc/nginx/sites-available/mysite.conf /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx

PHP-FPM

# PHP-FPM config
/etc/php/8.2/fpm/php.ini
/etc/php/8.2/fpm/pool.d/www.conf

# Restart PHP-FPM after config changes
sudo systemctl restart php8.2-fpm

MariaDB

mysql -u root -p
CREATE DATABASE myapp;
CREATE USER 'myapp'@'localhost' IDENTIFIED BY 'StrongPassword123';
GRANT ALL PRIVILEGES ON myapp.* TO 'myapp'@'localhost';
FLUSH PRIVILEGES;

Sample Nginx Site Config

server {
    listen 80;
    server_name example.com www.example.com;
    root /var/www/example.com;
    index index.php index.html;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/run/php/php8.2-fpm.sock;
    }

    location ~ /\.ht {
        deny all;
    }
}

Enable SSL

sudo apt install -y certbot python3-certbot-nginx
sudo certbot --nginx -d example.com -d www.example.com

Was this article helpful?