azerioid-stack-manager README

The project's README from github.com/azerioid/azerioid-stack-manager. As one markdown file: README.md.

AZERIOID Stack Manager

One host. One panel. A Linux web stack you control.

AZERIOID Stack Manager is a self-hosted control panel for running sites on a single Linux server. One installer sets up Caddy, the panel's own PHP 8.4 FPM service and a SQLite-backed admin UI on Laravel 13 + Livewire 4. Everything else — Nginx, Apache, databases, caches, more PHP versions, Node.js, Supervisor, mail, rootless Docker, Elasticsearch — is installed on demand from the dashboard or the azerioid CLI.

The web UI never runs package managers or touches the host itself. Every privileged change goes through a separate root broker that only accepts a fixed list of actions and re-validates every input. Each site runs under its own Unix account.

Star History

Star History Chart

Screenshots

Captured from the maintainer's Ubuntu 24.04 test host. Domain names and the host's IP address were replaced with documentation values (example.com, 203.0.113.x). The screenshots predate some newer pages (Redis, Firewall, Cron, SFTP) and show earlier wording in places, such as the Docker description on the Components page.

Overview Virtual hosts
Overview Virtual hosts
Virtual hosts · row actions Docker runtime filter
Virtual hosts actions Docker vhosts
Mail Databases
Mail Databases
Terminal File Manager + editor
Terminal File Manager
Components Security
Components Security

What the installer sets up vs what you add later

Installed by the bootstrap

Piece Role
Caddy Panel listener on port 3169; front door on :80/:443 for every site
PHP 8.4 FPM The panel's own php-fpm service, running as the dedicated azerioid-panel account
SQLite Panel state under /var/lib/azerioid-panel/
Broker Root helper reached through one sudoers entry that only azerioid-panel holds
Queue worker + scheduler Background jobs (installs, backups, deploys) and periodic convergence checks

Installed on demand (Components page or azerioid component install …)

Category Components
Web engines Nginx, Apache — bound to loopback behind Caddy, which terminates TLS
Databases MariaDB, PostgreSQL, MongoDB
Cache / search Redis (per-site users), Memcached (single-tenant, see limitations), Elasticsearch 9
Runtimes PHP 8.1–8.4 for sites (one FPM pool per site); Node.js 20 / 22 / 24 side by side, plus an optional system Node.js
Process manager Supervisor
Per-site app runtimes PHP-FPM (default), Laravel Octane on FrankenPHP, PM2 cluster for Node, rootless Docker (image, Dockerfile or compose)
Mail Postfix + Dovecot + OpenDKIM: authenticated submission, virtual mailboxes, DKIM/SPF/DMARC records, direct or smarthost outbound
Tools Adminer (MariaDB, PostgreSQL, SQLite; reachable only through the panel session)

Per-site isolation

Every site gets its own Unix account (az-vh-<site>) and its own group. Other sites' accounts are not members of that group (the web server is, so it can serve the files), so site A's code cannot read site B's files.

Workload Runs as
Site PHP Its own PHP-FPM pool, under the site's account. The socket is reachable only by the web server
Laravel Octane The site's account
PM2 The site's account, with its own PM2_HOME
Supervisor program bound to a site The site's account. Asking for any other account is refused
Supervisor program bound to no site The shared azerioid-supervised account (never root)
Docker One rootless Docker daemon per Docker site, run by the site's account, with its own subordinate ID range. Rootful docker.service is masked and there is no docker group
Terminal and File Manager The site's account. The File Manager rejects paths outside the site; the terminal is a normal, non-chrooted shell limited by file permissions
SFTP The site's account. Keys only, no shell, no forwarding, no chroot
Git deploy Root fetches with a root-only deploy key; checkout and build steps run as the site's account
Cron jobs The site's account. A root job needs a typed confirmation every time
Redis A Redis ACL user per site, limited to keys and channels under its own prefix
Databases One user per database. MariaDB grants cover only that database; PostgreSQL databases are closed to other roles

