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
| Item | Minimum | Recommended |
|---|---|---|
| OS | Debian 12, Ubuntu 22.04 | Debian 12 |
| CPU | 2 vCPU | 4 vCPU |
| RAM | 2 GB | 4 GB |
| Disk | 20 GB free | 60 GB SSD |
| Architecture | amd64, arm64 | amd64 |
| Access | root or sudo | root |
| Network | Outbound HTTPS | Outbound 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:
curl -fsSL https://get.wasfor.com/install.sh -o install.sh
bash install.shNon-interactive install with a preset panel port and admin email:
WASFOR_PORT=8443 WASFOR_ADMIN_EMAIL=admin@example.com bash install.sh --yesWhat the installer does
- Detects the distribution and architecture, then installs signed packages.
- Deploys OpenLiteSpeed (or Nginx), PHP 8.3 with OPcache, MariaDB and phpMyAdmin.
- Creates the panel database, service user and systemd units.
- Sets up the mail stack, scheduled backups and ACME automation.
- 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
- Open
https://<server-ip>:<port>and complete the first-run wizard. - Create the administrator account and store the recovery code offline.
- Add your license key, or continue on the free plan.
- Point a domain at the server and create your first site — see Quick start.
Verify the services:
systemctl status wasfor-panel --no-pager
systemctl status mariadb --no-pager
curl -sk https://127.0.0.1:8443/api/healthA healthy panel returns a JSON body containing "ok": true and the running version.
Upgrade
bash /opt/wasfor/install.sh --upgradeUpgrades are rolling: the panel reloads, sites keep serving and databases stay online. Take a backup before major version jumps.
Uninstall
bash /opt/wasfor/install.sh --uninstallThe uninstaller removes panel services and packages. It does not delete /home/*/sites, databases or mail data unless you pass --purge-data.
Network and firewall
| Port | Service | Exposure |
|---|---|---|
| 80 / 443 | Websites and ACME | Public |
<panel-port> | Panel UI and API | Restrict to trusted IPs |
| 25 / 465 / 587 | Mail submission | Public if you host mail |
| 3306 | MariaDB | Localhost 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
| Symptom | Check |
|---|---|
curl: (6) Could not resolve host | DNS or outbound HTTPS blocked |
| Port already in use | ss -lntp and stop the conflicting service |
| Installer stops at database step | Disk space, MariaDB logs in /var/log/mysql/ |
| Panel unreachable after install | systemctl status wasfor-panel, firewall rules |
For deeper diagnostics see Troubleshooting.