Skip to main content
Laravelify manages the server it is installed on. Use a fresh server dedicated to it: the installer configures nginx, PHP-FPM, MySQL, Redis, Supervisor, and the firewall.

Operating system

Other distributions are not supported. The installer uses apt, systemd, and ufw.

Hardware

Each Laravel site adds its PHP workers and queue processes; each Next.js site adds one Node process. Next.js builds are the heaviest moment: give the server at least 2 GB of free memory for npm run build, or add swap.

Network

  • Root or sudo access over SSH.
  • Outbound internet (GitHub, package mirrors, Cloudflare, Telegram).
  • A domain on Cloudflare with a tunnel. Laravelify serves sites through Cloudflare tunnels, so no inbound port has to be open for the web. The firewall still allows SSH, 80, and 443.
Do not install Laravelify on a server that already hosts sites with its own nginx or PHP setup. The installer replaces their configuration.

What you need from Cloudflare

  1. Add the domain to Cloudflare.
  2. Zero Trust → Networks → Tunnels → Create a tunnel (type Cloudflared). Copy the token from the install command Cloudflare shows (the long string after --token).
  3. You add public hostnames for the panel and phpMyAdmin after installing. See Quickstart.