Skip to main content

Install

SSH into the server as a user that can use sudo, then run:
The installer asks nothing. It installs everything and opens the panel on port 8000 of the server (the next free port when 8000 is taken), and ends with a setup link like http://203.0.113.10:8000/setup?token=.... To start on an address instead of a port, give it one of these as environment variables:
  • A free https://<name>.laravelify.cloud address: LARAVELIFY_CLOUD_KEY=lfy_…, the install key from app.laravelify.cloud → Dashboard → Install from a terminal. Laravelify Cloud makes the tunnel and its DNS record. The server keeps an id in /etc/laravelify/cloud-server-id, so installing it again gives the same address.
  • Your own domain on your own Cloudflare tunnel: CLOUDFLARE_TUNNEL_TOKEN=… and PANEL_DOMAIN=panel.example.com, plus an optional CLOUDFLARE_API_TOKEN that adds the panel’s route and DNS record.
The database password is not asked: the installer makes a random 40-character one for MySQL or MariaDB root (and phpMyAdmin sign-in), PostgreSQL’s postgres, and MongoDB’s admin. The panel shows it on Server → MySQL after your authenticator code, and you can change it there. To pick your own, run the installer with MYSQL_ROOT_PASSWORD=.... phpMyAdmin opens at /phpmyadmin of the panel’s address. Change the path later on Server → phpMyAdmin. It always installs the latest release: the command downloads the installer of the newest GitHub release, and that installer downloads the matching panel.

What you see

The installer works through the install one step at a time. Each step shows a spinner while it runs and a check mark with its time when it is done, so you always know where it is. What the commands print goes to /var/log/laravelify-install.log (readable only by root). When a step fails, it stops there and shows the last lines of that log.

Choose what to install

By default the installer adds PHP-FPM 8.4, Node.js 24, and MySQL, so it finishes in a few minutes. Any other version is installed by the panel the first time a website needs it (one to three minutes). To install more up front, use the install command builder on laravelify.cloud. Pick what you will run (Laravel 12, Next.js 16, …) and only the versions those need are ticked; pick the databases; optionally type your domains, and copy the command. Or write the options yourself:
Tokens and keys have no option on purpose: they are environment variables (below), so they never end up in a copied command. To add a version later, run a repair with the new list, like curl -fsSL https://cdn.laravelify.cloud/install.sh | sudo LARAVELIFY_REINSTALL=1 bash -s -- --php=8.2,8.3,8.4. It installs only what is missing. When it finishes it prints the setup link, like http://203.0.113.10:8000/setup?token=.... Open it to create the admin account and turn on two-factor authentication. Without the token /setup does not open, so nobody who finds a fresh panel first can claim it (the token is also in /opt/laravelify/.env as LARAVELIFY_SETUP_TOKEN).

Running it again

If Laravelify is already installed, running the install command again only updates it: packages such as PHP, MySQL, Node, and pm2 are not checked or reinstalled. Run with LARAVELIFY_REINSTALL=1 to repair the whole install. A repair run skips what is already installed and reuses the settings from last time:
The settings are kept in /etc/laravelify/install.env, readable only by root; the uninstaller removes it.

Unattended install

Every setting can be given as an environment variable, which is handy for provisioning scripts:

What gets installed

  • nginx, the web server for every site and the panel.
  • PHP-FPM 8.4, or the ones you chose with --php (whichever the PHP repository still publishes for your Ubuntu), with the common extensions Laravel needs (including GD, for resizing JPEG, PNG, and WebP images). Updating the panel adds GD to a PHP version that does not have it yet.
  • Composer.
  • MySQL 8.4 LTS (Ubuntu’s MySQL as a fallback) by default, or MariaDB with --databases=mariadb, with a random 40-character password. phpMyAdmin at /phpmyadmin of the panel, with one-click sign-in from the panel, when you pick it with --tools=phpmyadmin.
  • PostgreSQL (--databases=postgresql): Ubuntu’s version, on 127.0.0.1, with the same password for the postgres user.
  • MongoDB 8.0 (--databases=mongodb): from MongoDB’s repository, on 127.0.0.1, with sign-in turned on and an admin user with the same password.
  • SQLite, always: a website can keep its data in a file in its folder.
  • Redis, available to your sites. The panel keeps its own sessions, queue, and cache in its database: MySQL or MariaDB when installed, otherwise SQLite.
  • PHP gets the matching drivers: pgsql with PostgreSQL, mongodb with MongoDB.
  • Node.js 24, or the ones you chose with --node (through n), and PM2 for Node.js, Next.js, Nuxt, Python, Go, and Bun sites.
  • Python, Go, Bun, and Hugo are not installed up front: the first website that needs one downloads it into /opt/laravelify-tools (see Frameworks).
  • Supervisor, which runs the panel’s laravelify-queue (deploys) and laravelify-scheduler (monitoring, alerts), plus each Laravel site’s workers.
  • cloudflared, connected when you give a tunnel token, or later from the panel.
  • ufw firewall: deny incoming by default, allow SSH (22), 80, 443, and the panel’s port.
  • The panel’s own user, laravelify, with its own PHP-FPM pool. Each website runs as lfy-<slug> and cannot read the panel or other websites (Users and permissions).
  • A sudoers rule that lets the panel run only scripts/host-apply.sh as root. That script validates every argument and every file before it touches the system.
The panel lives in /opt/laravelify. Sites live in /var/www/{slug}.

After installing

1

Create the admin and enable 2FA

Open the setup link the installer printed (http://<server-ip>:8000/setup?token=...).
2

Give the panel a domain

Settings → Panel address. Type the domain, like panel.example.com, and choose how it reaches the server:
  • Cloudflare API: with a token saved in Settings → Cloudflare, Laravelify adds the route on a tunnel you pick, or a proxied A record to the server’s IP.
  • DNS record: you make an A record to the server’s IP in Cloudflare, Proxied (orange cloud), with SSL/TLS set to Flexible.
The panel then asks for https://<domain> from outside and checks that the answer comes from this panel. If it does not, nothing changes and the port keeps working. If it does, the domain becomes the panel’s address, you sign in again there, and the old port only redirects to it. Until then the panel is plain HTTP, so do this before you use it for real work.
3

Set a Redis password

Redis starts without a password. Set one under Server → Redis.

Hostinger

On a Hostinger VPS you can install from Docker Manager instead of SSH: create a project from docker-compose.hostinger.yml. It runs the same installer on the server once (it needs privileged access to the host for that) and then stops. Its logs end with the setup link. Use a fresh Ubuntu 24.04 VPS: Laravelify takes ports 80 and 8000.