Sites are moved onto this layout automatically when an older install updates, one at a time, with an HTTP check after each move. A site that fails its check is put back on the shared pool or daemon and reported, not retried. The shared azerioid-supervised account and the shared Docker daemon are still used for such put-back sites and for programs bound to no site.

Features

Supported operating systems

The installer accepts these and refuses everything else (Fedora, older or newer Ubuntu releases, other distributions):

OS Versions
Ubuntu 24.04
Debian 12, 13
AlmaLinux, Rocky Linux, CentOS Stream, RHEL, Oracle Linux 9, 10

Every release is deployed to the maintainer's Ubuntu 24.04 host and checked with deploy/verify-release.sh; a Rocky Linux 9 host with SELinux enforcing is used for EL testing. Other accepted versions get less regular testing; release notes say what a release was tested on.

Requirements: root, outbound HTTPS, git.

Quick start

git clone https://github.com/azerioid/azerioid-stack-manager.git stack-manager && cd stack-manager
chmod +x stack-manager.sh
sudo ./stack-manager.sh

Interactive install (TTY) asks for:

Non-interactive example:

sudo ./stack-manager.sh --non-interactive --access=public --create-admin=true [email protected]
# Set ADMIN_PASSWORD in the environment. There is no default: it needs 12+ characters with upper and
# lower case, a number and a symbol, or the install stops at the admin step (use /setup in the browser instead).

Tunnel access after a default install:

ssh -L 3169:127.0.0.1:3169 user@host
# open http://127.0.0.1:3169/setup  (or /login if an admin was created)

Other flags: --firewall=true, --fail2ban=true, --require-totp=true, --domain=, --allowlist=, --port=, --dry-run. Full list: sudo ./stack-manager.sh --help.

Security model

Design decisions and their reasoning: docs/DECISIONS.md (ADRs), docs/SPEC.md, docs/port-ownership.md. Reporting a vulnerability: SECURITY.md.

CLI examples

azerioid status
azerioid vhost list --json
azerioid vhost add --domain=app.example.com --type=php --php=8.4 --root=/data/www/app.example.com --tls=auto
azerioid vhost add --domain=api.example.com --type=php --php=8.4 --runtime=octane --tls=auto
azerioid vhost octane enable --domain=api.example.com
azerioid vhost octane reload --domain=api.example.com
azerioid vhost pm2 enable --domain=node.example.com --instances=2 --entry=server.js
azerioid vhost docker enable --domain=app.example.com --mode=image --image=nginx:alpine --internal-port=80
azerioid vhost clone --source=app.example.com --domain=staging.example.com --db=appdb:appdb_staging
azerioid vhost limits --domain=app.example.com --php-memory=256 --max-children=10
azerioid vhost limits --domain=box.example.com --memory=512 --cpu=150   # --cpu applies to Docker only
azerioid db add --engine=mariadb --name=appdb --user=appdb
azerioid db clone --engine=mariadb --source=appdb --name=appdb_staging
azerioid component install redis
azerioid component install mail   # refuses another MTA unless --option=confirm=REPLACE-MTA
azerioid process create --vhost=app.example.com --command='node server.js' --name=app-node
azerioid mail hostname set --hostname=mail.example.com
azerioid mail domain enable --domain=app.example.com
azerioid mail mailbox add [email protected]   # password printed once
azerioid mail smarthost set --host=smtp.provider.example --port=587 --username=apikey
# relay password: AZERIOID_RELAY_PASSWORD=… in the environment (not a flag)
azerioid mail dns --domain=app.example.com
azerioid panel update check
azerioid panel update apply --confirm              # latest release
azerioid panel update apply --v=v2.15.7 --confirm  # a specific release

Further command groups: backup, deploy, cron, sftp, firewall, search, updates, totp, audit, service. Redis per-site users are managed on the Redis page. Full surface: azerioid help.

Known limitations

General

Sites and runtimes

Mail

Caches and search

Backups

Web and updates

Not yet exercised on a live host (covered by tests only):

Uninstall

Panel only:

