Installation
One-line install
Section titled “One-line install”Run as root on Ubuntu 22.04+ / Debian 12+:
curl -fsSL https://get.mypanel.vn | sudo bashThe script will:
- Check the OS.
- Install and configure nginx, Docker, MySQL, certbot, Nixpacks.
- Download the latest MyPanel binary to
/usr/local/bin/mypanel. - Create the data directory
/var/lib/mypanel. - Create and start the
mypanelsystemd service. - Print the login URL and the initial admin password to the console.
Install options
Section titled “Install options”Pass environment variables before the command:
# 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 bashMYPANEL_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 (default8888).MYPANEL_VERSION— pin a specific version (default: latest).
First login
Section titled “First login”- Open
http://<server-ip>:8888in your browser. - Log in as
admin. The initial password is printed to the console on startup and saved to/var/lib/mypanel/admin-password.txt. - Change the password immediately after logging in (Settings → Account).
Updating
Section titled “Updating”curl -fsSL https://get.mypanel.vn | sudo bashThe script detects an existing install and only replaces the binary — your data in
/var/lib/mypanel is untouched.
Uninstalling
Section titled “Uninstalling”systemctl disable --now mypanelrm /usr/local/bin/mypanel /etc/systemd/system/mypanel.service# Consider a backup before removing data:rm -rf /var/lib/mypanel