ServerAvatarDocs
Getting started

Installation

Install OSS Panel on a fresh Ubuntu server with one command, choose a stack and options, and understand every step the installer runs.

Installation is a single shell script. A failed install is fixed by fixing the cause and running the same command again: the installer recognises its own earlier run, skips work that is already done, and carries on.

The installer changes packages, users, services and system configuration. Do not run it on your workstation or on an existing production server. Check Requirements first.

1. Run the installer

SSH into the server as a user with sudo. Reading the script first is a reasonable thing to do with something that runs as root:

curl -fsSL https://raw.githubusercontent.com/DipaliRadadiya/open-source-sa/main/install.sh -o install.sh
less install.sh
sudo bash install.sh --stack=lemp

Run this way, with a terminal attached, the installer asks which stack to build if you leave --stack off. The one-line form does the same thing without the review:

curl -fsSL https://raw.githubusercontent.com/DipaliRadadiya/open-source-sa/main/install.sh \
  | sudo bash -s -- --stack=lemp

Piping into bash leaves no terminal to ask on. Without --stack the installer says "no terminal to ask on — defaulting to lemp (use --stack= to choose)" and builds lemp. Pass --stack so that is a choice rather than a default.

2. Choose a stack

The stack decides the web server, and the web server serves the panel itself, so it cannot be changed from inside the panel later. Pick deliberately.

FlagWeb serverWhat it hosts
--stack=lempnginxNative PHP, Node.js and static applications. The default.
--stack=lampApacheNative PHP, Node.js and static applications. Use it when you need .htaccess or an Apache module.
--stack=mernnginxNode.js and static applications. Not hosted PHP applications.
--stack=olsOpenLiteSpeedNative PHP, Node.js and static applications, on LSPHP.
--stack=dockernginxContainer applications only, reached through a reverse proxy.

The panel itself always needs PHP (8.4) and Node.js (24), whatever the stack. The installer prints it as "lemp — nginx, PHP 8.4, Node 24". Installing a runtime does not make every application type available on every stack: see Stacks and Application types.

On the OpenLiteSpeed stack

At stack selection the installer prints "note: there is no per-site PHP isolation on OpenLiteSpeed (no per-site pools). The 8G firewall and bot blocker work." OpenLiteSpeed runs PHP through LSPHP, not PHP-FPM, so there are no FPM pools to configure. See Stacks for how sites are run on it.

3. Options

sudo bash install.sh [options]

  --stack=lemp                 Which stack to build: lemp, lamp, mern, ols, docker.
                               Asked interactively when not given and a terminal
                               is available. Under `curl | bash` the default
                               (lemp) is used.
  --domain=panel.example.com   Use your own domain instead of a nip.io name.
                               Point its A record at this server first.
  --email=you@example.com      Address for Let's Encrypt expiry warnings.
  --branch=main                Branch to install from.
  --repo=URL                   Git repository to install from (a fork or mirror).
  --no-ssl                     Serve plain HTTP. Fine behind another proxy.
  --dry-run                    Run the checks and print the plan, then stop.
                               Nothing on the server is changed.
  --force                      Install on a server that isn't fresh.
  --central-token=TOKEN        Register this server with a central panel.
  --admin-username=NAME        Create the first administrator during the install.
  --progress-url=URL           Report each step to this https URL.

The installer checks every value before it uses it. A bad one stops the install with nothing changed: "--domain must be a host name like panel.example.com -- no https://, no path, no port", an email that is not an address, or a branch name that is not a branch name. An unknown option stops it too ("Unknown option … Run with --help to see the options."). sudo bash install.sh --help prints the full text.

Use your own domain

sudo bash install.sh --stack=lemp \
  --domain=panel.example.com \
  --email=you@example.com

Point the A record at the server first. If the name does not resolve to this server when the installer reaches the TLS step, Let's Encrypt cannot validate it and the installer falls back to a self-signed certificate. With your own domain the panel and its API share that one name, so the summary shows no separate API line.

Without a domain

Leave --domain off and the panel gets a nip.io address built from the server's public IP, found through an IP lookup service:

[03] Working out the address
     ✓ panel: https://panel.203-0-113-10.nip.io
     ✓ api:   https://api.203-0-113-10.nip.io

Two names, one shared parent. That is load-bearing: panel. and api. are children of 203-0-113-10.nip.io, so a single session cookie can cover both. A dash instead of that dot would make them unrelated siblings and logging in would not work.

Behind another proxy

--no-ssl serves plain HTTP and skips certificate issuance. Use it only when something in front of the server already terminates TLS.

See what it would do

--dry-run runs the checks, prints the plan and stops. It is worth running once on a box you care about. On a fresh server it says "Dry run — the checks passed; nothing was changed" and lists what a real run would do, in order. On a server that is not fresh it names what is in the way and says that a real run would stop at step 1. It writes nothing, not even the log.