sudo ./deploy/uninstall.sh --drop-db --remove-bootstrap

Full teardown — panel, broker-managed components, added repositories and the database engines' data directories:

sudo ./deploy/uninstall.sh --full

--full deletes every database on the host (/var/lib/mysql, /var/lib/mongodb, /var/lib/pgsql, /var/lib/postgresql). Back up first. It keeps site trees under /data/www and the logs under /var/log/azerioid-panel. sudo ./deploy/uninstall.sh --help lists the individual flags.

How this project is built

The code in this repository is written by an AI coding agent, Claude Code (Anthropic), working under the maintainer's direction. The maintainer:

Every change also goes through the automated test suite and CI.

License

MIT — see LICENSE.

Contributing

Issues and pull requests: azerioid/azerioid-stack-manager. Architecture decisions live in docs/DECISIONS.md; keep ADR history intact when proposing changes. Security issues: see SECURITY.md, not the public tracker.

azerioid-stack-manager (azerioid/azerioid-stack-manager)

Searching Database…

What is this?AZERIOID Stack Manager is a self-contained stack manager and web control panel for operators who run sites on a single Linux server. It bootstraps Caddy, a dedicated PHP-FPM pool and a SQLite-backed admin UI, then lets you add web servers, databases, cache, mail, Node.js and rootless Docker on demand.
Is this a library I install in code, or a standalone server app?It is a standalone self-hosted web application plus a matching CLI (azerioid), built on Laravel 13 + Livewire 4 with a SQLite panel database — not a library you import into another project.
How do I get it running on my server?Run the interactive installer with root privileges (sudo ./stack-manager.sh), which prompts for access mode (tunnel or public), panel port, TOTP, firewall and fail2ban; non-interactive flags are also supported for scripted installs.
What does my server need before installing this?You need root access, outbound HTTPS, and git. It runs on Ubuntu 24.04, Debian 12/13, AlmaLinux/Rocky/CentOS Stream 9+, and RHEL/Oracle Linux 9+; Fedora is explicitly not supported.
What are the current limitations?There's no multi-user RBAC yet (single admin only), archive extraction is intentionally left out of the File Manager, and the bundled mail server ships without webmail, spam filtering, quotas or catch-all addresses.
Who is this built for?VPS and bare-metal operators running a single Linux box who want a clean bootstrap plus a real day-two UI for sites, databases, mail and processes, instead of hand-rolling server config.
Does it work on any Linux distro?No — it's verified on Ubuntu 24.04, Debian 12/13, AlmaLinux 9+, Rocky Linux 9+, CentOS Stream 9+ and RHEL/Oracle Linux 9+ (EL path with SELinux enforcing); Fedora is explicitly refused by the installer.
Are secrets like DNS tokens and passwords kept safe?DNS-01 API tokens and mail/smarthost secrets are stored root-only and are never accepted via command-line arguments; other secrets go through the environment or one-time stdout.
What can I install on demand beyond the bootstrap stack?From the Components page or the azerioid CLI you can add Nginx or Apache, MariaDB/PostgreSQL/MongoDB, Redis/Memcached, PHP 8.1-8.3 or Node.js 20/22/24 runtimes, Supervisor, a full mail stack (Postfix+Dovecot+OpenDKIM), and rootless Docker.
How does HTTPS get set up for my sites?Caddy terminates TLS and supports automatic Let's Encrypt HTTP-01, self-signed/internal TLS, and DNS-01 via Cloudflare or DigitalOcean (lightly tested compared to internal TLS).
Can each site run on its own engine or runtime?Yes — each virtual host independently picks Caddy, Apache or Nginx as its engine, and can opt into Laravel Octane (FrankenPHP), PM2 cluster mode for Node, or rootless Docker instead of the default PHP-FPM.
Is the panel exposed to the internet by default?No, the default access mode is a localhost tunnel (127.0.0.1:3169); public HTTPS access on the host IP is an explicit install-time choice.
Creator
azerioid
Size
7 MB
Stars
674
Age
3mo
Commits · 90 Days