Ubuntu / APT¶
Install Enciva on a host with the official Debian package, then run enciva-setup.
This is the supported host install for Ubuntu 24.04 LTS amd64. Dedicated and On-Site customers use the same package and the same setup utility.
Before you start¶
- Ubuntu 24.04 LTS amd64
- An Enciva license key (On-Site) or a managed provisioning grant (Dedicated operators)
- A public hostname if you will use Let's Encrypt
enciva-setup installs Docker Engine from Docker's official APT repository when it is missing. An existing working Docker Engine (Docker CE or docker.io) is left in place. Docker is the spatial processing runtime; do not install or upgrade host GDAL or QGIS packages for Enciva.
The package depends on Apache. Setup configures Apache as the reverse proxy and TLS terminator.
Add the Enciva APT repository¶
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://apt.enciva.com/enciva-archive-keyring.gpg \
| sudo tee /etc/apt/keyrings/enciva-archive-keyring.gpg >/dev/null
echo "deb [signed-by=/etc/apt/keyrings/enciva-archive-keyring.gpg] https://apt.enciva.com stable main" \
| sudo tee /etc/apt/sources.list.d/enciva.list
sudo apt update
apt-cache policy enciva
apt-cache policy enciva should show the package from https://apt.enciva.com. The key at that URL is the existing archive signing key under the new filename. Do not generate a replacement key.
Install¶
You can run enciva-setup from any directory.
Note
Package install creates the enciva system user and the data directories. It does not write secrets, enable Apache sites, pull processing images, or start Enciva. Do not run systemctl enable --now enciva until setup has finished.
What enciva-setup asks¶
Host setup does not ask you to choose Dedicated vs On-Site. It configures a self-hosted installation and uses the normal Enciva activation process.
Interactive setup asks for:
- Enciva hostname — used as
https://<hostname> - Administrator username — a local username, not an email address
- Administrator password — at least 10 characters; typed twice and not echoed
- Enable Raster Preview? — default Yes (starts QGIS Server for visual raster preview)
- TLS certificate source
1= Let's Encrypt / Certbot (default)2= Existing certificate files (fullchain PEM and private key)
- Configure SMTP now? — default No
- Configure Google Drive OAuth now? — default No
- Enciva license key — not echoed
If Docker Engine is missing, setup also prints that Docker Engine is required and asks Install Docker Engine now? (default Yes). Automatic Engine installation is supported on Ubuntu 24.04 LTS amd64 only.
When SMTP is enabled, setup asks for host, port (default 587), username, password, TLS mode (starttls, tls, or none), From address, and From name (default Enciva).
When Google Drive is enabled, setup shows the exact OAuth callback URI and asks for the Google OAuth Client ID and Client Secret.
Note
Dedicated operators who provision a managed license run sudo enciva-setup --managed-license lic_… and enter a one-time provisioning token when prompted. Do not put that token on the command line.
What setup configures¶
enciva-setup writes /etc/enciva/enciva.env, activates the license into the data directory, installs Docker Engine when it is missing, pulls the pinned GDAL image, optionally starts QGIS Server, enables Apache, and starts Enciva.
- Enciva listens on
127.0.0.1:8080 - Apache terminates HTTPS on ports 80/443 and reverse-proxies the hostname to Enciva
- QGIS Server, when enabled, is bound to
127.0.0.1:8090and is not proxied - The first administrator is created on first start; change that password after you sign in
Rerunning sudo enciva-setup detects an existing installation. It does not replace the administrator or erase application data. A valid existing secret key is preserved.
After setup¶
Sign in at https://<hostname> and change the bootstrap password.
If Let's Encrypt could not finish, setup leaves the HTTP reverse-proxy site enabled and prints the remaining Certbot commands. Typical remaining action:
After certificates exist:
If QGIS is down after setup, Inspect, Convert, and Jobs continue. Only visual Raster Preview is unavailable.
Administration¶
The systemd unit is still named enciva:
sudo systemctl status enciva
sudo systemctl restart enciva
sudo journalctl -u enciva -n 50 --no-pager
Raster Preview uses a separate unit:
Apache:
Remove the package¶
sudo apt remove enciva stops the services and removes package files. It does not delete /etc/enciva/enciva.env or /var/lib/enciva.
sudo apt purge enciva still leaves customer data in place. Delete those paths only if you intend to destroy the installation.