Install on a server that is not fresh

By default the install stops when the server already hosts something (another panel, sites, databases, Redis data, PHP-FPM pools, Docker containers, certificates). --force prints each of those as a warning and installs beside them. It is not a migration and not a compatibility guarantee: inspect the findings and keep backups first.

Automated installs

For provisioning, --admin-username=NAME creates the first administrator during the install, so the panel is never open for registration. The password comes from the PANEL_ADMIN_PASSWORD environment variable only, 12 to 128 characters. --central-token=TOKEN registers the server with a central panel that holds the same token, and --progress-url=URL reports each step to an https address, signed with that token. Keep secrets out of arguments: an argument is readable by every account through ps, so use the CENTRAL_TOKEN and PANEL_ADMIN_PASSWORD environment variables instead (with sudo --preserve-env).

4. What it does

The main steps, in the order the installer prints them:

  1. Checking this server: root, OS, architecture, the fresh-server check, ports 80 and 443, systemd.
  2. Choosing the stack: from --stack, your answer, or the lemp default.
  3. Working out the address: your domain, or a nip.io name from the public IP.
  4. Checking requirements: memory, swap and disk for this stack. Every shortfall is listed at once.
  5. Checking memory: adds swap if the build needs it.
  6. Installing packages: the web server, PHP, Redis, SQLite, supervisor, Composer and the build toolchain, in one go.
  7. Installing Node (fnm) and Creating the panel account.
  8. Fetching the panel into /var/www/panel.
  9. Setting up local mail (Postfix).
  10. Securing Redis with a generated password.
  11. Setting up the API and Building the panel, the web interface.
  12. Configuring PHP-FPM and the web server: Configuring nginx, Configuring Apache or Configuring OpenLiteSpeed.
  13. Installing services: panel-frontend, the panel's own PHP and panel-queue.
  14. Granting the panel its privileges: one narrow sudoers rule.
  15. Checking the firewall: adds ufw rules for SSH, 80 and 443 without enabling ufw.
  16. Setting up HTTPS: Let's Encrypt, falling back to a self-signed certificate.
  17. Finishing up and Checking the installation: it runs the panel's own doctor as the unprivileged account to prove the panel works before claiming success.

Progress looks like this:

[01] Checking this server
     ✓ Ubuntu 24.04.4 LTS
     ✓ architecture x86_64
     ✓ logging to /var/log/panel-install.log

[02] Choosing the stack
     ✓ lemp — nginx, PHP 8.4, Node 24

[03] Working out the address
     ✓ panel: https://panel.203-0-113-10.nip.io
     ✓ api:   https://api.203-0-113-10.nip.io

Everything is logged to /var/log/panel-install.log (readable by root only). While the install runs, the installer waits for another package manager to finish instead of failing: a fresh cloud server runs its own updates on first boot.

5. When it finishes

 The control panel is installed

  Panel:   https://panel.203-0-113-10.nip.io
  API:     https://api.203-0-113-10.nip.io
  Stack:   lemp (nginx)
  Log:     /var/log/panel-install.log
  Files:   /var/www/panel

  Open the panel and register — the first account becomes the
  administrator, and registration closes behind it.

  Do that now. Until you do, anyone who reaches this address can
  claim the administrator account.

  Then use the setup page to install a database engine and anything
  else you need.

The summary also says if the certificate is self-signed (with the command to replace it) and if Ubuntu is still finishing its security updates in the background, in which case installing software from the panel can take a few extra minutes. The installer saves the details to /root/panel-details.txt, readable by root only.

If you passed --admin-username, the panel is not open: the summary says "Sign in with your administrator account." instead of asking you to register.

Register immediately

Between the end of the install and your first registration, the panel is open: the first person to reach that URL becomes its administrator. Do not leave a freshly installed panel unregistered.

Continue to First login.

Troubleshooting

The install stopped. Read the cause it printed, fix it, and run the same command again.

sudo cat /var/log/panel-install.log

A requirements failure lists every shortfall at once and says "Nothing has been changed on this server." A "This server isn't fresh" failure lists what it found: see Requirements.

The browser warns about the certificate. Let's Encrypt did not issue one, usually because a DNS record does not point here yet, or a rate limit. The panel is installed and working behind a self-signed certificate. Once the cause is fixed, the summary prints the command for your web server. On nginx it is:

sudo certbot --nginx -d panel.example.com

On Apache it removes the self-signed site first (sudo a2dissite panel-tls && sudo certbot --apache --redirect -d panel.example.com). On OpenLiteSpeed, run the installer again with the same options.

Some checks failed at "Checking the installation". The panel is installed, but parts of it will not work until those are fixed ("some checks failed — see above"). The panel's own System Health screen reports the same checks from inside the interface.

On this page