Bỏ qua để đến nội dung
Site tools (Manage drawer) The per-site Manage drawer for each site type — Deploy, Releases, Runtime, Settings, Tools, Security, Health, Logs and Commands — with the job kinds behind every tab.

Site tools (Manage drawer)

Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.

Every site card on a server’s Sites list (and on the account-level Sites page) has a Manage button. It opens a drawer whose tabs depend on the site type. This is where infrastructure for a single site lives — domains, PHP, TLS, deploys, the WAF, isolation — while content (for WordPress) lives in the per-site shell. Available on all plans unless a row says otherwise.

TabStaticPHP / LaravelNode.js / Python / GoWordPress
Overview✓✓✓✓
Plugins & Themes✓
Deploy (only with a Git repo)✓✓✓✓
Releases (atomic deploys)✓✓✓
Settings✓✓✓✓
Runtime✓
Cache · Optimize✓
Tools✓✓
Security✓✓✓
Health✓✓
Logs✓
Commands (not live)✓✓✓
  • Overview — the deployment summary: status, domain, type, PHP/runtime, TLS.

  • Settings — Domains (aliases), PHP version (php.switch {domain, version}), TLS (ssl.issue, ssl.delete, ssl.auto-renew, ssl.https-redirect), for WordPress search visibility, and for PHP/WordPress the .htaccess → nginx converter: preview with site.htaccess-convert {domain, dryRun: true}, apply without dryRun, undo with site.htaccess-clear. Lines that cannot be converted are listed with the reason. Static sites also show the Cloudflare proxy switch here (see below).

  • Releases (static, PHP, runtime) — atomic deploys with rollback: enable with a git repo and build steps (deploy.init {domain, repo?, branch?, public?, build?}), deploy a release (deploy.run {domain, ref?} — git clone → build → symlink flip), list (deploy.list) and roll back (deploy.rollback {domain, to?}). Pro.

  • Runtime (Node.js / Python / Go) — restart the app process (site.restart), edit the app’s environment file (site.env-get, site.env {domain, env}), the opt-in Micro-cache (site.microcache) and the Cloudflare proxy toggle.

  • Logs (runtime apps) — the app’s process journal (site.logs {domain, lines?}).

  • Plugins & Themes / Cache / Optimize / Tools (WordPress) — see Plugins, themes & users and Optimize & cache. WordPress Tools has enable/disable, maintenance mode, WP_DEBUG, cache and transient flush, database optimize and search-replace (wp.tool {domain, action: status|maintenance-on|maintenance-off|debug-on|debug-off|cache-flush|transient-flush|db-optimize|search-replace}).

  • Laravel (PHP sites with framework Laravel, jobs only for now) — the app’s .env (site.env-get, site.env {domain, env}, also for plain PHP sites), the scheduler and queue workers (site.laravel-status, site.laravel {domain, scheduler?, queue?, queueProcs?}) and allowlisted artisan commands (site.artisan {domain, command}). See Laravel.

  • Tools (PHP) — the opt-in Micro-cache (site.microcache) and the Cloudflare proxy switch: the orange cloud on the apex and www. records through the workspace’s Cloudflare connection, guarded against “Cloudflare only” (details in Optimize & cache).

  • Security — a hub with sub-tabs: Firewall (ModSecurity + OWASP CRS per site: waf.status, waf.enable, waf.mode off|learning|blocking, waf.disable; offers to install the free ModSecurity extension first), Malware scan (ClamAV over the docroot: security.scan {path}, findings quarantined or deleted with security.file) and, WordPress only, Integrity (core/plugin checksums: security.wp-integrity).

  • Health (PHP, WordPress) — four blocks: Advice (Smart Advice, below), Isolation (whether the site runs on its own sandboxed PHP-FPM, toggle with site.isolate {domain, off?}), Cap hits (how often it hit its resource caps over 24 h / 7 d / 30 d — GET /v1/servers/{id}/sites/{domain}/faults?range= — plus its Database time for the range) and Slow requests (the PHP slow log grouped by plugin, theme and file — site.slowlog).

  • Smart Advice (every plan) lists what to fix, each with the numbers behind it, one action and Snooze 7d / Dismiss (for the whole workspace). It only speaks on facts the kernel or the database counted:

    RuleFires whenAction
    memory_cap≥ 1 OOM kill (critical) or ≥ 3 memory-ceiling hits in 7 days; names the top slow plugin when knownChange the plan
    process_cap≥ 1 process-limit hit in 7 daysChange the plan
    slow_plugin≥ 10 PHP requests over 5 s in 7 days and one plugin/theme behind ≥ 80 % of themSee slow requests (site.slowlog)
    db_timethe database spent ≥ 5 min on the site’s queries in 24 h and that is ≥ 50 % of DB time + the site’s CPU timeOpen databases

    Cap rules need a resource plan (a slice); slow-log and DB data need agent 0.2.161+. Database time is MariaDB userstat (the agent turns it on at runtime; DB_USERSTAT=0 in the box’s server.conf opts out) or performance_schema on MySQL. It is measured, not limited.

  • Commands — a one-shot runner for wp-cli / artisan / composer / npm. Not live: its output is a placeholder, because the agent has no site.exec job yet. Do not rely on it; use the web terminal or SSH.

