Bỏ qua để đến nội dung
Site hosting The per-site Hosting pages — Status, Logs, Files, SFTP, Database and Backups — for every site type, and the view a client gets for a site shared with them.

Site hosting

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

Every site, whatever its type, has a Hosting group in its per-site shell (/sites/:serverId/:domain/hosting/*). For a static, PHP/Laravel, Node.js, Python or Go site it is the whole rail: opening such a site lands on Hosting · Status. For WordPress the group is shown to site-scoped members (clients); owners manage WordPress hosting from the server’s Sites list instead, and the WordPress shell stays about content. Available on all plans.

PageRouteWhat it doesClient permission
StatushostingStatus, type, PHP, SSL expiry, disk and DB size, the server name and IP—
Logshosting/logsAccess, error, PHP-error and (runtime apps) process logs—
FilesFile ManagerBrowse, upload and edit the site’s home directoryfiles
SFTPhosting/sftpA jailed, key-only SFTP/SSH account for this site, plus extra per-person accountssftp
Databasehosting/databasephpMyAdmin on this site’s database onlydatabase
Backupsa drawer (?backups=1)This site’s snapshots, and restorebackups (list), restore

Pages a client was not given are listed as plain text on Status, not as greyed-out buttons. Owners and server-level members see every page.

One site.info read: whether the site is up, its type and PHP version, certificate expiry, disk and database size, plus the server’s name and IP (needed for DNS and SFTP).

Pick a source — Access, Errors, PHP errors (PHP and WordPress sites) or App process (Node.js / Python / Go) — and Refresh to read again. Each read is a one-shot snapshot; the text filter runs in the browser. Web logs come from the logs.tail job with the target site:<domain>[:<log>] (the API checks that the caller holds that site); app logs come from site.logs {domain, lines?: 1–2000} (the process journal). A Laravel app writes its own log to storage/logs/laravel.log: open it in Files. Its scheduler and queue state is the site.laravel-status job (see Laravel).

One account per site, SSH keys only (no password). Paste a public key to switch it on, remove keys, or turn the account off. The account is jailed with bubblewrap so it sees only this site’s files; on a box where that jail cannot run, the API refuses to create it.

Under the main account, More SFTP accounts gives each person their own login to the same site: enter a name (1–16 lowercase letters or digits) and that person’s public key, then Add account. The login is <main username>_<name> (for example sftp_3fa2c1d9e0_alice), jailed to this site exactly like the main account, with the whole site’s files. Remove one account to cut off one person without touching the others. Up to 20 extra accounts per site; logins are SSH keys only (no passwords). The same sftp permission covers the main account and the extra ones. Removing an account deletes its home folder and keys, never the site files.

Shows the database name and size and opens phpMyAdmin signed in with the site’s own database user, so the session reaches this database and no other. Export and import happen inside phpMyAdmin.

Lists only this site’s snapshots. Restore offers three scopes — Files and database, Files only (keep the current database) or Database only (keep the current files) — and always lands on this site. Backups are scheduled by the server owner in Backups; this page only reads and restores.

Terminal window
mz site info example.com --json # what Status shows
mz site logs app.example.com -n 200 --json # runtime app process journal
mz logs nginx-error --lines 200 --json # box-level log tail

The Hosting routes themselves (/v1/servers/:id/sites/:domain/hosting/*) are session-only — they exist for the dashboard’s client view. Tokens use the general operations:

GoalMCP toolREST / job
Site statussite_getjob site.info
Web logslogs_tail (target: "site:<domain>" or "site:<domain>:<log>")job logs.tail
Runtime app logsjobs_createsite.logs {domain, lines?}
Filesfiles_list, files_read, files_write (files:write)/v1/servers/{id}/fs/* with scope=site&domain=
Snapshotsbackup_snapshots_listGET /v1/backups/snapshots
Restorebackup_snapshots_restore (full + backups:restore)POST /v1/backups/snapshots/{id}/restore

Not available to tokens: phpMyAdmin login links (hosting/pma, db.pma) and the SFTP account routes (main and extra accounts). With a token, the same box users can be managed with the user.add (site, jail: true), user.key-add and user.delete jobs.

  • No Hosting rail for owners on WordPress. That is by design; use the server’s Sites list and the site’s Manage drawer.
  • Logs are snapshots. There is no live follow here; press Refresh.
  • SFTP needs the jail. If the box cannot run bubblewrap, the SFTP page shows the refusal from the API — use the server’s Users & SFTP as the owner.
  • Restore overwrites. A restore replaces live files and/or the database of this site.
  • Site tools — the per-type Manage drawer (deploy, runtime, security, health).
  • Sites — create and list sites on a server.
  • Team & sharing — share a site with a client and pick their permissions.