Skip to content
WasFor
Back to home
Documentation/Getting started

Installation

WasFor installs with a single command on a clean Debian or Ubuntu server. The installer provisions the web stack, database, phpMyAdmin, mail, backup jobs and the panel itself, then prints the panel URL and first-run instructions.

Requirements

ItemMinimumRecommended
OSDebian 12, Ubuntu 22.04Debian 12
CPU2 vCPU4 vCPU
RAM2 GB4 GB
Disk20 GB free60 GB SSD
Architectureamd64, arm64amd64
Accessroot or sudoroot
NetworkOutbound HTTPSOutbound HTTPS + ports 80/443 open

Use a clean server. The installer owns Nginx/OpenLiteSpeed, PHP, MariaDB, the mail stack and the firewall rules it needs. Running it on a server that already hosts production sites can overwrite configuration.

Install

Run as root:

bash
curl -fsSL https://get.wasfor.com/install.sh -o install.sh
bash install.sh

Non-interactive install with a preset panel port and admin email:

bash
WASFOR_PORT=8443 WASFOR_ADMIN_EMAIL=admin@example.com bash install.sh --yes

What the installer does

  1. Detects the distribution and architecture, then installs signed packages.
  2. Deploys OpenLiteSpeed (or Nginx), PHP 8.3 with OPcache, MariaDB and phpMyAdmin.
  3. Creates the panel database, service user and systemd units.
  4. Sets up the mail stack, scheduled backups and ACME automation.
  5. Starts the panel and prints its URL and one-time setup token.

The installer is idempotent. Re-running the same command performs an in-place upgrade and keeps websites, databases and mailboxes intact.

After installation

  1. Open https://<server-ip>:<port> and complete the first-run wizard.
  2. Create the administrator account and store the recovery code offline.
  3. Add your license key, or continue on the free plan.
  4. Point a domain at the server and create your first site — see Quick start.

Verify the services:

bash
systemctl status wasfor-panel --no-pager
systemctl status mariadb --no-pager
curl -sk https://127.0.0.1:8443/api/health

A healthy panel returns a JSON body containing "ok": true and the running version.

Upgrade

bash
bash /opt/wasfor/install.sh --upgrade

Upgrades are rolling: the panel reloads, sites keep serving and databases stay online. Take a backup before major version jumps.

Uninstall

bash
bash /opt/wasfor/install.sh --uninstall

The uninstaller removes panel services and packages. It does not delete /home/*/sites, databases or mail data unless you pass --purge-data.

Network and firewall

PortServiceExposure
80 / 443Websites and ACMEPublic
<panel-port>Panel UI and APIRestrict to trusted IPs
25 / 465 / 587Mail submissionPublic if you host mail
3306MariaDBLocalhost only

If the panel is behind a cloud firewall or NAT, allow the panel port from your own address only. The admin panel supports IP allow-lists under Security → Access.

Troubleshooting the installer

SymptomCheck
curl: (6) Could not resolve hostDNS or outbound HTTPS blocked
Port already in usess -lntp and stop the conflicting service
Installer stops at database stepDisk space, MariaDB logs in /var/log/mysql/
Panel unreachable after installsystemctl status wasfor-panel, firewall rules

For deeper diagnostics see Troubleshooting.

Last updated: 2026-12-01