Staging (WordPress) is reached from the site’s Clone action: pick a production target on the same server, preview the diff, then push files and optionally the database with a reverse search-replace; a pre-push snapshot of production is taken automatically (site.push, site.pull, site.link; Pro). See Staging & deploys.

Terminal window
mz site restart app.example.com --json
mz site isolate example.com --json # sandboxed PHP-FPM (add --off to undo)
mz site slowlog example.com --json
mz site htaccess convert example.com --dry-run --json
mz waf enable example.com --mode learning
mz deploy run app.example.com --ref main --json

All of these are job kinds: call jobs_schema for the body, then jobs_create (MCP) or POST /v1/servers/{id}/jobs (REST). Extra points:

  • The Cloudflare proxy switch is not a job: read the records with dns_records_list (GET /v1/dns/records?domain=) and rewrite the apex/www. record with proxied through dns_records_update (PUT /v1/dns/records/{id}, every field is rewritten). Before turning it off, read site.cf-only {domain} and turn it off first (mode: "off") when enabled is true. See Optimize & cache.
  • Cap-hit history has its own tool: sites_faults.
  • Smart Advice: sites_advice (GET /v1/servers/{id}/sites/{domain}/advice), servers_advice_summary (GET /v1/servers/{id}/advice/summary), sites_advice_dismiss (POST …/advice/{rule}/dismiss, body {days?: 1-90}; no days = dismiss) and sites_advice_restore (DELETE on the same path). A rule whose action.kind is job carries a ready jobs_create body. A db_time hit also raises the resource.cap event (kind db_time, once a day per site).
  • waf.enable / waf.disable need a full-level token; security.file needs files:write; deploy.rollback and site.push / site.pull need backups:restore.
  • deploy.*, site.push, site.pull and site.link are Pro (403 tier_required).
  • site.env is never queued for an offline box (409 server_offline), because the queue would hold the values in clear.
  • For a site shared with a client, the client also needs the owner’s site permission: hardening for isolation and .htaccess, resources for caps, lifecycle for enable/disable/delete, clone for clone/push/pull.
  • Not wired yet in the drawer: the Deploy tab’s git settings (branch, auto-deploy, deploy now, rollback), alias add/remove, the WordPress search-visibility toggle, the Tools → Back up action and the PHP Tools “clear cache” button. Use Releases for real atomic deploys and Hosting → Backups or Backups for backups.
  • Commands is a mock (see above).
  • Isolation needs a recent agent. An older agent answers site.isolate with exit 127; update the agent.
  • Sites — create sites and set resource limits.
  • Site hosting — status, logs, files, SFTP, database, backups.
  • Security — box-level firewall, SSH and Fail2ban.