---
title: Install on a server
project: SuperAdmin
version: 9.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/superadmin/9-0/guides/install-server/
updated: 2026-11-19T08:00:35.592Z
---

# Install on a server

> Install SuperAdmin, Nginx and Node.js on a clean Ubuntu server with the official script.

The official install script sets up a clean Ubuntu server for SuperAdmin. It installs Nginx, Node.js 16, GraphicsMagick, Git, `acme.sh` and some command line tools, creates the folder `/www/`, downloads SuperAdmin into `/www/superadmin/` and starts it.

## Before you start

- A clean Ubuntu Server 16 or later, with `wget`, `curl` and `sudo` (a standard Ubuntu Server image has them).
- A root shell on the server.
- A domain name for SuperAdmin, for example `superadmin.example.com`, with a DNS A record that points to the server.
- Ports 80 and 443 open to the internet if your apps will be public.

## Run the install script

**1.** Sign in to the server and become root:

```bash
sudo su
```

**2.** Download the script and run it:

```bash
wget https://raw.githubusercontent.com/totaljs/superadmin/master/install.sh && bash install.sh
```

**3.** Answer the questions:

| Question | Answer |
|---|---|
| Do you wish to permit this? | `y` |
| Do you want to provide SuperAdmin via HTTPS? | `n` to use HTTP now. To add HTTPS later, see [HTTPS for SuperAdmin](../superadmin-https/). |
| Domain name without protocol | The domain of SuperAdmin, for example `superadmin.example.com`. |
| Are you sure you want to continue? | `y` |
| Which user should SuperAdmin use to run your applications ? | Press Enter for `root`, or type the name of an existing Linux user. |
| Do you wish to install cron job to start SuperAdmin automatically after server restarts? | `y` adds `@reboot /bin/bash /www/superadmin/run.sh` to the crontab of root. |

**4.** Wait until the script prints `STARTING SUPERADMIN ON PORT 9999`.

The script prints a few warnings that you can ignore: `E: Package 'python-software-properties' has no installation candidate` and a notice that Node.js 16 is deprecated.

**5.** Open `http://superadmin.example.com/` (your domain) in the browser and [sign in for the first time](../first-sign-in/).

## What the script sets up

- Nginx with the configuration file of SuperAdmin. Nginx answers on your domain and passes the requests to SuperAdmin on port `9999`.
- The folder `/www/` for SuperAdmin, your apps, their logs, the Nginx files of your apps and the certificates. See [Folders and files](../../reference/folders-and-files/).
- A backup of the original Nginx configuration in `/etc/nginx/nginx.conf.backup`.

## Keep the server safe

- SuperAdmin also listens on port `9999` directly. Block that port in the firewall so that people reach SuperAdmin only through Nginx.
- Use HTTPS for SuperAdmin before you use it over the internet. See [HTTPS for SuperAdmin](../superadmin-https/).
