Extensions
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
The Extensions section of a server (/servers/:id/extensions) is where you add
optional software to a box — extra databases, caches, admin tools, runtimes and
security packages — and manage what’s already there. The page itself is available
on all plans; a few individual extensions need a higher tier to install (each
card shows its minimum plan).
Extensions answer “what software is installed on this box.” That’s a different layer from Services (“is it running”) and Apps (“Docker workloads”) — so something like Redis intentionally shows up in more than one place.
Install an extension, step by step
Section titled “Install an extension, step by step”- Switch to the Available tab (the toolbar’s second segment) to see everything you can add, or search / filter by category to narrow the list.
- Click Install on a card to open its drawer. You’ll see the extension’s facts (category, minimum tier, footprint) and any Prerequisites — for example pgAdmin needs Docker and PostgreSQL installed first.
- For a web-served extension (pgAdmin), optionally set a Domain to serve it at — leave it blank to use the default. Point that domain at the server in DNS & TLS so it resolves.
- Click Install. The installer runs on the agent and its output streams live into the drawer, line by line, ending in a success or failure state. When it’s done the card flips to Installed.
What’s in the catalog
Section titled “What’s in the catalog”| Group | Extensions |
|---|---|
| Databases | MariaDB or MySQL (pick one), PostgreSQL, MongoDB, pgvector, TimescaleDB, PostGIS |
| Cache | Redis or Valkey (pick one), Memcached, Varnish |
| Runtimes | PHP, Node.js, Bun, Deno, Java (OpenJDK 17 / 21 / 25), Go and Python (via site), Supervisor, WP-CLI |
| AI coding CLIs | Claude Code, Codex CLI, Gemini CLI, OpenCode (need Node.js) |
| Security | UFW, Fail2ban, CrowdSec, ModSecurity WAF, ClamAV, Lynis |
| Monitoring | Netdata, Prometheus Node Exporter |
| Containers, network, DNS | Docker Engine, lazydocker, WireGuard, Tailscale, BIND9 |
| Tools | phpMyAdmin, pgAdmin, Toolbox (ffmpeg, ImageMagick, jq, btop, ncdu, htop) |
A few notes on the newer ones:
- Valkey is the BSD-licensed fork of Redis with the same protocol. It replaces
Redis on the server and runs under the same socket (
/run/redis/redis-server.sock), so sites, the WordPress object cache and apps keep working, and the data is carried over. Installing Redis again switches back; that direction usually starts with an empty cache (older Redis cannot read Valkey’s data format), which rebuilds itself. It needs a release that packages Valkey (Ubuntu 24.04+, Debian 13+; it is the built-in cache on AlmaLinux/Rocky 10). - CrowdSec watches SSH and Nginx logs (including each site’s own logs), blocks attackers with a firewall bouncer and shares a community blocklist. It runs next to Fail2ban, which keeps protecting the box.
- Java lets you pick a version at install; add more versions later from its manage drawer, make one the default or remove one.
- Bun and Deno come from the vendors’ release builds and are checked against the published SHA-256 before install.
- Prometheus Node Exporter listens on
127.0.0.1:9100only. Reach it over an SSH tunnel or the private network. - TimescaleDB restarts PostgreSQL once (it has to be preloaded). Enable it per
database with
CREATE EXTENSION timescaledb;(PostGIS:CREATE EXTENSION postgis;). Removing either refuses while a database still uses it. - Lynis audits the server; run
lynis audit system --quickfrom the web terminal (the manage drawer has the command).
What else you can do
Section titled “What else you can do”- Installed / Available tabs — the top toolbar toggles between what’s on the box and what you can add, each with a live count.
- Search and filter by category — full-text search plus a category dropdown (Databases, Cache, Containers, Database Tools, Runtimes, Security, Monitoring, …).
- Manage an installed extension — click Manage to open the all-in-one hub:
facts, live runtime vitals (status, PID, memory, uptime), an Auto-start on boot
toggle, Start / Stop / Restart controls for service-backed extensions, and an
Update button (
extension.update, the installer re-run as an in-place upgrade, log streamed into the hub). - Distro availability — an extension the agent cannot install on the server’s
distro family stays listed as Not available on
instead of offering Install. Ubuntu/Debian only today: UFW (AlmaLinux/Rocky use firewalld, managed in Security), Valkey, CrowdSec, Java, Lynis, Node Exporter, TimescaleDB, PostGIS and the Toolbox. pgvector needs agent 0.2.74 or newer. - Tune it inline — extensions with a real config surface get a Configuration tab: MariaDB (buffer pool, connections, durability, slow-query log — with a hardware-derived recommended value you can click to fill), Redis (max memory + eviction policy) and UFW (firewall on/off).
- Read its logs — service-backed extensions get a Logs tab showing the systemd journal tail.
- Get started — runtimes, CLIs and tools without a settings form get a Get started tab: the first commands to run (each with a copy button) and an Open terminal button for this server.
- Jump to where it’s configured — packages configured elsewhere deep-link out: Docker → Apps, PostgreSQL / MongoDB / TimescaleDB / PostGIS → Databases, CrowdSec / Lynis → Security, BIND9 → Nameservers.
- Manage PHP versions — the PHP card opens its own hub: the installed versions list, set-default, restart FPM, and open a version’s full config.
- MariaDB or MySQL, not both — the two share port 3306, the
mysqlservice and the data directory, so a server runs one of them. While one is installed the other’s Install is disabled (“MariaDB is installed — MySQL would conflict. Remove MariaDB first.”), and anextension.installjob for it fails withdb_engine_conflictwithout touching the server. - Remove it — the trash action arms an uninstall. Destructive removes (which drop data or a protection layer) require you to type the extension id to confirm; MariaDB additionally offers Back up all databases first.
- Marketplace — the toolbar’s Marketplace button opens the fleet catalog to browse and install across every server at once.
- Ask the Assistant — on this page the Assistant chat suggests extensions for what
you describe (“add a database GUI”, “harden security”, “speed up my sites”). Each card
shows the server’s real state and has an Install button that runs the same
extension.installjob as the list, with the default version, and streams the last log line into the card. A card shows why instead when one-click install is not possible: your plan’s tier, a missing prerequisite (“Needs Docker”), the server’s distro, a pick-one partner already installed (“Replaces Redis”, install it from the list) or a runtime that comes with a site. Pick a version or a custom domain from the list’s install drawer.
How it works
Section titled “How it works”Everything on this page runs through the server’s agent, which does the work natively (no shell-out to a legacy CLI):
| Action | Job | Agent does |
|---|---|---|
| List installed | extension.list | reads the pushed extensions inventory |
| Install | extension.install | runs the installer, streaming progress lines |
| Remove | extension.remove | uninstalls (optionally --backup for MariaDB) |
| Update | extension.update | updates the package in place |
| Start / stop / restart / boot | service.action | drives the systemd unit |
| Read logs | service.logs | tails the unit’s journal |
The card list is cache-first: it reads the agent-pushed extensions inventory,
so an offline box still shows its last-known installed software instead of an empty
view. The agent re-pushes that inventory after every install / remove / update and
on its periodic sweep. Install and remove don’t return JSON — they emit the same
plain [mz] … progress lines the CLI prints, which is what streams into the drawer.
The list of extensions, their categories, minimum tiers and prerequisites come from a shared manifest, joined per-server with the live installed / version / running state. There’s no separate MZPanel-side record of “what’s installed” — the box is the source of truth.
CLI & automation
Section titled “CLI & automation”Every action maps to an mz extension command on the box — the same engine the
dashboard drives. SSH in and run them directly:
mz extension list --json # installed / version / running per extensionmz extension install redis # install; progress streams to stdoutmz extension update netdata # update a package in placemz extension remove mariadb --backup # remove; dump all DBs first (MariaDB only)mz extension install java --version 25 # add Java 25 and make it the defaultmz extension remove java --version 17 # remove one Java versionThe argv here is identical to what the panel dispatches. See The mz CLI and the command catalog.
Automate it (MCP / REST)
Section titled “Automate it (MCP / REST)”MCP (mcp.mzpanel.com) and the REST API (/v1/api, same token) are on every plan.
Call jobs_schema (or GET /v1/api/job-kinds/{type}) before jobs_create /
POST /v1/servers/{id}/jobs to get each kind’s exact body, token level and scope.
| Goal | MCP tool | Job kind |
|---|---|---|
| What is installed (fleet) | servers_extensions_installed | GET /v1/servers/extensions/installed |
| Install / update / remove | jobs_create | extension.install {id, version?}, extension.update, extension.remove {id, version?} |
| Start / stop / logs | service_control, jobs_create | service.action, service.logs |
Install and remove need a full-level token. A Plus/Pro extension on a lower plan
returns 403 tier_required with the message <Name> requires the <TIER> plan or higher.
(e.g. “MongoDB requires the PRO plan or higher.”).
Gotchas & troubleshooting
Section titled “Gotchas & troubleshooting”- Base packages can’t be removed here. PHP, WP-CLI and process isolation power the panel itself — they show a note instead of a Remove action. Switch PHP versions in PHP settings instead.
- Destructive removes ask you to type the id. Removing an SQL/NoSQL engine destroys its databases; removing UFW or Fail2ban drops a protection layer. Those arm a type-the-id-to-confirm step. Only proceed if you understand the consequence — a cloud/network firewall should protect the box before you remove UFW.
- Removing Docker destroys everything in Apps. Every container, app/stack, image and named volume goes with it.
- pgAdmin needs its prerequisites. Install Docker and PostgreSQL first, or the Install button stays disabled with a “Needs …” hint.
- Extension locked behind a plan? The card shows Upgrade with the minimum tier when your workspace plan is too low. Docker Engine is on every plan; Pro unlocks lazydocker, pgAdmin, MongoDB, Netdata, Node Exporter and the AI coding CLIs; Supervisor needs Plus.
- “not packaged for this OS release”? Valkey needs Ubuntu 24.04+ or Debian 13+;
keep Redis on older releases. On AlmaLinux/Rocky most extensions are refused with a
clear “not available on
yet” message; Node.js, Bun, Deno and the AI CLIs work there. - An AI CLI fails with “Node.js is required first”. Install the Node.js extension, then retry.
- Agent must be online to change anything. Offline, the section renders the last-known list read-only and shows an “agent offline” state — install, remove and service controls need a live connection.
- Redis appears in Services too. That’s intentional: Extensions manages the package, Services manages the running process. They stay in sync.
Related
Section titled “Related”- Marketplace — browse and install across the whole fleet.
- Services — start/stop the daemons these extensions install.
- Apps — Docker containers and stacks (needs the Docker extension).
- Databases — where MariaDB, PostgreSQL and MongoDB are tuned.
- PHP — manage PHP versions and per-version settings.