Secure, clean & trustworthy
LEMP one-click install

Every source package fetched from official upstreams, verified with per-package SHA256 — supply-chain poisoning ends here

$ bash <(curl -sL https://raw.githubusercontent.com/NextLNMP/nextlnmp/main/install.sh)

Ubuntu / Debian / CentOS / Rocky · x86_64 & ARM64 · ~5 minutes

Why trust it

Every byte stands up to audit

src
Traceable sources

All packages come straight from official upstreams: php.net / nginx.org / cdn.mysql.com

sha
Per-package SHA256

The checksum manifest lives in the same repo as the code — publicly auditable; any mismatch aborts the install

gpl
Fully open source

GPL-3.0. Every line is on GitHub. No background daemons, no phoning home

AI Install Rescue · v2.0

Install failed? AI fixes it on the spot

A failed install no longer ends with "post your logs somewhere" — a dialog opens right there: the AI reads the log, asks for evidence, proposes fixes, and you approve every step.

nextlnmp — ai-rescue
✗ make: php-8.4 build failed (exit 2)
→ Entering AI rescue. Passwords are scrubbed before the log is uploaded. Continue? [y/N] y
AI: The log shows ld was killed by the OOM killer. Let me check memory:
[read-only] free -m && swapon --show [y/N] y
Mem: 953MB · Swap: 0B
AI: 1GB RAM, no swap. Create a 2G swapfile and retry the build:
[fix 1/2] fallocate -l 2G /swapfile … [y/N] y
✓ swap enabled, resuming install…
  • Consent first: you approve before any log leaves the box, passwords already scrubbed
  • Read-only allowlist: diagnostic commands are limited to a read-only allowlist
  • Per-command confirm: every fix is y/N-confirmed; catastrophic commands are blocked even after a y
  • Never blocking: if the gateway is unreachable, it silently steps aside
  • One switch to disable: NEXTLNMP_AI=n
Core features

Hard where it matters

🚀Fast install

Prebuilt PHP binaries unpack directly — about 5 minutes on recommended systems

🧯Safe upgrades

Disk preflight and real CPU probing before any upgrade; automatic rollback on failure, your site stays up

🧠Smart defaults

Detects your hardware and recommends the best PHP / MySQL / allocator combo

🌐BBR

One-click BBR congestion control

📦Full version range

PHP 5.6–8.4, MySQL 5.1–8.4, MariaDB 5.5–12.3, four stacks (LNMP / LNMPA / LAMP / Caddy)

🔄Zero relearning

Directory layout and commands compatible with the classic tools — switch seamlessly

✓ VERIFIEDBefore v2.0.0 shipped: 15 rounds of real-machine install & upgrade acceptance across 6 OS environments (incl. ARM64) × 4 stacks
Quick start

Three ways, one line each

Option 1Recommended
$bash <(curl -sL https://raw.githubusercontent.com/NextLNMP/nextlnmp/main/install.sh)
Option 2China mirror
$bash <(curl -sL https://mirror.nextlnmp.cn/install.sh)
Option 3China CNB
$bash <(curl -sL "https://cnb.cool/NextLNMP/NextLNMP/-/git/raw/main/install.sh?download=true")