# Installation

Source: <https://deckpa.com/en/docs>

> Install Deckpa on a clean server running AlmaLinux 9 or 10.

## Requirements

Before you start, make sure the server meets these conditions:

- **AlmaLinux 9 or 10** — Rocky Linux 9, RHEL 9 and CentOS 9 are also supported. A clean installation is recommended.
- **At least 1 GB of memory** — the installation stops below 900 MB, and 2 GB is recommended. On servers with less than 2 GB of memory, the install script adds swap space.
- **At least 10 GB of free disk** — on the root file system.
- **Free ports 80 and 443** — the server must not have another web server, another hosting panel or an existing MySQL or MariaDB installation.
- **SSH access as root** — the install script configures system services.

## Install with one command

Connect to the server over SSH and run the following command:

```bash
bash <(curl -fsSL https://get.deckpa.dev/install)
```

If you connected as a user other than root, download the script first and then run it with `sudo`. The `sudo bash <(curl …)` form does not work:

```bash
curl -fsSL https://get.deckpa.dev/install -o /tmp/deckpa-install.sh
sudo bash /tmp/deckpa-install.sh
```

The script installs OpenLiteSpeed, PHP 8.3, 8.4 and 8.5, MariaDB 11.8, PowerDNS and the panel. It verifies the SHA-256 checksum of the package it downloads. When it finishes, it prints the panel's first sign-in link and the server's SSH details. The same information is also written to `/root/deckpa-credentials.txt`, which only the root user can read.

> The first sign-in link can be used only once and contains a setup token. Do not share it: whoever opens the link creates the administrator account.

## First sign-in

When the installation finishes, you will see a link like the one below. The default panel port is `3252`; if you chose another port with `--panel-port` during installation, the link shows that port instead:

```text
https://your-server-ip:3252/setup?token=...
```

Open the link in your browser and create the administrator account. You can also turn on two-step verification at this point. If the link no longer has the token, you can read it from `/var/lib/deckpa/setup-token` on the server.

### What comes next

After your first sign-in, we suggest this order:

- Add your first site and choose its PHP version.
- Turn on the backup schedule and, if you like, connect Google Drive as a cloud destination.
- DNS records are kept in the PowerDNS that comes with the installation; you can also connect your Cloudflare account.

## Checking that the services are running

After the installation, you can check on the server that both panel services are running:

```bash
systemctl status deckpa-api deckpa-executor
```

If both show `active (running)`, the panel is ready.
