Skip to content

Installation

Run as root on Ubuntu 22.04+ / Debian 12+:

Terminal window
curl -fsSL https://get.mypanel.vn | sudo bash

The script will:

  1. Check the OS.
  2. Install and configure nginx, Docker, MySQL, certbot, Nixpacks.
  3. Download the latest MyPanel binary to /usr/local/bin/mypanel.
  4. Create the data directory /var/lib/mypanel.
  5. Create and start the mypanel systemd service.
  6. Print the login URL and the initial admin password to the console.

Pass environment variables before the command:

Terminal window
# Custom panel port, and binary-only install (don't touch system dependencies)
MYPANEL_PORT=9000 MYPANEL_SETUP=none curl -fsSL https://get.mypanel.vn | sudo bash
  • MYPANEL_SETUP=full (default) — installs & configures all dependencies.
  • MYPANEL_SETUP=none — installs the panel binary only; you provide nginx/Docker/MySQL/certbot.
  • MYPANEL_PORT — panel port (default 8888).
  • MYPANEL_VERSION — pin a specific version (default: latest).
  1. Open http://<server-ip>:8888 in your browser.
  2. Log in as admin. The initial password is printed to the console on startup and saved to /var/lib/mypanel/admin-password.txt.
  3. Change the password immediately after logging in (Settings → Account).
Terminal window
curl -fsSL https://get.mypanel.vn | sudo bash

The script detects an existing install and only replaces the binary — your data in /var/lib/mypanel is untouched.

Terminal window
systemctl disable --now mypanel
rm /usr/local/bin/mypanel /etc/systemd/system/mypanel.service
# Consider a backup before removing data:
rm -rf /var/lib/mypanel