# Hosted EZ > Documentation, deployment guides, MCP server reference, and API reference for Hosted EZ managed web hosting. Index: https://docs.hostedez.com/llms.txt # Hosted EZ Documentation > Deploy static sites, WordPress, Laravel, Drupal, Nextcloud, and custom PHP applications on Hosted EZ — and automate your infrastructure with MCP. Source: https://docs.hostedez.com/ · Markdown: https://docs.hostedez.com/index.md **Hosted EZ** is managed web hosting built for fast static bundles, modern PHP frameworks, and one-click CMS workloads. Every site gets an isolated runtime, free preview HTTPS (`.hostedez.site`), HTTP/3, Brotli compression, SFTP with SSH keys, and a built-in File Manager. - [Deploy a Static Site](/deploy/static-sites) — Upload a .zip or .tar.gz bundle with SPA fallback, clean URLs, custom headers, and 1-click atomic rollbacks. - [Launch WordPress](/deploy/wordpress) — One-click WordPress with dedicated MariaDB, full-page caching, APCu object cache, systemd WP-Cron, and WP-CLI. - [Deploy Laravel](/deploy/laravel) — Pre-installed PHP 8.5 runtime with Composer, Artisan, OPcache, optional MariaDB, and scheduled cron jobs. - [Connect AI Agents via MCP](/automation/mcp-server) — Automate sites, deploys, DNS, databases, and email from Claude Code, Cursor, Codex, or VS Code. ## Popular tasks - [2-Minute Quickstart](/get-started/quickstart) — Go from an empty account to a live HTTPS site on Hosted EZ. - [SFTP & GitHub Actions CI/CD](/deploy/sftp-and-github-actions) — Automate continuous deployments using SSH public keys and sftp.hostedez.com. - [Connect a Custom Domain](/domains/connect-custom-domain) — Attach a domain via Hosted EZ Domains, Hosted EZ DNS, or External DNS with automatic HTTPS. - [Managed MariaDB & Database Studio](/databases/mariadb) — Browse tables, run SQL queries, and import or export dumps directly in the dashboard. - [Domain Email & Webmail](/email/mailboxes-and-webmail) — Set up mailboxes, SPF/DKIM/DMARC, Sieve filters, and custom webmail branding. - [REST API Reference](/api/) — Explore the customer HTTP endpoints powering app.hostedez.com. > **For AI Agents & LLMs** > > Every documentation page is served as clean Markdown. Append `.md` to any page URL, send `Accept: text/markdown`, or fetch the machine-readable indexes at [`https://docs.hostedez.com/llms.txt`](https://docs.hostedez.com/llms.txt) and [`https://docs.hostedez.com/llms-full.txt`](https://docs.hostedez.com/llms-full.txt). # REST API & Automation Overview > Understand authentication for the Hosted EZ HTTP API (`api.hostedez.com`) vs the Hosted EZ MCP Server (`mcp.hostedez.com`) for programmatic and AI agent workflows. Source: https://docs.hostedez.com/api-reference/ · Markdown: https://docs.hostedez.com/api-reference/index.md Hosted EZ exposes two programmatic interfaces depending on how you interact with your account: - **Hosted EZ MCP Server (`https://mcp.hostedez.com/mcp`)** — Recommended for **AI agents and programmatic automation**. Authenticates via OAuth 2.1 + PKCE (`sites:read`, `sites:write`, `account:read`) and exposes 88 tools covering sites, deployments, rollbacks, custom domains, DNS, databases, staging, backups, and email. - **Hosted EZ REST API (`https://api.hostedez.com`)** — The HTTP API backing the Hosted EZ dashboard (`app.hostedez.com`). Customer `/v1/*` endpoints currently authenticate via **dashboard session cookies (`sessionCookie`)**; standalone customer REST API keys are not yet offered. - [Interactive REST API Reference](/api/) — Explore all 120 customer endpoints, request/response schemas, and examples synced from api.hostedez.com/openapi.json. - [Machine-Readable API Index](https://docs.hostedez.com/api/llms.txt) — Fetch /api/llms.txt for the full OpenAPI endpoint index formatted for LLMs and agents. > **CI/CD File Deployments** > > For headless deployments from GitHub Actions or other CI runners, use **SFTP** (`sftp.hostedez.com:22`) with SSH public keys instead of REST API tokens. # Hosted EZ REST API > HTTP API backing the Hosted EZ dashboard (`https://api.hostedez.com`). ### Authentication - **Dashboard session cookies (`sessionCookie`)**: Customer `/v1/*` endpoints authenticate using an active Hosted EZ browser session cookie. Standalone customer REST API keys are not yet offered. - **Programmatic & AI agent automation (MCP)**: Use the Hosted EZ MCP Server at **`https://mcp.hostedez.com/mcp`** with OAuth 2.1 (`sites:read`, `sites:write`, `account:read`) to automate sites, deployments, domains, databases, staging, backups, and email. See the [MCP Server guide](/automation/mcp-server). - **CI/CD file uploads**: Use SFTP (`sftp.hostedez.com:22`) with SSH public keys. See [Deploy via SFTP & GitHub Actions](/deploy/sftp-and-github-actions). Source: https://docs.hostedez.com/api/ · Markdown: https://docs.hostedez.com/api/index.md HTTP API backing the Hosted EZ dashboard (`https://api.hostedez.com`). \### Authentication - **Dashboard session cookies (`sessionCookie`)**: Customer `/v1/*` endpoints authenticate using an active Hosted EZ browser session cookie. Standalone customer REST API keys are not yet offered. - **Programmatic & AI agent automation (MCP)**: Use the Hosted EZ MCP Server at **`https://mcp.hostedez.com/mcp`** with OAuth 2.1 (`sites:read`, `sites:write`, `account:read`) to automate sites, deployments, domains, databases, staging, backups, and email. See the [MCP Server guide](/automation/mcp-server). - **CI/CD file uploads**: Use SFTP (`sftp.hostedez.com:22`) with SSH public keys. See [Deploy via SFTP & GitHub Actions](/deploy/sftp-and-github-actions). Version: 1.0.0 ## Servers - `https://api.hostedez.com` # AI Agent Workflows > End-to-end prompt recipes and guardrails for automating static sites, WordPress staging updates, MariaDB migrations, and email onboarding with the Hosted EZ MCP Server. Source: https://docs.hostedez.com/automation/agent-workflows/ · Markdown: https://docs.hostedez.com/automation/agent-workflows/index.md Once you connect your AI client to the [Hosted EZ MCP Server](/automation/mcp-server), your agent can chain multiple Hosted EZ tools into safe, repeatable operational workflows. Below are battle-tested recipes and safety practices. ## 1. Provision & Configure a Static SPA with Custom Domain Use this workflow when launching a React, Vite, Vue, or Svelte single-page application: > **Prompt:** "Create a new Hosted EZ Static site named `Acme App` with SPA fallback enabled, Clean URLs disabled, a `/404.html` fallback page, and `Cache-Control: public, max-age=31536000, immutable` on `/assets/*`. Attach `app.acme-example.com` and show me any DNS records I need to add, plus the SFTP connection details so I can configure GitHub Actions." **Tools your agent chains:** 1. `create_site` (`app: "static"`, `staticConfig` with `spaFallback: true` and `customHeaders`) 2. `connect_domain` (`siteId`, `domain: "app.acme-example.com"`) 3. `get_site_sftp` (`siteId`) — retrieves `sftp.hostedez.com:22` and `sftp_` username 4. `add_site_sftp_key` (`siteId`, `label`, `publicKey`) — registers your CI deploy key 5. After deploying via archive upload or SFTP, use `list_site_deployments` and `rollback_site_deployment` for instant atomic rollbacks if a release regresses. ## 2. Safe WordPress Plugin Update via Backup & Staging Never test risky plugin or core upgrades directly in production. Have your agent take a backup, verify the upgrade in staging, and promote cleanly: > **Prompt:** "Take an on-demand backup of `sit_acmeshop` labeled `pre-wp-update`, wait until it is ready, then create a staging clone. Run `wp plugin update --all` on the staging site, check `wp plugin list`, and wait for my approval before pushing staging to live." **Tools your agent chains:** 1. `create_site_backup` (`siteId: "sit_acmeshop"`, `label: "pre-wp-update"`) 2. Poll `list_site_backups` until the new backup's status is `ready` 3. `create_staging_site` (`siteId: "sit_acmeshop"`) 4. `run_site_command` on the staging site ID (`command: "wp plugin update --all"`, `timeoutSeconds: 180`) 5. `run_site_command` (`command: "wp plugin list --status=active"`) to verify versions 6. After human review on `https://staging-.hostedez.site`: `push_staging_to_live` (`includeFiles: true`, `includeDatabase: true`) — which also purges live caches automatically. ## 3. MariaDB Schema Audit & Safe SQL Migration Let your agent inspect live tables, export a portable SQL backup, and run targeted migrations: > **Prompt:** "Inspect the database linked to `sit_acmeportal`, list the largest tables, export a schema-only backup first, then add an index on `orders(created_at)` and confirm it with `SHOW INDEX FROM orders`." **Tools your agent chains:** 1. `list_databases` → locate the `db_...` ID linked to `sit_acmeportal` 2. `get_database_usage` (`databaseId`, `refresh: true`) & `list_database_tables` (`databaseId`) 3. `export_database_sql` (`databaseId`, `schemaOnly: true`) 4. `run_database_query` (`databaseId`, `sql: "CREATE INDEX idx_orders_created_at ON orders (created_at);"`) 5. `run_database_query` (`databaseId`, `sql: "SHOW INDEX FROM orders;"`) > **Large SQL dumps** > > MCP `import_database_sql` supports inline SQL/gzip dumps up to **4 MiB** and `export_database_sql` supports up to **2 MiB**. For larger database imports (up to **64 MiB** upload / **256 MiB** decompressed), use [Database Studio](/databases/mariadb#sql-import-sql-and-sqlgz) in `app.hostedez.com`. ## 4. Onboard Branded Company Email with Tested Filters Set up a complete custom domain email workspace and verify filter rules before real mail arrives: > **Prompt:** "Enable email for `acme-example.com` with DMARC policy `quarantine`, create `support@acme-example.com` and `billing@acme-example.com`, alias `info@acme-example.com` to `support@acme-example.com`, set white-label webmail hostname `webmail.acme-example.com` with brand name `Acme Mail`, create a filter rule moving `[URGENT]` subjects to `Priority` with the `$Important` flag, and dry-run test that filter." **Tools your agent chains:** 1. `enable_email_domain` (`domain: "acme-example.com"`, `dmarcPolicy: "quarantine"`) 2. `verify_email_domain_dns` (`domainId`) 3. `create_mailbox` (for `support` and `billing`) & `create_email_alias` (`sourceLocalPart: "info"`) 4. `update_email_branding` (`domainId`, `webmailHostname: "webmail.acme-example.com"`, `brandName: "Acme Mail"`) & `verify_webmail_hostname` 5. `create_email_filter_rule` (`mailboxId`, conditions on `subject` containing `[URGENT]`, actions `fileinto` + `addflag`) 6. `test_email_filters` (`mailboxId`, sample subject `"[URGENT] Checkout error"`) to confirm delivery folder and flags without sending live email. ## Safety Guardrails for Autonomous Agents - **Use read-only scopes when auditing**: Request only `account:read sites:read` during OAuth consent for read-only reporting or monitoring agents. - **Require human confirmation on destructive tools**: Instruct your agent in `AGENTS.md` or `.cursor/rules` to always ask before calling `delete_site`, `delete_database`, `delete_email_domain`, `delete_mailbox`, `push_staging_to_live`, or `restore_site_backup` (which also enforces `confirm: true`). - **Handle one-time secrets carefully**: Tools like `rotate_site_sftp_password`, `create_mailbox`, and `reset_mailbox_password` return plaintext passwords once. Never ask agents to commit those values into source control. - **Poll asynchronous jobs**: `create_site`, `create_site_backup`, and `restore_site_backup` execute asynchronously—poll `get_site` or `list_site_backups` rather than assuming immediate completion. - **Give agents fresh docs**: Point your coding agent at [https://docs.hostedez.com/llms.txt](https://docs.hostedez.com/llms.txt) so it checks current Hosted EZ limits and flags before calling tools. # Hosted EZ MCP Server > Connect Claude Code, Cursor, Codex, VS Code, and Windsurf to the Hosted EZ MCP Server using OAuth 2.1 + PKCE and give AI agents access to machine-readable docs. Source: https://docs.hostedez.com/automation/mcp-server/ · Markdown: https://docs.hostedez.com/automation/mcp-server/index.md The **Hosted EZ MCP Server** (`https://mcp.hostedez.com/mcp`) exposes **88 native tools** over the Streamable HTTP Model Context Protocol (MCP), allowing AI coding assistants and automation agents to create sites, configure static delivery and rollbacks, manage custom domains, browse and query MariaDB databases, run CLI commands, manage staging and backups, and administer Hosted EZ Email—all with interactive OAuth 2.1 consent. ## Server Endpoint & OAuth 2.1 Security Hosted EZ's MCP server implements the modern MCP authorization specification with zero static API keys to paste or rotate: - **MCP Endpoint**: `https://mcp.hostedez.com/mcp` (Streamable HTTP transport) - **Authentication**: **OAuth 2.1** with mandatory **PKCE (`S256`)** for public clients (`token_endpoint_auth_method: "none"`) - **Discovery Metadata**: - RFC 9728 Protected Resource Metadata: `https://mcp.hostedez.com/.well-known/oauth-protected-resource` - OAuth 2.1 Authorization Server Metadata: `https://mcp.hostedez.com/.well-known/oauth-authorization-server` - **Client Registration**: Supports both **Dynamic Client Registration** (RFC 7591 at `/oauth/register`) and **Client ID Metadata Documents (CIMD)**, plus RFC 8707 Resource Indicators. - **Token Lifetimes & Revocation**: Authorization codes expire in **5 minutes**, access tokens expire in **1 hour**, and refresh tokens last **30 days** with automatic rotation and reuse detection. Revoke tokens anytime via `/oauth/revoke`. ### OAuth Scopes Clients can request least-privilege scopes (or omit `scope` to request all three): | Scope | Permissions Granted | | --- | --- | | `account:read` | View your Hosted EZ account identity and current resource usage (sites, storage, mailboxes). | | `sites:read` | Read sites, domains, static delivery config, deployments, files, SFTP settings, terminal history, backups, performance/CDN, MariaDB schemas/exports, and email configuration/queue. | | `sites:write` | Create and delete sites, deploy/rollback, write files, manage SFTP keys/passwords, run CLI commands, manage staging/backups/CDN, run SQL queries/imports, and modify email resources. | ## Connect Your AI Client Select your editor or CLI below to add `https://mcp.hostedez.com/mcp`. On first connection, your client will open your browser to sign in to Hosted EZ and approve the requested OAuth scopes. ### Claude Code Register the remote HTTP MCP server with the Claude Code CLI: ```bash claude mcp add --transport http hostedez https://mcp.hostedez.com/mcp ``` Then run `/mcp` inside Claude Code and choose **hostedez** to complete the OAuth 2.1 browser sign-in flow. ### Cursor Add Hosted EZ to `.cursor/mcp.json` (project-scoped) or `~/.cursor/mcp.json` (global): ```json { "mcpServers": { "hostedez": { "url": "https://mcp.hostedez.com/mcp" } } } ``` Reload Cursor or open **Settings → Tools & MCP** and click **Connect** to complete OAuth sign-in. ### Codex Add Hosted EZ using the Codex CLI (or directly in `~/.codex/config.toml`): ```bash codex mcp add hostedez --url https://mcp.hostedez.com/mcp ``` Equivalent `~/.codex/config.toml` configuration: ```toml [mcp_servers.hostedez] url = "https://mcp.hostedez.com/mcp" ``` Start a Codex session and follow the browser OAuth prompt when prompted to authorize `hostedez`. ### VS Code Add Hosted EZ to `.vscode/mcp.json` in your workspace (or your user `mcp.json`): ```json { "servers": { "hostedez": { "type": "http", "url": "https://mcp.hostedez.com/mcp" } } } ``` Open the Command Palette (`Cmd/Ctrl+Shift+P`), run **MCP: List Servers**, select **hostedez**, and complete OAuth authorization. ### Windsurf Add Hosted EZ to `~/.codeium/windsurf/mcp_config.json`: ```json { "mcpServers": { "hostedez": { "serverUrl": "https://mcp.hostedez.com/mcp" } } } ``` Refresh MCP servers in Windsurf Cascade and approve the OAuth 2.1 consent prompt in your browser. ## Machine-Readable Documentation for AI Agents In addition to live tool execution over MCP, Hosted EZ publishes clean Markdown endpoints at `docs.hostedez.com` so AI agents can read accurate documentation without HTML scraping overhead: - **Concise Docs Index (`llms.txt`)**: [https://docs.hostedez.com/llms.txt](https://docs.hostedez.com/llms.txt) — Lightweight directory of all Hosted EZ guide URLs and summaries. - **Full Documentation Bundle (`llms-full.txt`)**: [https://docs.hostedez.com/llms-full.txt](https://docs.hostedez.com/llms-full.txt) — Complete guide text concatenated for single-fetch ingestion. - **OpenAPI Endpoint Index (`/api/llms.txt`)**: [https://docs.hostedez.com/api/llms.txt](https://docs.hostedez.com/api/llms.txt) — Machine-readable index of all customer REST API operations. - **Per-Page Markdown (`.md` URLs)**: Append `.md` to any documentation page URL (for example, `https://docs.hostedez.com/automation/mcp-server.md`) to retrieve raw Markdown. - **HTTP Content Negotiation (`Accept: text/markdown`)**: Send `Accept: text/markdown` to any `docs.hostedez.com` page to receive `text/markdown; charset=utf-8` directly: ```bash curl -H "Accept: text/markdown" https://docs.hostedez.com/automation/mcp-server ``` ## Next Steps - [MCP Tools Reference (88 Tools)](/automation/mcp-tools-reference) — Complete catalog of all 88 Hosted EZ MCP tools with required parameters, optional parameters, and OAuth scopes. - [AI Agent Workflows](/automation/agent-workflows) — Copy-paste multi-step prompts for static launches, WordPress staging updates, MariaDB migrations, and email onboarding. # MCP Tools Reference > Complete reference for all 88 tools exposed by the Hosted EZ MCP Server (mcp.hostedez.com), grouped by category with required parameters, optional parameters, and OAuth scopes. Source: https://docs.hostedez.com/automation/mcp-tools-reference/ · Markdown: https://docs.hostedez.com/automation/mcp-tools-reference/index.md The Hosted EZ MCP Server (`https://mcp.hostedez.com/mcp`) exposes **88 tools** across 13 categories. Every tool enforces live OAuth 2.1 scope verification (`account:read`, `sites:read`, or `sites:write`) on every request. > **Site & resource identifiers** > > Site tools accept either a site UUID or its prefixed `sit_` slug as `siteId`. Databases use `db_` IDs, backups use `bkp_` IDs, email domains use `emd_` IDs, mailboxes use `mbx_` IDs, aliases use `mal_` IDs, and filter rules use `flt_` IDs. ## Account & Sites (7) | Tool | Required Params | Optional Params | Scope | Description | | --- | --- | --- | --- | --- | | `get_account` | — | — | `account:read` | Get your Hosted EZ account identity and current resource usage (sites, storage, mailboxes). | | `list_sites` | — | `limit` | `sites:read` | List non-deleted Hosted EZ sites owned by your account (1–100, default 50). | | `get_site` | `siteId` | — | `sites:read` | Fetch full details for one Hosted EZ site by UUID or `sit_` slug. | | `create_site` | `name`, `app` | `adminUser`, `adminEmail`, `includeDatabase`, `staticConfig` | `sites:write` | Create a new WordPress, Nextcloud, Laravel, Drupal, PHP, or Static site and queue provisioning. | | `start_migration` | `address`, `currentHost` | `includesEmail` | `sites:write` | Start migrating an existing website from another hosting provider to Hosted EZ. | | `confirm_dns` | `siteId` | — | `sites:write` | Confirm that DNS records have been updated for a site's custom domain and trigger verification. | | `delete_site` | `siteId` | — | `sites:write` | Queue permanent deletion of one of your Hosted EZ sites. | ## Application Catalog & Staging (5) | Tool | Required Params | Optional Params | Scope | Description | | --- | --- | --- | --- | --- | | `list_apps` | — | — | `sites:read` | List supported application templates (WordPress, Nextcloud, Laravel, Drupal, Custom PHP) with PHP version and database requirements. | | `get_staging_site` | `siteId` | — | `sites:read` | Get staging clone details and last sync timestamp for a live Hosted EZ site. | | `create_staging_site` | `siteId` | — | `sites:write` | Create an isolated 1-click staging clone of a live site (copies files and clones MariaDB database if present). | | `push_staging_to_live` | `siteId` | `includeFiles`, `includeDatabase` | `sites:write` | Push staging files (preserving live `wp-config.php`) and/or MariaDB database to live and purge live caches. | | `delete_staging_site` | `siteId` | — | `sites:write` | Permanently delete the staging clone, its staging MariaDB database, and preview DNS for a live site. | ## Static Delivery & Deployments (4) | Tool | Required Params | Optional Params | Scope | Description | | --- | --- | --- | --- | --- | | `get_site_static_config` | `siteId` | — | `sites:read` | Get static site delivery settings (SPA fallback, clean URLs, custom 404 page, custom headers, allowed headers, ETag). | | `update_site_static_config` | `siteId`, `spaFallback`, `cleanUrls` | `notFoundPage`, `customHeaders`, `ifMatch` | `sites:write` | Update static site delivery settings (SPA fallback, clean URLs, custom 404 page, and allowlisted response headers). | | `list_site_deployments` | `siteId` | `limit` | `sites:read` | List versioned archive deployments and rollback eligibility for a Hosted EZ static website. | | `rollback_site_deployment` | `siteId`, `deploymentId` | `note` | `sites:write` | Atomically roll back a Hosted EZ static site to a retained prior deployment snapshot and purge CDN cache if active. | ## Site Files (6) | Tool | Required Params | Optional Params | Scope | Description | | --- | --- | --- | --- | --- | | `list_site_files` | `siteId` | `path` | `sites:read` | List files and directories inside one of your Hosted EZ sites. | | `read_site_file` | `siteId`, `path` | — | `sites:read` | Read a file inside a Hosted EZ site (up to 2 MiB; UTF-8 text or base64 for binary files). | | `write_site_file` | `siteId`, `path`, `content` | `encoding`, `createParents` | `sites:write` | Atomically create or overwrite a file inside a Hosted EZ site (UTF-8 or base64, up to 10 MiB). | | `create_site_directory` | `siteId`, `path` | — | `sites:write` | Create a new directory inside one of your Hosted EZ sites. | | `rename_site_file` | `siteId`, `from`, `to` | — | `sites:write` | Move or rename a file or directory inside one of your Hosted EZ sites. | | `delete_site_file` | `siteId`, `path` | `recursive` | `sites:write` | Delete a file or directory inside a Hosted EZ site (the site root cannot be deleted). | ## SFTP & SSH Keys (4) | Tool | Required Params | Optional Params | Scope | Description | | --- | --- | --- | --- | --- | | `get_site_sftp` | `siteId` | — | `sites:read` | Get SFTP connection details (`sftp.hostedez.com:22`, username, password status) and authorized SSH public keys. | | `add_site_sftp_key` | `siteId`, `label`, `publicKey` | — | `sites:write` | Authorize an OpenSSH public key for SFTP access to one of your Hosted EZ sites. | | `delete_site_sftp_key` | `siteId`, `keyId` | — | `sites:write` | Revoke an authorized SFTP SSH public key from one of your Hosted EZ sites. | | `rotate_site_sftp_password` | `siteId` | — | `sites:write` | Generate and set a new SFTP password for a site (returned once in plaintext, never stored or logged). | ## Terminal & CLI Commands (3) | Tool | Required Params | Optional Params | Scope | Description | | --- | --- | --- | --- | --- | | `run_site_command` | `siteId`, `command` | `cwd`, `timeoutSeconds` | `sites:write` | Run a non-interactive WP-CLI, Composer, PHP, Artisan, Drush, or shell command inside a site's sandbox (5–300s timeout). | | `list_site_terminal_history` | `siteId` | — | `sites:read` | List recent interactive browser terminal sessions and non-interactive CLI command runs (including outputs) for a site. | | `cancel_site_command` | `siteId`, `targetId` | — | `sites:write` | Cancel a running non-interactive command (`trm_...`) or active browser terminal session (`trs_...`) on a site. | ## WordPress & Managed App Admin (2) | Tool | Required Params | Optional Params | Scope | Description | | --- | --- | --- | --- | --- | | `get_site_wordpress` | `siteId` | — | `sites:read` | Get WordPress installation status, `wp-admin` URL, admin username/email, linked database ID, and credential readiness. | | `get_site_admin` | `siteId` | — | `sites:read` | Get auto-installation status, login URL, admin username/email, and linked database ID for WordPress, Nextcloud, or Drupal sites. | ## Custom Domains & Domain Search (5) | Tool | Required Params | Optional Params | Scope | Description | | --- | --- | --- | --- | --- | | `connect_domain` | `siteId`, `domain` | `mode`, `includeEmail` | `sites:write` | Attach a custom domain hostname to a site (`auto` or manual DNS routing mode) and return DNS onboarding instructions. | | `list_site_domains` | `siteId` | — | `sites:read` | List all custom domains attached to a site, including routing mode, nameservers, verification tokens, and required DNS records. | | `verify_site_domain` | `siteId`, `domainId` | — | `sites:write` | Trigger immediate DNS and nameserver verification for a custom domain attached to a site. | | `remove_site_domain` | `siteId`, `domainId` | — | `sites:write` | Detach and remove a custom domain from one of your Hosted EZ sites. | | `search_domains` | `query` | — | `sites:read` | Check live domain availability and registration/renewal pricing across all supported TLDs. | ## Caching & Global Edge CDN (5) | Tool | Required Params | Optional Params | Scope | Description | | --- | --- | --- | --- | --- | | `get_site_performance` | `siteId` | — | `sites:read` | Get page/object caching status, live cached page metrics, and Global Edge CDN status for a site. | | `update_site_cache` | `siteId` | `pageCacheEnabled`, `objectCacheEnabled` | `sites:write` | Enable or disable static full-page caching and/or APCu object caching on a site. | | `purge_site_cache` | `siteId` | — | `sites:write` | Purge cached static HTML pages and instantly invalidate APCu object cache for a site. | | `enable_site_cdn` | `siteId` | — | `sites:write` | Enable Hosted EZ Global Edge CDN for a site (requires Pro plan or Global Edge CDN add-on). | | `disable_site_cdn` | `siteId` | — | `sites:write` | Disable Hosted EZ Global Edge CDN and remove the backing CDN distribution for a site. | ## Offsite Backups (4) | Tool | Required Params | Optional Params | Scope | Description | | --- | --- | --- | --- | --- | | `list_site_backups` | `siteId` | — | `sites:read` | List offsite `.tar.zst` backups for a site (newest first) alongside backup schedule and retention policy. | | `create_site_backup` | `siteId` | `label`, `includeFiles`, `includeDatabase` | `sites:write` | Start an asynchronous on-demand offsite backup of a site's files and/or database. | | `restore_site_backup` | `siteId`, `backupId`, `confirm` | `restoreFiles`, `restoreDatabase` | `sites:write` | Restore a ready backup onto its site (`confirm: true` required); takes a pre-restore safety snapshot first. | | `delete_site_backup` | `siteId`, `backupId` | — | `sites:write` | Permanently delete a site backup and its offsite archive (refused while creating or restoring). | ## Managed MariaDB Databases (11) | Tool | Required Params | Optional Params | Scope | Description | | --- | --- | --- | --- | --- | | `list_databases` | — | — | `sites:read` | List MariaDB databases owned by your account alongside plan database and storage quotas. | | `get_database` | `databaseId` | — | `sites:read` | Fetch metadata and connection host details for one MariaDB database by `db_` ID. | | `create_database` | `name` | `siteId` | `sites:write` | Provision a new isolated MariaDB database, optionally linked to one of your sites. | | `get_database_usage` | `databaseId` | `refresh` | `sites:read` | Inspect live storage usage, table breakdown, and plan storage quota for a MariaDB database. | | `list_database_tables` | `databaseId` | — | `sites:read` | List tables, storage engines, row estimates, and byte sizes inside a MariaDB database. | | `browse_database_table` | `databaseId`, `table` | `limit`, `offset` | `sites:read` | Inspect column definitions and paginated rows (1–200, default 50) from a MariaDB table. | | `run_database_query` | `databaseId`, `sql` | — | `sites:write` | Execute a SQL statement against an isolated MariaDB database and return structured results. | | `export_database_sql` | `databaseId` | `tables`, `schemaOnly`, `includeDropTable`, `gzipBase64` | `sites:read` | Export schema and rows (or DDL only) as a portable `.sql` or base64 `.sql.gz` dump (up to 2 MiB inline). | | `import_database_sql` | `databaseId` | `sql`, `contentBase64`, `ignoreDatabaseStatements`, `disableForeignKeyChecks` | `sites:write` | Execute a `.sql` or base64 `.sql.gz` dump against a MariaDB database (up to 4 MiB inline). | | `rotate_database_password` | `databaseId` | — | `sites:write` | Queue password rotation for the isolated MariaDB user of a database. | | `delete_database` | `databaseId` | — | `sites:write` | Permanently delete a MariaDB database and its isolated user. | ## Email Domains, Mailboxes & Aliases (12) | Tool | Required Params | Optional Params | Scope | Description | | --- | --- | --- | --- | --- | | `list_email_domains` | — | — | `sites:read` | List email domains with MX/SPF/DKIM/DMARC verification status, required DNS records, and IMAP/SMTP settings. | | `enable_email_domain` | `domain` | `siteId`, `dmarcPolicy`, `catchAllTarget` | `sites:write` | Enable Hosted EZ Email for a domain, generate an RSA-2048 DKIM key, and auto-provision Hosted EZ DNS records. | | `verify_email_domain_dns` | `domainId` | — | `sites:write` | Run live DNS verification checks for MX, SPF, DKIM, and DMARC records on an email domain. | | `delete_email_domain` | `domainId` | — | `sites:write` | Permanently delete an email domain along with all of its mailboxes, aliases, and stored messages. | | `list_mailboxes` | — | `domainId` | `sites:read` | List Hosted EZ Email mailboxes (optionally filtered by `domainId`) alongside IMAP/SMTP settings. | | `create_mailbox` | `domainId`, `localPart` | `displayName`, `password`, `quotaMb` | `sites:write` | Create a new mailbox on an enabled email domain and return its one-time initial password. | | `update_mailbox` | `mailboxId` | `displayName`, `quotaMb`, `status` | `sites:write` | Update a mailbox's display name, storage quota (MB), or status (`active` / `suspended`). | | `reset_mailbox_password` | `mailboxId` | `password` | `sites:write` | Reset a mailbox password (auto-generating a strong password if omitted) and return the new one-time password. | | `delete_mailbox` | `mailboxId` | — | `sites:write` | Permanently delete an email mailbox and all of its stored folders and messages. | | `list_email_aliases` | — | `domainId` | `sites:read` | List email aliases and forwarders owned by your account, optionally filtered by `domainId`. | | `create_email_alias` | `domainId`, `sourceLocalPart`, `destinations` | — | `sites:write` | Create an email alias/forwarder routing to one or more local or external email addresses (up to 20). | | `delete_email_alias` | `aliasId` | — | `sites:write` | Delete an email alias by its `mal_` ID. | ## Email Branding, Autoresponders, Filters & Mail Queue (20) | Tool | Required Params | Optional Params | Scope | Description | | --- | --- | --- | --- | --- | | `get_email_branding` | `domainId` | — | `sites:read` | Get white-label webmail branding settings (custom hostname, CNAME record, colors, theme, assets, footer). | | `update_email_branding` | `domainId` | `webmailHostname`, `brandName`, `accentColor`, `surfaceTint`, `defaultTheme`, `footerText`, `hidePoweredBy` | `sites:write` | Update white-label webmail branding configuration for an email domain. | | `verify_webmail_hostname` | `domainId` | — | `sites:write` | Verify live DNS CNAME routing for an email domain's custom webmail hostname and activate it. | | `delete_email_branding_asset` | `domainId`, `kind` | — | `sites:write` | Delete an uploaded white-label webmail branding asset (`logo`, `logo_dark`, `favicon`, or `login_bg`). | | `list_email_autoresponders` | — | `domainId` | `sites:read` | List mailbox vacation/out-of-office autoresponders owned by your account, optionally filtered by `domainId`. | | `get_email_autoresponder` | `mailboxId` | — | `sites:read` | Get vacation/out-of-office autoresponder configuration and reply statistics for a mailbox. | | `set_email_autoresponder` | `mailboxId`, `enabled` | `subject`, `bodyText`, `startsAt`, `endsAt`, `intervalHours`, `resetHistory` | `sites:write` | Configure or update a mailbox autoresponder, schedule window, and per-sender reply cooldown. | | `delete_email_autoresponder` | `mailboxId` | — | `sites:write` | Delete a mailbox autoresponder configuration and clear its per-sender cooldown history. | | `list_email_filter_rules` | — | `mailboxId`, `domainId` | `sites:read` | List visual inbound email filter rules, optionally filtered by `mailboxId` or `domainId`. | | `create_email_filter_rule` | `mailboxId`, `name`, `conditions`, `actions` | `enabled`, `priority`, `matchMode`, `stopProcessing` | `sites:write` | Create a visual inbound email filter rule (compiled to Sieve) on a mailbox. | | `update_email_filter_rule` | `ruleId` | `name`, `enabled`, `priority`, `matchMode`, `conditions`, `actions`, `stopProcessing` | `sites:write` | Update an existing visual email filter rule's name, state, priority, conditions, actions, or stop flag. | | `delete_email_filter_rule` | `ruleId` | — | `sites:write` | Delete a visual email filter rule by its `flt_` ID. | | `reorder_email_filter_rules` | `mailboxId`, `ruleIds` | — | `sites:write` | Atomically reorder all visual email filter rules on a mailbox by providing the full ordered `ruleIds` list. | | `get_email_sieve_script` | `mailboxId` | — | `sites:read` | Get a mailbox's custom RFC 5228 Sieve script, supported capabilities, and compiled visual-rules preview. | | `set_email_sieve_script` | `mailboxId`, `enabled` | `script` | `sites:write` | Validate and save a custom RFC 5228 Sieve script for a mailbox. | | `test_email_filters` | `mailboxId` | `from`, `to`, `subject`, `body`, `sizeBytes`, `rawHeaders`, `script` | `sites:read` | Run a read-only dry-run evaluation of a mailbox's visual filter rules and custom/draft Sieve script. | | `list_mail_queue` | — | `domainId`, `mailboxId`, `status`, `search`, `limit`, `cursor` | `sites:read` | List outbound mail queue entries with summary counts, filters, and cursor pagination. | | `retry_mail_queue_item` | `queueId` | — | `sites:write` | Schedule a queued, deferred, or failed outbound mail queue message for immediate retry. | | `retry_deferred_mail_queue` | — | `domainId` | `sites:write` | Schedule all deferred outbound mail queue messages (optionally scoped by `domainId`) for immediate retry. | | `cancel_mail_queue_item` | `queueId` | — | `sites:write` | Cancel and remove a pending queued or deferred outbound mail queue message before delivery. | # Managed MariaDB & Database Studio > Provision isolated MariaDB databases, browse tables, run SQL queries, import or export .sql and .sql.gz dumps, and rotate credentials in Hosted EZ Database Studio. Source: https://docs.hostedez.com/databases/mariadb/ · Markdown: https://docs.hostedez.com/databases/mariadb/index.md Hosted EZ provides isolated, managed **MariaDB** databases with a built-in **Database Studio** directly inside `app.hostedez.com`. Every database gets its own logical schema, isolated MariaDB user, TLS-encrypted connection credentials, and live storage usage tracking against your plan quota. - **Auto-provisioned for CMS sites**: Creating a **WordPress**, **Drupal**, or **Nextcloud** site automatically provisions and links a dedicated MariaDB database. - **Optional for Laravel & Custom PHP**: Enable **Include database** during creation, or create a standalone database anytime from the **Databases** tab and link it to a site. - **Not used for Static sites**: Static sites serve pre-built files directly with no database backend. ## Create a MariaDB Database 1. **Open the Databases tab** In `app.hostedez.com`, select **Databases** from the top navigation bar. 2. **Create a new database** Click **New database**, enter a display name (up to 64 characters), and optionally link it to one of your PHP/CMS sites. 3. **Wait for Available status** Hosted EZ provisions an isolated MariaDB database (`db_...`) and user. Once status changes to **Available**, open it to launch **Database Studio** or view credentials. ## Built-In Database Studio Manage schemas, inspect data, and run migrations right from your browser—no separate database admin app to install or expose publicly. ### Table Browser Open the **Tables** view to inspect every table in your database: - View table name, storage engine, estimated row count, data size, index size, total size, and collation. - Click any table to inspect column definitions (type, nullability, default values, keys) and browse paginated rows (**50 rows** per page by default, up to **200 rows** per page). - Click **Refresh usage** to recompute live database storage usage against your plan's combined site + database storage quota. ### SQL Query Console Open the **Query** view to execute SQL statements directly against your isolated MariaDB user: - Supports up to **32 KiB** per SQL statement. - Enforces a **15-second** per-statement execution timeout so accidental full-table scans cannot stall your database. - Returns structured column headers, tabular rows, affected row counts, and MariaDB error codes/messages when a query fails. ### SQL Import (`.sql` and `.sql.gz`) Import dumps generated by `mysqldump`, MariaDB client tools, TablePlus, or phpMyAdmin exports from a previous host directly inside **Database Studio** → **Import**: | Import Setting | Behavior / Limit | | --- | --- | | Supported file formats | `.sql`, `.sql.gz`, or `.gz` (auto-detected or explicitly chosen) | | Maximum upload size | **64 MiB** compressed or raw upload | | Maximum decompressed SQL size | **256 MiB** | | Maximum statements per import | **200,000** statements | | Per-statement timeout | **60 seconds** | | Concurrency | One import per database at a time (locked until completion) | Two helpful import toggles are enabled to make migrating from other hosts effortless: - **Ignore database statements** (`ignoreDatabaseStatements`): Automatically skips top-level `USE`, `CREATE DATABASE` / `CREATE SCHEMA`, `DROP DATABASE`, and `ALTER DATABASE` statements from third-party dumps so the import targets your Hosted EZ database cleanly. - **Disable foreign key checks** (`disableForeignKeyChecks`): Wraps the import in `SET FOREIGN_KEY_CHECKS = 0` and restores `1` afterward to prevent table-order constraint failures. ### SQL Export (`.sql` and `.sql.gz`) Download a portable SQL snapshot anytime from **Database Studio** → **Export**: - **Format**: Choose plain `.sql` or gzip-compressed `.sql.gz`. - **Table selection**: Export the entire database or select specific tables (up to **500 tables**). - **Schema only** (`schemaOnly`): Export `CREATE TABLE` DDL without row data. - **Include `DROP TABLE`** (`includeDropTable`): Toggle `DROP TABLE IF EXISTS` statements before each table definition (enabled by default). ## Credentials & Password Rotation Open the **Credentials** tab inside any database to view: - **Host**: Your MariaDB endpoint hostname - **Port**: `3306` - **Database name**: The isolated logical database name - **Username & Password**: Isolated per-database credentials (TLS encrypted) To rotate credentials after sharing access or during routine security hygiene, click **Rotate password**. Hosted EZ queues a password rotation for the isolated MariaDB user. > **Update your application config after rotating** > > After rotating a database password, update your application configuration file (such as `wp-config.php`, `.env`, or `settings.php`) with the new password so your site can reconnect. ## Managing Databases with MCP AI agents connected to the [Hosted EZ MCP Server](/automation/mcp-server) have full access to 11 MariaDB tools, including `list_databases`, `create_database`, `list_database_tables`, `browse_database_table`, `run_database_query`, `export_database_sql`, `import_database_sql`, and `rotate_database_password`. > **Inline MCP dump limits** > > Over MCP, `export_database_sql` supports inline dumps up to **2 MiB** and `import_database_sql` supports inline SQL or base64 `.sql.gz` up to **4 MiB**. For larger dumps (up to **64 MiB** upload / **256 MiB** decompressed), use **Database Studio** in the dashboard. # Deploy Astro & Next.js Static Export > Export and deploy static sites built with Astro, Next.js (output export), Hugo, or Eleventy on Hosted EZ with Clean URLs, Custom 404 pages, and immutable asset headers. Source: https://docs.hostedez.com/deploy/astro-nextjs-static/ · Markdown: https://docs.hostedez.com/deploy/astro-nextjs-static/index.md Static site generators like **Astro**, **Next.js (static export)**, **Hugo**, **Eleventy**, and **Docusaurus** pre-render every route into `.html` files at build time. Hosted EZ's **Static Site** runtime serves them directly from nginx with Clean URLs, Custom 404 pages, and path-prefix response headers. > **Static export vs. Node.js SSR** > > Hosted EZ's **Static Site** runtime serves pre-built HTML, CSS, JS, and media files directly from nginx without a Node.js server process. Features that require a live Node.js server (such as Next.js Route Handlers, Middleware, or Astro server adapters) are not supported on Static Sites. ## Framework build configuration ### Astro Astro defaults to static output (`output: 'static'`) and writes files to `dist/`. Set your production `site` URL in `astro.config.mjs`: ```js title="astro.config.mjs" import { defineConfig } from "astro/config"; export default defineConfig({ site: "https://docs.example.com", output: "static", build: { format: "directory", // generates /about/index.html }, }); ``` Create a custom 404 page at `src/pages/404.astro` so Astro emits `dist/404.html`. Build and package: ```bash npm ci npm run build zip -r dist.zip dist/ ``` ### Next.js (Static Export) Enable static export in `next.config.ts` (or `next.config.mjs`) and set `images.unoptimized: true` (since the built-in Next.js Image Optimization API requires a Node server): ```ts title="next.config.ts" import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: "export", images: { unoptimized: true, }, }; export default nextConfig; ``` Create `app/not-found.tsx` (App Router) or `pages/404.tsx` (Pages Router) so Next.js emits `out/404.html`. Build and package: ```bash npm ci npm run build zip -r out.zip out/ ``` ### Hugo / Eleventy Both Hugo (`public/`) and Eleventy (`_site/`) generate static HTML directories ready to archive: ```bash # Hugo hugo --minify zip -r site.zip public/ # Eleventy npx @11ty/eleventy zip -r site.zip _site/ ``` ## Configure Clean URLs, Custom 404 & Headers 1. Create a **Static Site** in [app.hostedez.com](https://app.hostedez.com/dashboard?tab=sites&new=1) and upload your `.zip` or `.tar.gz` archive in the **Deployments** tab. 2. Open **Site → Routing → Static Delivery**: - **Clean URLs**: turn **On** so `/pricing` resolves `/pricing.html` or `/pricing/index.html` automatically (`try_files $uri $uri.html $uri/ =404;`). - **SPA fallback**: leave **Off** so genuinely missing URLs return a proper HTTP `404` status (better for SEO). - **Custom 404 page**: enter `/404.html` (must end with `.html` or `.htm`). ## Recommended Custom Response Headers Add path-prefix rules in **Routing → Static Delivery → Custom Response Headers** so hashed framework bundles cache aggressively while HTML documents revalidate on every deploy: ### Astro | Path Prefix | Header | Value | | --- | --- | --- | | `/` | `Cache-Control` | `no-cache, must-revalidate` | | `/` | `Referrer-Policy` | `strict-origin-when-cross-origin` | | `/` | `X-Frame-Options` | `SAMEORIGIN` | | `/_astro` | `Cache-Control` | `public, max-age=31536000, immutable` | ### Next.js Static Export | Path Prefix | Header | Value | | --- | --- | --- | | `/` | `Cache-Control` | `no-cache, must-revalidate` | | `/` | `Referrer-Policy` | `strict-origin-when-cross-origin` | | `/` | `X-Frame-Options` | `SAMEORIGIN` | | `/_next/static` | `Cache-Control` | `public, max-age=31536000, immutable` | > **Do not enable both SPA fallback and Custom 404** > > When **SPA fallback** is enabled, unmatched paths rewrite to `/index.html` with HTTP `200`, so a Custom 404 page is only reached for missing static files. For Astro and Next.js static exports, keep **SPA fallback** off and use **Clean URLs** + **Custom 404 page** (`/404.html`). ## Next steps - Automate builds and deployments on every push with [SFTP & GitHub Actions CI/CD](/deploy/sftp-and-github-actions). - Add permanent `301`/`308` redirects for moved pages in [Redirects, Password Protection & Maintenance Mode](/domains/redirects-auth-maintenance). - Review all 15 allowlisted custom headers in [SPA Routing, Clean URLs & Custom Headers](/domains/spa-routing-and-headers). # Deploy Drupal, Nextcloud & Custom PHP > Launch one-click Drupal and Nextcloud instances or host custom PHP 8.3–8.5 applications on Hosted EZ, plus tune the 11 curated php.ini overrides. Source: https://docs.hostedez.com/deploy/drupal-nextcloud-php/ · Markdown: https://docs.hostedez.com/deploy/drupal-nextcloud-php/index.md In addition to Static Sites, WordPress, and Laravel, Hosted EZ provides dedicated runtimes for **Drupal**, **Nextcloud**, and **Custom PHP**—all running isolated PHP-FPM (`8.3`, `8.4`, or `8.5`, default `8.5`) with OPcache, SFTP, File Manager, and the Browser Terminal. ## Drupal Hosted EZ provisions **Drupal** with an auto-configured isolated MariaDB database, **Composer**, **Drush**, an anonymous nginx full-page microcache, isolated APCu object caching, and a background systemd Drush cron timer. - **Document root**: `public_html/web` (Composer `vendor/` and `composer.json` remain safely outside the web root). - **Admin login**: Reveal your generated credentials on the **Drupal Admin** card in **Site → Overview**, then sign in at `/user/login`. - **Caching**: Anonymous pages are cached in nginx tmpfs (`10m` TTL) while automatically bypassing logged-in sessions (`SESS`/`SSESS` cookies), query strings, and `/admin`, `/user`, `/batch`, `/jsonapi`, `/cron`, and `/system/files` paths. APCu accelerates ChainedFast, page, and render cache bins. - **PHP memory floor**: Drupal sites receive at least `512 MiB` PHP `memory_limit` by default even on Starter. ### Common Drush & Composer commands Open **Site → Terminal** (`drush` is pre-wired with `--root=public_html/web`): ```bash # Check Drupal installation & database status drush status # Rebuild all Drupal caches after config or theme changes drush cr # Install a contributed module via Composer and enable it composer require drupal/pathauto drush en pathauto -y # Apply pending database and entity updates drush updb -y ``` ## Nextcloud Hosted EZ installs the latest **Nextcloud** release automatically with a dedicated MariaDB database, isolated APCu object caching, an nginx theming microcache, background cron, and the `occ` CLI in the Browser Terminal. - **Document root**: `public_html` - **Admin login**: Reveal your generated credentials on the **Nextcloud Admin** card in **Site → Overview**, then open `/index.php/login`. - **CalDAV & CardDAV**: Ready out of the box for Apple Calendar/Contacts, Thunderbird, and mobile DAV clients over HTTPS. - **Memory floor**: Nextcloud sites receive at least `512 MiB` PHP `memory_limit` and a `1,024 MiB` container memory floor automatically. ### Common `occ` commands Open **Site → Terminal** (`occ` is pre-wired with `apc.enable_cli=1`): ```bash # Inspect Nextcloud version and installed status occ status # List enabled and disabled apps occ app:list # Toggle Nextcloud's internal maintenance mode during upgrades occ maintenance:mode --status occ maintenance:mode --on occ maintenance:mode --off # Rescan files or repair missing database indices occ db:add-missing-indices ``` > **Adding custom domains to Nextcloud** > > After connecting a custom domain in **Site → Domains**, verify your domain is listed in Nextcloud's `trusted_domains` array (`occ config:system:get trusted_domains` or `public_html/config/config.php`). ## Custom PHP Choose **Custom PHP** when deploying Symfony, Slim, CodeIgniter, Flight, bespoke PHP scripts, or migrating an existing PHP application that does not need a pre-installed CMS. - **Document root**: `public_html` - **PHP branches**: `8.5` (default), `8.4`, and `8.3`—switchable anytime without recreating the site. - **Composer & CLI**: `php` and `composer` are pre-installed in **Site → Terminal**. - **Databases**: Attach one or more Managed MariaDB databases anytime from the **Databases** tab. See [Managed MariaDB & Database Studio](/databases/mariadb). - **Apache `.htaccess`**: Supported inside `public_html/` for custom `mod_rewrite` front-controller routing. ## PHP versions and `php.ini` overrides On any PHP or CMS site (**WordPress**, **Laravel**, **Drupal**, **Nextcloud**, or **Custom PHP**), open **Site → PHP** to switch PHP branches (`8.3`, `8.4`, or `8.5`) or configure the **11 curated `php.ini` overrides**. | Directive | Allowed Range | Default | Notes | | --- | --- | --- | --- | | `memory_limit` | `64 MiB` – plan max (`256` / `512` / `1,024 MiB`) | Plan max (`512 MiB` min for Drupal/Nextcloud) | Per-request PHP memory limit | | `upload_max_filesize` | `2 MiB` – plan max (`64` / `128` / `256 MiB`) | Plan max | Must be `<= post_max_size` | | `post_max_size` | `2 MiB` – plan max (`64` / `128` / `256 MiB`) | Plan max | Must be `>= upload_max_filesize` | | `max_execution_time` | `10 s` – plan max (`120` / `180` / `300 s`) | Plan max | Maximum PHP script runtime | | `max_input_time` | `10 s` – plan max (`120` / `180` / `300 s`) | `60 s` | Maximum time spent parsing request input | | `max_input_vars` | `1,000` – `10,000` | `1,000` | Increase for large CMS menus or form builders | | `date.timezone` | Valid IANA timezone (e.g. `America/New_York`) | `UTC` | `"Local"` is rejected; use standard IANA names | | `display_errors` | `true` / `false` | `false` | Keep `false` in production; inspect **Site → Logs** instead | | `short_open_tag` | `true` / `false` | `false` | Enable only for legacy templates using ` **Security-locked PHP directives** > > Isolation directives (`open_basedir`, `disable_functions`, `auto_prepend_file`, `auto_append_file`, `expose_php`, `allow_url_include`, `extension`, `zend_extension`, `log_errors`, `error_log`, and `user_ini.filename`) are managed by Hosted EZ and cannot be overridden via `.user.ini` or the dashboard. # File Manager & Browser Terminal > Edit site files directly in the Hosted EZ File Manager and run WP-CLI, Artisan, Composer, Drush, and Nextcloud occ commands in the Browser Terminal. Source: https://docs.hostedez.com/deploy/file-manager-and-terminal/ · Markdown: https://docs.hostedez.com/deploy/file-manager-and-terminal/index.md Hosted EZ ships two built-in browser tools so you can inspect files, make quick edits, and run application CLI commands directly from [app.hostedez.com](https://app.hostedez.com/dashboard) without configuring local software. ## In-browser File Manager Available on **all six site runtimes** (including Static Sites), the **File Manager** (`Site → Files`) operates inside your site's `public_html` directory. ### Capabilities & limits - **Browse & search**: Navigate folders with breadcrumb paths and filter entries inside the current directory. - **Create files & folders**: Add new files (such as `robots.txt`, `.htaccess`, or `.env`) and nested directories directly. - **Inline code & text editor**: View and edit UTF-8 text files (`.html`, `.css`, `.js`, `.json`, `.php`, `.env`, `.txt`, `.xml`) with line counts, word wrap toggle, and save confirmation. - **Upload & download**: Upload files up to **`10 MiB` per file** directly from your browser, or download any existing file. - **Rename & delete**: Rename files/folders in place or delete unused assets. > **Uploading files larger than 10 MiB** > > For large archives, media libraries, or multi-file deployments, use **Deployments** (up to `100 MiB` `.zip`/`.tar.gz` on Static Sites) or [SFTP](/deploy/sftp-and-github-actions) (bounded only by your account SSD quota). ## Browser Terminal Available on **PHP and CMS sites** (**WordPress**, **Laravel**, **Drupal**, **Nextcloud**, and **Custom PHP**), the **Browser Terminal** (`Site → Terminal`) opens an interactive, sandboxed shell directly in your browser. *(Static Sites do not run a PHP/shell container and therefore do not include a terminal.)* ### Pre-wired CLI helpers Hosted EZ initializes every terminal session with shell functions pinned to your site's active PHP version (`8.3`, `8.4`, or `8.5`), plan `memory_limit`, `date.timezone`, and outbound mail configuration: | Command | Available on | What it runs | | --- | --- | --- | | `php` | All PHP/CMS sites | Site's configured PHP binary with your `memory_limit` and timezone | | `composer` | All PHP/CMS sites | Composer 2 pinned to your site's PHP branch | | `wp` | WordPress | WP-CLI (`wp cli update` is disabled because WP-CLI is platform-managed) | | `artisan` | Laravel | `php public_html/artisan` from any working directory | | `drush` | Drupal | `vendor/bin/drush.php --root=public_html/web` | | `occ` | Nextcloud | `php -d apc.enable_cli=1 public_html/occ` | ### Quick Commands by runtime The toolbar above the terminal provides one-click **Quick Commands** tailored to your site's runtime: - **WordPress**: `wp core version`, `wp plugin list`, `wp cache flush`, `wp cron event list`, `wp db check`, `php -v` - **Laravel**: `artisan about`, `artisan migrate:status`, `artisan optimize:clear`, `composer install --no-dev`, `php -v` - **Drupal**: `drush status`, `drush cr`, `composer install --no-dev`, `php -v` - **Nextcloud**: `occ status`, `occ app:list`, `occ maintenance:mode --status`, `php -v` - **Custom PHP**: `php -v`, `composer --version`, `ls -la`, `df -h .` ### Session limits & History tab - **Concurrent sessions**: Up to **2 interactive sessions** per site simultaneously. - **Working directory & home**: `$HOME` points to your site's private directory (`private/`), storing Composer caches, WP-CLI caches, and `.bash_history` without cluttering `public_html/`. - **Command & Session History**: Switch from the **Terminal** view to the **History** tab inside `Site → Terminal` to audit past interactive sessions and non-interactive terminal runs (including commands executed by AI agents via the [MCP Server](/automation/mcp-server)), complete with status, exit code, duration, and output. - **Site status requirement**: The site must be `live`, `live_temporary`, or `ready` to open a terminal session. # Deploy a Laravel App > Deploy and operate Laravel applications on Hosted EZ with public_html/public document root, Composer, Artisan, PHP 8.5, managed MariaDB, and scheduled cron jobs. Source: https://docs.hostedez.com/deploy/laravel/ · Markdown: https://docs.hostedez.com/deploy/laravel/index.md Hosted EZ's **Laravel** runtime pre-installs a fresh Laravel application via `composer create-project laravel/laravel`, automatically points the web server document root to **`public_html/public`**, tunes PHP-FPM (`8.5` default, `8.4`, or `8.3`) with OPcache, and exposes `composer` and `artisan` directly in the Browser Terminal. ## 1. Create a Laravel site 1. **Choose Laravel in the New Site wizard** Open [app.hostedez.com](https://app.hostedez.com/dashboard?tab=sites&new=1), click **Sites → New site**, and select **Laravel**. 2. **Pick PHP version and optional MariaDB** Enter your site name, select your PHP branch (`8.5` recommended), and check **Include MariaDB database** if your app uses MySQL/MariaDB. Click **Create site**. 3. **Verify the document root** Hosted EZ configures Apache/nginx to serve from `public_html/public` automatically. Your `.env`, `app/`, `config/`, `storage/`, and `vendor/` directories live inside `public_html/` and are never exposed publicly. ## 2. Upload your Laravel code Use **SFTP** (`sftp.hostedez.com:22`) with your SSH public key to upload your application into `public_html/`. Exclude local `vendor/`, `node_modules/`, `.git/`, and local `.env` files, and build frontend assets (Vite/Mix) before uploading: ```bash # Build frontend assets locally (or in GitHub Actions) npm ci npm run build ``` Upload your repository files (including `public/build/`) to `public_html/` via `lftp` or GitHub Actions. See [SFTP & GitHub Actions CI/CD](/deploy/sftp-and-github-actions) for a complete workflow. > **Symlinks are disallowed over SFTP** > > Hosted EZ's SFTP server refuses symlink uploads (`public/storage` cannot be uploaded as a symlink from your laptop). Run `artisan storage:link` inside the **Browser Terminal** after uploading instead. ## 3. Configure `.env` and MariaDB If you provisioned a Managed MariaDB database (during site creation or in the **Databases** tab), open **Databases → select your database → Credentials** to copy the host, port, database name, username, and password. Edit `public_html/.env` using the **File Manager** (or `nano .env` in the **Browser Terminal**): ```dotenv title="public_html/.env" APP_NAME="Acme Portal" APP_ENV=production APP_KEY= APP_DEBUG=false APP_URL=https://portal.example.com LOG_CHANNEL=stack LOG_LEVEL=warning DB_CONNECTION=mysql DB_HOST= DB_PORT=3306 DB_DATABASE= DB_USERNAME= DB_PASSWORD= SESSION_DRIVER=database CACHE_STORE=database QUEUE_CONNECTION=database ``` Hosted EZ automatically enforces `0600` permissions on `.env` files so only your site's isolated Linux user can read them. ## 4. Install dependencies & run Artisan commands Open **Site → Terminal** in the dashboard. Hosted EZ pre-wires `php`, `composer`, and `artisan` functions pinned to your site's PHP branch and memory limit. Run the initial deployment commands inside `public_html`: ```bash # 1. Install production Composer dependencies composer install --no-dev --optimize-autoloader --no-interaction # 2. Generate APP_KEY (first deploy only) artisan key:generate --force # 3. Link public storage (if your app uses public disk uploads) artisan storage:link # 4. Run database migrations artisan migrate --force # 5. Cache config, routes, events, and views for production speed artisan optimize # 6. Verify environment and drivers artisan about ``` > **Laravel Quick Commands** > > The Browser Terminal toolbar includes one-click buttons for `artisan about`, `artisan migrate:status`, `artisan optimize:clear`, `composer install --no-dev`, and `php -v`. ## 5. Run the Laravel Scheduler & Queues with Cron Jobs Open **Site → Cron Jobs** to schedule recurring Artisan commands in UTC: - **Laravel Scheduler** (every minute): - **Schedule**: `* * * * *` - **Command**: `php public_html/artisan schedule:run` - **Timeout**: `120` seconds - **Database Queue Worker** (batch drain every minute if you use queued jobs without a long-running daemon): - **Schedule**: `* * * * *` - **Command**: `php public_html/artisan queue:work --stop-when-empty --max-time=50` - **Timeout**: `60` seconds See [Scheduled Cron Jobs](/operations/cron-jobs) for timeout limits (`5–300 s`), run logs, and manual triggers. ## 6. Configure PHP & Outbound Email - **PHP Settings**: Open **Site → PHP** to switch between PHP `8.3`, `8.4`, and `8.5` or tune `memory_limit`, `upload_max_filesize`, `post_max_size`, `max_execution_time`, and `date.timezone`. - **Outbound Email**: Connect a Hosted EZ mailbox in **Site → Outbound Email** and set `MAIL_MAILER=sendmail` in `.env` (or use the mailbox's SMTP settings directly) for authenticated transactional email. See [Send Transactional Email from Your Site](/email/site-outbound-email). - **Database Inspection**: Browse tables and run ad-hoc SQL queries directly in [Managed MariaDB & Database Studio](/databases/mariadb). # Migrate an Existing Website > Move an existing WordPress, Laravel, PHP, or static website to Hosted EZ with zero downtime using self-serve migration or our $49 Assisted Site Migration add-on. Source: https://docs.hostedez.com/deploy/migrate-a-site/ · Markdown: https://docs.hostedez.com/deploy/migrate-a-site/index.md You can move any existing website to Hosted EZ without taking your current site offline. Both self-serve and assisted migrations copy your site onto a Hosted EZ preview address (`https://.hostedez.site`) first so you can test everything before updating DNS. ## Choose your migration path | Option | Best for | Cost | What you do | | --- | --- | --- | --- | | **Self-Serve Migration** | Developers moving Static, WordPress, Laravel, Drupal, or PHP sites | Included with any plan | Upload files via Deployments/SFTP, import SQL via Database Studio, test on preview HTTPS, switch DNS | | **Assisted Site Migration** | Hands-off moves from cPanel, Plesk, GoDaddy, Bluehost, SiteGround, or custom hosts (optionally including email) | `$49` one-time add-on per site | Start a migration in **Dashboard → Migrations** and purchase the Assisted Migration add-on; Hosted EZ engineers handle files, DB, email, and DNS | ## Option A: Self-serve migration (zero downtime) 1. **Provision the destination site on Hosted EZ** Create a new site in [app.hostedez.com](https://app.hostedez.com/dashboard?tab=sites&new=1) matching your application runtime (**Static Site**, **WordPress**, **Laravel**, **Drupal**, **Nextcloud**, or **Custom PHP**) and PHP version (`8.3`, `8.4`, or `8.5`). Your existing site stays live at your current host. 2. **Export files and database from your current host** - **Static site**: Zip your built output (`dist/`, `public/`, or `public_html/`) into a `.zip` or `.tar.gz` archive (up to `100 MiB`). - **WordPress / Drupal / Laravel / Custom PHP**: Export your web root files (`wp-content/`, app code, etc.) and export your MySQL/MariaDB database as a `.sql` or `.sql.gz` dump: ```bash mysqldump --single-transaction --quick -u db_user -p db_name | gzip > backup.sql.gz ``` 3. **Upload files to Hosted EZ** - For **Static Sites**: upload the archive in **Site → Deployments** (or sync via SFTP). - For **PHP/CMS sites**: connect via [SFTP](/deploy/sftp-and-github-actions) (`sftp.hostedez.com:22`) and upload your files into `public_html/`. 4. **Import your database in Database Studio** Open **Dashboard → Databases**, select your site's Managed MariaDB database (or create one for Laravel/Custom PHP), and open the **Import** tab in **Database Studio** to upload your `.sql` or `.sql.gz` file (up to **`64 MiB`**). Update your database credentials in `wp-config.php`, `.env`, or `settings.php` using the host, database name, username, and password shown in **Databases → Credentials**. > **Databases larger than 64 MiB** > > If your SQL dump exceeds `64 MiB`, upload the `.sql.gz` file into `private/` via SFTP and import it directly from the [Browser Terminal](/deploy/file-manager-and-terminal) using WP-CLI (`wp db import`) or PHP/CLI tools. 5. **Test on your preview URL** Visit `https://.hostedez.site` to verify pages, assets, forms, and logins. For WordPress, run a dry-run URL check if your old host hardcoded URLs: ```bash wp search-replace "https://old-domain.com" "https://.hostedez.site" --all-tables --dry-run ``` 6. **Lower DNS TTL, connect your domain, and cut over** 1. 24 hours before cutover (if possible), lower your current DNS `A`/`CNAME` record TTL to `300` seconds (5 minutes) so propagation is fast. 2. Connect your custom domain under **Site → Domains**. See [Connect a Custom Domain](/domains/connect-custom-domain). 3. Verify DNS and confirm Hosted EZ issues your automatic HTTPS certificate. 4. For WordPress, make sure `siteurl` and `home` match `https://your-domain.com` and purge cache in **Site → Performance**. 5. Keep your old host active for 24–48 hours while global DNS caches expire, then cancel your old plan. ## Option B: Assisted site migration (`$49` one-time) If you prefer Hosted EZ engineers to handle the transfer: 1. **Start a migration request** Open **Dashboard → Migrations** ([app.hostedez.com/dashboard?tab=migrations](https://app.hostedez.com/dashboard?tab=migrations)) and click **Start migration**. 2. **Enter your current site details** Provide: - **Site address**: the domain you are moving (for example, `example.com`) - **Current hosting provider**: for example, GoDaddy, Bluehost, SiteGround, or WP Engine - **Also migrate mailboxes on this domain**: check this box if you want email mailboxes moved to [Hosted EZ Email](/email/mailboxes-and-webmail) as well 3. **Attach the Assisted Migration add-on** In **Dashboard → Billing → Add-ons**, add **Assisted site migration** (`$49` one-time per site). Hosted EZ creates a preview migration site so you can review the transferred copy before pointing DNS live. > **Refund policy on Assisted Migrations** > > Under Hosted EZ's 30-day money-back guarantee, an Assisted Site Migration charge is refundable if migration work has not yet started. # Deploy React & Vite > Build and deploy a React, Vite, Vue, or Svelte single-page application to Hosted EZ with SPA fallback, immutable asset caching, and automated GitHub Actions deploys. Source: https://docs.hostedez.com/deploy/react-vite/ · Markdown: https://docs.hostedez.com/deploy/react-vite/index.md Single-page applications built with **Vite** (React, Vue, Svelte, Preact, Solid) compile to a static `dist/` folder with content-hashed JavaScript and CSS assets under `dist/assets/`. Hosted EZ's **Static Site** runtime serves these bundles directly from nginx with built-in SPA fallback routing. ## 1. Create a Static Site with SPA fallback 1. **Create the site** In [app.hostedez.com](https://app.hostedez.com/dashboard?tab=sites&new=1), click **Sites → New site** and choose **Static Site**. 2. **Enable SPA fallback** In Step 2, enter your site name and check **SPA fallback**. Leave **Clean URLs** unchecked for standard client-side SPAs. With **SPA fallback** enabled, nginx uses `try_files $uri $uri/ /index.html;` so deep links like `/projects/42/settings` load your app shell instead of returning `404`, while real missing static assets (`.js`, `.css`, images) still return `404` cleanly. ## 2. Verify your Vite configuration Ensure `base` in `vite.config.ts` matches the root path `/` (Vite's default): ```ts title="vite.config.ts" import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; export default defineConfig({ plugins: [react()], base: "/", build: { outDir: "dist", }, }); ``` If you use React Router, Vue Router, or TanStack Router, use standard browser history (`createBrowserRouter` / `createWebHistory`)—hash routing (`/#/`) is not needed once SPA fallback is enabled. ## 3. Build and deploy ### Dashboard Archive Deploy (1-click rollback) Build locally and zip `dist/`: ```bash npm ci npm run build zip -r dist.zip dist/ ``` Open your site's **Deployments** tab, drag and drop `dist.zip`, add a release note (for example, `v1.4.0 — checkout redesign`), and click **Deploy**. Hosted EZ automatically strips the top-level `dist/` folder, swaps `public_html` atomically, and keeps the last 10 releases for instant rollback. ### GitHub Actions (SFTP) Add your deployment SSH public key in **Site → SFTP → Add SSH key** and store the matching private key in GitHub repository secrets as `HOSTEDEZ_SFTP_KEY`, along with `HOSTEDEZ_SFTP_USER` (`sftp_`). ```yaml title=".github/workflows/deploy.yml" name: Deploy Vite app to Hosted EZ on: push: branches: [main] jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 22 cache: npm - run: npm ci - run: npm run build - name: Install lftp run: sudo apt-get update && sudo apt-get install -y lftp - name: Upload dist/ over SFTP env: SFTP_USER: ${{ secrets.HOSTEDEZ_SFTP_USER }} SFTP_KEY: ${{ secrets.HOSTEDEZ_SFTP_KEY }} run: | install -m 600 /dev/null "$RUNNER_TEMP/deploy_key" printf '%s\n' "$SFTP_KEY" > "$RUNNER_TEMP/deploy_key" lftp -u "$SFTP_USER," sftp://sftp.hostedez.com:22 < **Environment variables in Vite** > > Vite embeds `VITE_*` environment variables at **build time**, not runtime. Never place private API secrets in `VITE_*` variables—they are bundled into public JavaScript files served to browsers. ## Troubleshooting - **Blank page after deploy with `Failed to load module script`**: Check that `base` is `/` in `vite.config.ts` and that `index.html` sits directly at `public_html/index.html` (check the **File Manager** tab). - **404 on browser refresh on a nested route**: Verify **SPA fallback** is enabled under **Site → Routing → Static Delivery**. - **Stale bundle after deploying**: If you set a custom `Cache-Control` on `/`, keep `no-cache, must-revalidate` on `/` and only put `immutable` on `/assets`. If **Global Edge CDN** is active and you deployed via SFTP, click **Purge cache** in the **Performance** tab. # Deploy via SFTP & GitHub Actions CI/CD > Connect to Hosted EZ over SFTP with SSH public keys or passwords, and automate continuous deployments from GitHub Actions for static sites, Laravel, and PHP apps. Source: https://docs.hostedez.com/deploy/sftp-and-github-actions/ · Markdown: https://docs.hostedez.com/deploy/sftp-and-github-actions/index.md Every Hosted EZ site—including **Static Sites**, **WordPress**, **Laravel**, **Drupal**, **Nextcloud**, and **Custom PHP**—includes hardened SFTP access at **`sftp.hostedez.com:22`**. Because Hosted EZ does not require a repository webhook UI, **SFTP + SSH public keys** is the recommended path for automated CI/CD deployments from GitHub Actions, GitLab CI, or your local terminal. ## SFTP connection details Open **Site → SFTP** in [app.hostedez.com](https://app.hostedez.com/dashboard) to view your connection parameters and manage credentials: - **Host**: `sftp.hostedez.com` - **Port**: `22` - **Username**: `sftp_` (exact value shown in the **SFTP connection** card) - **Authentication**: OpenSSH public keys (up to **25 keys per site**) and/or a one-time generated 24-character password. - **Remote web directory**: `/public_html` (for Laravel, web traffic serves `/public_html/public`; for Drupal, `/public_html/web`). > **SFTP-only endpoint (no SSH shell or rsync over SSH)** > > `sftp.hostedez.com:22` strictly enforces the **SFTP subsystem only**. Interactive SSH logins, remote `exec`, and `rsync -e ssh` are intentionally rejected. > - To transfer files from the CLI or CI, use **`lftp`** (supports recursive `mirror -R --delete`), **`sftp`**, or **`scp`** (OpenSSH 9+ uses SFTP mode by default). > - To run CLI commands (`wp`, `artisan`, `composer`, `drush`, `occ`), use the [Browser Terminal](/deploy/file-manager-and-terminal) or the [Hosted EZ MCP Server](/automation/mcp-server). ## 1. Generate and add an SSH key Generate a dedicated Ed25519 deploy key locally (leave the passphrase empty if the key will be used by an unattended CI runner): ```bash ssh-keygen -t ed25519 -C "hostedez-ci" -f ~/.ssh/hostedez_deploy -N "" cat ~/.ssh/hostedez_deploy.pub ``` In **Site → SFTP**, click **Add SSH key**, enter a descriptive label (for example, `GitHub Actions — main` or `MacBook Pro`), paste the single-line `.pub` key, and save. **Supported key types**: `ssh-ed25519`, `ssh-rsa` (minimum `2048` bits), `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, `ecdsa-sha2-nistp521`, `sk-ssh-ed25519@openssh.com`, and `sk-ecdsa-sha2-nistp256@openssh.com`. Never paste a private key. ## 2. Connect from your terminal or GUI client ### lftp (mirror & sync) `lftp` mirrors an entire build folder over SFTP and deletes removed files cleanly: ```bash lftp -u sftp_my-site, sftp://sftp.hostedez.com:22 -e " set sftp:connect-program 'ssh -a -x -i ~/.ssh/hostedez_deploy -o IdentitiesOnly=yes' mirror -R --delete --verbose --parallel=4 dist/ public_html/ quit " ``` ### OpenSSH sftp ```bash sftp -i ~/.ssh/hostedez_deploy -o IdentitiesOnly=yes -P 22 sftp_my-site@sftp.hostedez.com ``` Inside the SFTP prompt: ```text sftp> cd public_html sftp> put -r dist/* . sftp> ls -la sftp> bye ``` ### FileZilla / Cyberduck / Transmit 1. Protocol: **SFTP — SSH File Transfer Protocol** 2. Host: `sftp.hostedez.com`, Port: `22` 3. User: `sftp_` 4. Authentication: **Key file** (select `~/.ssh/hostedez_deploy`) or **Password** (click **Generate password** in **Site → SFTP**; the password is shown once). 5. Open `public_html/` to upload or edit your website files. ## 3. GitHub Actions CI/CD workflows Store these two repository secrets in **GitHub → Settings → Secrets and variables → Actions**: - `HOSTEDEZ_SFTP_USER`: your site's SFTP username (for example, `sftp_acme-docs`) - `HOSTEDEZ_SFTP_KEY`: the full contents of your private key (`~/.ssh/hostedez_deploy`) ### Static Site (Vite / Astro / Next.js) ```yaml title=".github/workflows/deploy-static.yml" name: Deploy Static Site to Hosted EZ on: push: branches: [main] workflow_dispatch: concurrency: group: deploy-hostedez cancel-in-progress: false jobs: build-and-deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 22 cache: npm - name: Install and build run: | npm ci npm run build - name: Install lftp run: sudo apt-get update && sudo apt-get install -y lftp - name: Sync dist/ to Hosted EZ via SFTP env: SFTP_USER: ${{ secrets.HOSTEDEZ_SFTP_USER }} SFTP_KEY: ${{ secrets.HOSTEDEZ_SFTP_KEY }} run: | install -m 600 /dev/null "$RUNNER_TEMP/sftp_key" printf '%s\n' "$SFTP_KEY" > "$RUNNER_TEMP/sftp_key" lftp -u "$SFTP_USER," sftp://sftp.hostedez.com:22 < "$RUNNER_TEMP/sftp_key" lftp -u "$SFTP_USER," sftp://sftp.hostedez.com:22 < Host HTML, CSS, JavaScript, and static-site generator bundles on Hosted EZ with zero-PHP nginx serving, versioned archive deploys, and 1-click atomic rollbacks. Source: https://docs.hostedez.com/deploy/static-sites/ · Markdown: https://docs.hostedez.com/deploy/static-sites/index.md Hosted EZ's **Static Site** runtime serves files directly from nginx over HTTP/2 and HTTP/3 with Brotli and gzip compression, TLS 1.3, automatic HTTPS, and zero PHP overhead. Hidden dotfiles (except `/.well-known/acme-challenge/`) and `*.php` requests return `404` automatically. ## Create a Static Site 1. **Choose Static Site in the New Site wizard** Open **Sites → New site** in [app.hostedez.com](https://app.hostedez.com/dashboard?tab=sites&new=1), select **Static Site**, and continue to Step 2. 2. **Configure static delivery options** Enter a site name and configure initial routing defaults (you can change these anytime in **Routing → Static Delivery**): - **SPA fallback**: enable for client-side routers (React Router, Vue Router, TanStack Router) so unmatched paths serve `/index.html`. - **Clean URLs**: enable for static site generators (Astro, Next.js static export, Hugo) so `/about` resolves `/about.html` cleanly. 3. **Package your build output** Build your site locally and archive the output directory into a `.zip`, `.tar.gz`, or `.tgz` file: ### zip ```bash # Example: bundle dist/ into dist.zip zip -r dist.zip dist/ ``` ### tar.gz ```bash # Example: bundle dist/ into dist.tar.gz tar -czf dist.tar.gz -C dist . ``` > **Automatic wrapper-folder stripping** > > If every file in your archive sits inside a single top-level folder (such as `dist/` or `build/`), Hosted EZ automatically strips that wrapper folder during extraction so `dist/index.html` becomes `/index.html`. macOS `__MACOSX/` and `.DS_Store` metadata entries are also stripped cleanly. 4. **Upload and deploy** Open your site's **Deployments** tab, drag and drop your archive onto the upload zone, add an optional release note (up to 500 characters), and click **Deploy**. ## How atomic deploys & rollbacks work When you upload a release archive: 1. Hosted EZ extracts and validates the archive in an isolated staging directory—your live site keeps serving the previous release throughout upload and extraction. 2. Permissions are normalized and an immutable `.tar.gz` release snapshot is persisted for rollback. 3. Hosted EZ swaps `public_html` atomically in one filesystem operation—zero half-deployed files and zero downtime. 4. If **Global Edge CDN** is enabled on the site, Hosted EZ automatically purges the edge cache as part of the deploy. 5. Up to **10 release snapshots** are retained on disk per static site. To revert to a previous release, open the **Deployments** tab, click **Rollback** on any retained version, optionally enter a rollback note, and confirm. Rollbacks swap `public_html` atomically, record a new version entry pointing to the restored snapshot, and purge the Global Edge CDN automatically. ## Archive limits & security rules | Rule | Limit / Behavior | | --- | --- | | **Supported formats** | `.zip`, `.tar.gz`, `.tgz` | | **Max uploaded archive size** | `100 MiB` | | **Max extracted size** | `512 MiB` (also capped by your account SSD storage quota) | | **Max regular files per deploy** | `20,000` files | | **Retained rollback releases** | `10` most recent releases | | **Forbidden archive entries** | Symlinks, hardlinks, absolute paths, `..` traversal, Windows backslashes (`\`), device/FIFO/socket entries | | **Auto-ignored entries** | `__MACOSX/` trees and `.DS_Store` files | | **Default directory index** | `index.html` (directory listing is disabled) | ## Default caching behavior Out of the box, nginx sets sensible `Cache-Control` headers on static sites: - **Static assets** (`.css`, `.js`, `.mjs`, `.svg`, `.png`, `.jpg`, `.jpeg`, `.gif`, `.webp`, `.avif`, `.ico`, `.woff`, `.woff2`, `.ttf`, `.otf`, `.eot`, `.map`): `public, max-age=604800` (7 days). - **HTML & other documents**: `no-cache, must-revalidate` so browsers always pick up new deployments immediately. - **Password-protected paths**: `private, no-store` to prevent shared caches from storing private content. To set `public, max-age=31536000, immutable` on hashed asset folders (like `/assets` or `/_astro`), add a Custom Response Header rule in **Routing → Static Delivery**. See [SPA Routing, Clean URLs & Custom Headers](/domains/spa-routing-and-headers). ## Alternative deployment methods - **Automated CI/CD**: Deploy on every push to `main` from GitHub Actions using SFTP and SSH public keys. See [SFTP & GitHub Actions CI/CD](/deploy/sftp-and-github-actions). - **Quick single-file edits**: Edit `index.html`, `robots.txt`, or `sitemap.xml` directly in the dashboard using the [File Manager](/deploy/file-manager-and-terminal). - **AI Agents**: Deploy static bundles and inspect releases programmatically via the [Hosted EZ MCP Server](/automation/mcp-server). > **SFTP edits vs. versioned releases** > > Uploading files via SFTP or File Manager writes directly to `public_html` without creating a versioned release snapshot. If you need 1-click rollbacks for every release, deploy via the **Deployments** tab (or MCP static deployment tools). ## Framework guides - [Deploy React & Vite](/deploy/react-vite) — Configure Vite builds, SPA fallback, hashed asset caching, and GitHub Actions. - [Deploy Astro & Next.js Static Export](/deploy/astro-nextjs-static) — Export static HTML with Clean URLs, Custom 404 pages, and security headers. - [SPA Routing & Custom Headers](/domains/spa-routing-and-headers) — Full reference for SPA fallback, Clean URLs, Custom 404, and all 15 allowlisted headers. - [Connect a Custom Domain](/domains/connect-custom-domain) — Serve your static site from your own domain with automatic HTTPS. # Launch & Manage WordPress > Provision one-click WordPress on Hosted EZ with dedicated MariaDB, full-page caching, APCu object cache, systemd WP-Cron, and WP-CLI. Source: https://docs.hostedez.com/deploy/wordpress/ · Markdown: https://docs.hostedez.com/deploy/wordpress/index.md Hosted EZ provisions production-ready **WordPress** sites in one click—complete with an isolated PHP-FPM runtime (`8.5` default, `8.4`, or `8.3`), a dedicated MariaDB database, full-page static HTML caching, an isolated per-site APCu object cache, a background systemd WP-Cron timer, and WP-CLI in the Browser Terminal. ## Create a WordPress site 1. **Start the New Site wizard** Open [app.hostedez.com](https://app.hostedez.com/dashboard?tab=sites&new=1), click **Sites → New site**, and choose **WordPress**. 2. **Enter site and admin details** Set your **Site name**, select a **PHP version** (`8.5` recommended), and optionally customize the **Admin username** and **Admin email**. Click **Create site**. 3. **Wait for automatic installation** Hosted EZ provisions the site container, creates a dedicated MariaDB database and credentials, installs WordPress core, configures caching drop-ins, and sets up the preview URL (`https://.hostedez.site`). The **WordPress Admin** card updates automatically every 5 seconds until status changes to **Installed**. 4. **Sign in to WP Admin** Click **Reveal password** on the **WordPress Admin** card to copy the generated admin password, then click **Open WP Admin** (`/wp-admin`). ## What Hosted EZ configures automatically - **Dedicated MariaDB database**: Provisioned automatically with TLS and isolated credentials. Inspect tables, run SQL, or import/export dumps directly in [Database Studio](/databases/mariadb). - **Full-Page Cache (`hostedez-cache` MU-plugin)**: Caches anonymous HTML responses to disk for direct Apache serving and automatically purges on post publish/update, theme switch, and comment changes. Toggle or purge anytime in **Site → Performance** or from the WordPress Admin Bar. - **APCu Object Cache**: Isolated per-site in-memory object cache reducing repeat database queries. - **Background systemd WP-Cron**: Hosted EZ defines `DISABLE_WP_CRON = true` inside its managed MU-plugin and runs `wp cron event run --due-now` via a sandboxed background timer so visitor page loads are never slowed down by scheduled tasks. - **Direct static asset delivery**: Nginx serves assets under `/wp-content/` and `/wp-includes/` directly from disk with `gzip_static`, Brotli, HTTP/3, and `Cache-Control: public, max-age=31536000, immutable`. ## Manage WordPress with WP-CLI Open **Site → Terminal** to launch an interactive shell pre-configured with `wp` pinned to your site's active PHP version and memory limit. One-click **Quick Commands** include: - `wp core version` - `wp plugin list` - `wp cache flush` - `wp cron event list` - `wp db check` Common maintenance commands you can run directly in the Browser Terminal: ```bash # Update all plugins and themes wp plugin update --all wp theme update --all # Search-and-replace URLs safely after connecting a custom domain (handles serialized PHP data) wp search-replace "https://my-site.hostedez.site" "https://example.com" --all-tables --dry-run wp search-replace "https://my-site.hostedez.site" "https://example.com" --all-tables # Flush object cache and rewrite rules wp cache flush wp rewrite flush --hard ``` > **Always test updates in Staging first** > > On **Business** and **Pro** plans, open **Site → Staging** to clone your live WordPress files and database to `staging-.hostedez.site`, test plugin or theme updates safely, and selectively push files and/or database back to live. See [Staging Environments & Rollbacks](/operations/staging-and-rollbacks). ## Outbound email & WooCommerce receipts By default, WordPress sends password resets, contact forms, and WooCommerce order emails via PHP `mail()`. Connect an authenticated Hosted EZ mailbox under **Site → Outbound Email** so every transactional message sends through authenticated SMTP with SPF, DKIM, and DMARC alignment—no third-party SMTP plugin required. See [Send Transactional Email from Your Site](/email/site-outbound-email). ## Tuning PHP & uploads If you upload large themes, media libraries, or backup archives in WP Admin, open **Site → PHP** to adjust `upload_max_filesize`, `post_max_size`, `memory_limit`, `max_execution_time`, or `max_input_vars` within your plan ceiling. See [PHP Versions & php.ini Overrides](/deploy/drupal-nextcloud-php#php-versions-and-phpini-overrides). ## Next steps - [Connect a Custom Domain & Automatic HTTPS](/domains/connect-custom-domain) - [Page Caching, Object Cache & Global Edge CDN](/domains/caching-and-cdn) - [Staging Environments & Rollbacks](/operations/staging-and-rollbacks) - [Malware Scanner & Security](/operations/malware-scanner-and-security) # Page Caching, Object Cache & Global Edge CDN > Tune full-page caching, APCu object caching, OPcache, cache purging, and the Hosted EZ Global Edge CDN for fast global delivery. Source: https://docs.hostedez.com/domains/caching-and-cdn/ · Markdown: https://docs.hostedez.com/domains/caching-and-cdn/index.md Hosted EZ accelerates every site with **HTTP/2 & HTTP/3 (QUIC)**, **TLS 1.3**, and **Brotli & gzip compression** out of the box. Under **Site → Performance** in [app.hostedez.com](https://app.hostedez.com/dashboard), you can inspect container telemetry, toggle origin caching layers, purge caches in one click, and enable the **Global Edge CDN**. ## Built-in caching layers by runtime | Runtime | Full-Page Cache | Object Cache | Bytecode / Asset Delivery | | --- | --- | --- | --- | | **Static Site** | Direct nginx static serving (no PHP) | N/A | `gzip_static` + Brotli; assets cached `7d` by default, HTML `no-cache, must-revalidate` (customizable in [Static Delivery](/domains/spa-routing-and-headers)) | | **WordPress** | Static HTML cache (`hostedez-cache` MU-plugin, direct Apache serve, auto-purge on post/theme updates) | Isolated per-site **APCu** store | PHP **OPcache** + direct nginx static asset serving (`1y immutable` for `/wp-content/` and `/wp-includes/`) | | **Drupal** | Nginx tmpfs anonymous page microcache (`10m` TTL; bypasses `SESS`/`SSESS` cookies, query strings, `/admin`, `/user`, `/jsonapi`) | Isolated per-site **APCu** (ChainedFast + page/render bins) | PHP **OPcache** + direct nginx static asset serving | | **Nextcloud** | Nginx theming microcache (`7d` for `/apps/theming/`) | Isolated per-site **APCu** | PHP **OPcache** + direct nginx static asset serving | | **Laravel & Custom PHP** | Configurable toggle (for standard cacheable routes) | Isolated per-site **APCu** | PHP **OPcache** (`32 MiB` Starter / `64 MiB` Business & Pro) | ### Toggling origin caches In **Site → Performance**, you can switch **Page cache** and **Object cache** on or off independently without restarting your site: - Turn **Page cache** off temporarily while debugging dynamic WordPress or Drupal personalization plugins. - Keep **OPcache** enabled in production (visible in the telemetry table along with live memory utilization). ## Purging the cache Click **Purge cache** in the top-right corner of **Site → Performance** to clear: 1. Cached HTML pages and origin cache files (the confirmation banner reports the exact file count and bytes freed). 2. In-memory object/OPcache generations (on PHP/CMS sites). 3. **Global Edge CDN** edge cache (when CDN is active on the site). > **Automatic cache purge on Static Sites & WordPress** > > - **Static Sites**: Every archive upload or 1-click rollback in the **Deployments** tab automatically purges the Global Edge CDN cache. (If you upload files via SFTP or File Manager, click **Purge cache** manually.) > - **WordPress**: Publishing or updating posts, switching themes, or moderating comments automatically purges the `hostedez-cache` page cache. You can also trigger a purge from the **WordPress Admin Bar** or with `wp cache flush` in the Browser Terminal. ## Global Edge CDN Hosted EZ's **Global Edge CDN** serves your site through a global anycast edge network with edge TLS termination, origin shielding, and instant cache invalidation. ### Eligibility & pricing - **Pro plan**: **Included free** across all sites on your account. - **Starter & Business plans**: Available as the **Global Edge CDN** account-wide add-on for **`$10/mo`** (or **`$100/yr`**), covering every site on your account. Add it in **Dashboard → Billing → Add-ons**. ### Enable or disable Global Edge CDN per site 1. **Open Site → Performance** Navigate to your site in [app.hostedez.com](https://app.hostedez.com/dashboard) and select the **Performance** tab. 2. **Toggle Global Edge CDN** In the **Global Edge CDN** card, switch the toggle **On**. Status transitions from **Provisioning** to **Active** automatically (typically within a minute). 3. **Verify edge delivery** Once **Active**, both your preview domain and connected custom domains benefit from edge caching according to your site's `Cache-Control` and `CDN-Cache-Control` headers. ### Controlling CDN caching with headers - **Static Sites**: Use [Custom Response Headers](/domains/spa-routing-and-headers) to set `Cache-Control: public, max-age=31536000, immutable` on hashed asset prefixes (`/assets`, `/_astro`, `/_next/static`) and `Cache-Control: no-cache, must-revalidate` on `/`. - **Password-Protected Directories & Maintenance Mode**: Hosted EZ automatically emits `Cache-Control: private, no-store` (for Basic Auth) and `CDN-Cache-Control: no-store` (for Maintenance Mode) so private content and temporary `503` notices are never cached at the edge. - **WordPress & Drupal**: Logged-in sessions and admin paths bypass full-page caching automatically. ## Inspecting cache headers Use `curl` to inspect cache status headers from your terminal: ```bash # Check Cache-Control, HTTP protocol, and origin cache status headers curl -sI https://example.com/ | grep -iE '^(http|cache-control|x-hostedez-cache|alt-svc)' ``` # Connect a Custom Domain & Automatic HTTPS > Attach a custom domain or subdomain to any Hosted EZ site using Hosted EZ Domains, Hosted EZ DNS, or External DNS with automatic TLS 1.3 and HTTP/3 certificates. Source: https://docs.hostedez.com/domains/connect-custom-domain/ · Markdown: https://docs.hostedez.com/domains/connect-custom-domain/index.md Every Hosted EZ site launches with an instant preview URL (`https://.hostedez.site`). When you are ready to go live on your own domain (`example.com`, `www.example.com`, or `docs.example.com`), attach it in **Site → Domains**—Hosted EZ provisions and renews TLS 1.3 + HTTP/3 certificates automatically. ## Choose a DNS routing mode Hosted EZ supports three DNS modes depending on where your domain is registered and where you want to manage DNS records: | Mode | When to use it | What you configure | | --- | --- | --- | | **Hosted EZ Managed** | Domain registered directly through **Hosted EZ Domains** | Nothing—nameservers, web routing, email records (if enabled), and HTTPS are configured automatically | | **Hosted EZ DNS** | Domain registered at another registrar (Namecheap, Porkbun, GoDaddy, etc.) and you want to manage DNS in Hosted EZ | Point your domain's nameservers at your registrar to the assigned Hosted EZ nameservers, then click **Check DNS** | | **External DNS** | Keep your existing DNS provider (Cloudflare, Route 53, DNSimple, etc.) | Add the verification `TXT` record and web routing `CNAME` (or `ALIAS`/`ANAME` for apex) at your DNS provider, then click **Check DNS** | ## Connect your domain 1. **Open the site's Domains tab** In [app.hostedez.com](https://app.hostedez.com/dashboard), open your site and select the **Domains** tab, then click **Connect domain**. 2. **Enter your hostname and choose a routing mode** Enter the domain or subdomain you want to serve (for example, `docs.example.com` or `example.com`). Hosted EZ detects domains already registered in your account automatically. 3. **Configure DNS according to your mode** ### Hosted EZ Managed No manual DNS edits are required. Hosted EZ creates the routing records inside your zone and requests your HTTPS certificate automatically. ### Hosted EZ DNS 1. Copy the assigned **Nameservers** displayed in the onboarding panel. 2. Sign in to your domain registrar and replace the existing nameservers with the Hosted EZ nameservers. 3. Return to **Site → Domains** and click **Check DNS**. Once delegation propagates, manage all records in the [DNS Zone Editor](/domains/dns-zone-editor). ### External DNS 1. Copy the **Required DNS records** shown in the onboarding panel: - **Verification `TXT` record**: confirms domain ownership before routing and TLS issuance. - **Web routing `CNAME` record**: points your subdomain (such as `www` or `docs`) to your site's routing target. - **Apex domains (`@`)**: use **CNAME flattening**, **`ALIAS`**, or **`ANAME`** at your DNS provider (DNS specifications do not allow a bare `CNAME` at the zone apex). 2. Save the records at your DNS provider (disable any proxy orange-cloud initially if your provider intercepts `/.well-known/acme-challenge/`). 3. Click **Check DNS** in Hosted EZ. 4. **Confirm Active status & HTTPS** Status progresses from **Pending DNS** → **Verifying** → **Active**. Once **Active**, Hosted EZ serves your custom domain over HTTPS with automatic certificate renewal. ## Automatic HTTPS, TLS 1.3 & HTTP/3 Once DNS verification succeeds, Hosted EZ automatically: - Issues and renews a TLS certificate via ACME HTTP-01 (`/.well-known/acme-challenge/` is reserved automatically and bypasses maintenance mode and password protection). - Enables **TLS 1.3**, **HTTP/2**, and **HTTP/3 (QUIC over UDP/443)** with `Alt-Svc: h3=":443"; ma=86400`. - Redirects all plain HTTP (`:80`) requests to HTTPS with a `301` redirect. - Sends `Strict-Transport-Security: max-age=31536000; includeSubDomains` and `X-Content-Type-Options: nosniff` on HTTPS responses. ## Domain status reference | Status | Meaning | | --- | --- | | **Pending DNS** | Required DNS records or nameserver delegation have not been detected yet. Verify records at your provider and click **Check DNS**. | | **Verifying** | DNS matches; Hosted EZ is issuing and installing your TLS certificate. | | **Active** | Routing and HTTPS are live. | | **Failed** | Verification or certificate issuance failed—check for conflicting `CAA` records or DNS proxies blocking `/.well-known/acme-challenge/`. | ## Connecting both apex (`example.com`) and `www` To serve both `example.com` and `www.example.com`: 1. Connect both `example.com` and `www.example.com` under **Site → Domains**. 2. Decide your canonical hostname (for example, `https://example.com`). 3. For WordPress, confirm **Site Address (URL)** in WP Admin (or via `wp option get home` in the Browser Terminal) matches your canonical domain. ## Troubleshooting DNS & TLS - **DNS propagation delay**: Check what public resolvers currently see before clicking **Check DNS**: ```bash dig +short CNAME docs.example.com dig +short TXT _hostedez-verify.docs.example.com ``` - **Conflicting `CAA` records**: If your domain publishes DNS `CAA` records, make sure they allow Let's Encrypt (`0 issue "letsencrypt.org"`) so automatic TLS issuance succeeds. - **Nextcloud `trusted_domains`**: On Nextcloud sites, verify your new custom domain is included in `trusted_domains` via `occ config:system:get trusted_domains`. # Manage DNS Records (Zone Editor) > Add, edit, filter, and delete authoritative DNS records (A, AAAA, CNAME, MX, TXT, SRV, CAA, NS) in the Hosted EZ DNS Zone Editor. Source: https://docs.hostedez.com/domains/dns-zone-editor/ · Markdown: https://docs.hostedez.com/domains/dns-zone-editor/index.md When a domain is registered with **Hosted EZ Domains** (**Hosted EZ Managed**) or delegated to Hosted EZ nameservers (**Hosted EZ DNS**), you can manage all authoritative records directly in **Dashboard → Domains → select domain → DNS**. ## Supported DNS record types The Hosted EZ DNS Zone Editor supports **8 standard record types** with built-in input validation and zone-relative name normalization (enter `@` or leave blank for the zone apex; enter `www` or `www.example.com` for subdomains): | Type | Purpose | Example Name | Example Value / Fields | | --- | --- | --- | --- | | **`A`** | Map a hostname to an IPv4 address | `@` or `api` | `203.0.113.10` | | **`AAAA`** | Map a hostname to an IPv6 address | `@` or `api` | `2001:db8::10` | | **`CNAME`** | Alias a subdomain to another hostname | `blog` | `target.example.net` | | **`MX`** | Route incoming domain email | `@` | Priority `10`, Target `mail.hostedez.com` | | **`TXT`** | Verification tokens, SPF, DKIM, DMARC | `@` or `_dmarc` | `v=spf1 include:_spf.hostedez.com ~all` | | **`SRV`** | Service discovery (CalDAV, SIP, autodiscover) | `_submission._tcp` | Priority, Weight, Port, Target hostname | | **`CAA`** | Restrict which CAs may issue TLS certificates | `@` | Flags `0`, Tag (`issue`, `issuewild`, `iodef`), Value `"letsencrypt.org"` | | **`NS`** | Delegate a subdomain to external nameservers | `sub` | `ns1.otherdns.example` (apex `NS` is system-locked) | ## TTL presets & rate limits - **TTL range**: `60` to `86,400` seconds. - **Quick presets**: `1 minute (60s)`, `5 minutes (300s)`, `10 minutes (600s)`, `1 hour (3600s)`, `24 hours (86400s)`, or **Custom**. - **Write rate limit**: Up to **`60` record changes per minute** per domain. > **Choose a lower TTL before migrations** > > Set TTL to `300s` (5 minutes) ahead of a site or email migration so resolver caches expire quickly when you cut over, then raise it back to `3600s` (1 hour) once stable. ## Managed & locked records Hosted EZ automatically tags records created by platform features so you do not accidentally break a live site, HTTPS renewal, or domain email: | Badge / Source | Editable? | What it protects | | --- | --- | --- | | **System (Locked)** | No (`403 record_locked`) | Zone apex `SOA` and `NS` records, `_acme-challenge*` TLS renewal records, and Hosted EZ domain verification TXT records | | **Site** | Managed automatically | `A`, `AAAA`, and `CNAME` records routing web traffic to your connected Hosted EZ sites | | **Email** | Managed automatically | `MX`, SPF, DKIM, DMARC, autodiscover `SRV`, and custom webmail `CNAME` records configured via [Hosted EZ Email](/email/mailboxes-and-webmail) | | **Custom** | Full edit & delete | Any records you create manually (third-party SaaS verifications, external subdomains, custom `CAA` policies, etc.) | ## Filtering & auditing records Use the filter bar above the DNS table to narrow large zones by bucket (**All**, **A/AAAA**, **CNAME**, **MX**, **TXT**, **Other** for `SRV`/`CAA`/`NS`) or search by record name or value. ## Adding or editing records via AI agents If you manage multiple domains or automate DNS onboarding, the [Hosted EZ MCP Server](/automation/mcp-server) exposes tools to list DNS zones, inspect records, and create, update, or delete records with the same validation and lock protections as the dashboard. ## External DNS domains If your domain uses **External DNS** (nameservers hosted at Cloudflare, Route 53, GoDaddy, etc.), the Zone Editor displays **External DNS** status and shows the required records to copy into your external provider. To switch to Hosted EZ DNS later, update your domain's nameservers at your registrar to the assigned Hosted EZ nameservers and click **Check DNS**. # Redirects, Password Protection & Maintenance Mode > Configure edge nginx HTTP redirects (301/302/307/308), HTTP Basic Auth password-protected directories, and HTTP 503 maintenance mode with IP bypass lists on Hosted EZ. Source: https://docs.hostedez.com/domains/redirects-auth-maintenance/ · Markdown: https://docs.hostedez.com/domains/redirects-auth-maintenance/index.md Every Hosted EZ site—both **Static Sites** and **PHP/CMS sites**—includes nginx-enforced **Redirects**, **Password-Protected Directories**, and **Maintenance Mode** under **Site → Routing** in [app.hostedez.com](https://app.hostedez.com/dashboard). Because nginx evaluates these rules before PHP or static file handlers run, they add zero application overhead. ## Evaluation precedence order When a request arrives at your site, nginx evaluates routing features in this exact order: 1. **ACME TLS validation (`/.well-known/acme-challenge/`)** — always allowed so certificate renewals never break, even during Maintenance Mode or site-wide password protection. 2. **Maintenance Mode** — returns HTTP `503` for all visitors whose IP is not in the bypass list. 3. **HTTP Redirects** — `exact` match rules are checked first, followed by `prefix` rules (longest prefix first), and finally a root `/` prefix redirect if configured. Redirects bypass HTTP Basic Auth. 4. **Password-Protected Directories** — enforces HTTP Basic Auth on matching paths (blocking direct static asset access under protected paths as well). 5. **Static Delivery / Application** — serves static files (with custom headers/SPA fallback/clean URLs) or proxies to Apache/PHP-FPM. ## HTTP Redirects Open **Site → Routing → Redirects** to manage up to **`100` redirect rules per site**. ### Supported options - **Source path**: site-relative path starting with `/` (max `512` bytes; trailing slash is normalized; `/.well-known/acme-challenge` is reserved). - **Match type**: - **`exact`**: matches only the exact path (for example, `/old-pricing` → `/pricing`). - **`prefix`**: matches the path and everything beneath it, preserving the trailing path suffix onto the target URL (for example, `/blog` → `https://news.example.com/posts` redirects `/blog/launch` to `https://news.example.com/posts/launch`). - **Target URL**: either a site-relative path starting with `/` or a full `http://` / `https://` URL (max `2,048` bytes). - **Status code**: - **`301`** — Moved Permanently (recommended for SEO migrations; cached by browsers) - **`302`** — Found (Temporary redirect) - **`307`** — Temporary Redirect (preserves HTTP method and request body, e.g. `POST`) - **`308`** — Permanent Redirect (preserves HTTP method and request body) - **Preserve query string**: appends the incoming query string (`?utm_source=...`) to the destination URL (merging cleanly with `&` if the target URL already contains a query string). - **Enabled toggle**: disable a rule temporarily without deleting it. ## Password-Protected Directories (HTTP Basic Auth) Open **Site → Routing → Password protection** to lock down `/` (your entire site) or specific subpaths (such as `/staging`, `/admin`, or `/internal-docs`) with HTTP Basic Auth. ### Limits & security behavior - **Maximum rules per site**: `25` unique paths. - **Realm**: `1–64` printable ASCII characters (displayed in the browser's sign-in prompt; default `Restricted Area`). - **Username**: `1–64` characters matching `^[A-Za-z0-9._-]{1,64}$`. - **Password**: `8–72` UTF-8 bytes; stored exclusively as a **bcrypt** hash (plaintext passwords are never persisted or echoed). - **Automatic cache safety**: Any response served under a password-protected path automatically sets `Cache-Control: private, no-store` so shared proxies and CDNs never cache private pages or assets. - **Static asset protection**: Subpath Basic Auth rules use nginx prefix matching (`^~`) so direct requests to `/private/report.pdf` or `/private/app.js` cannot bypass authentication. > **Protect a preview or client review site** > > Add a Password-Protected Directory rule on path `/` to require credentials across the entire site while sharing work-in-progress designs with a client—without affecting automatic HTTPS certificate renewals. ## Maintenance Mode Open **Site → Routing → Maintenance** to display a branded HTTP `503 Service Unavailable` page while performing major deployments, database imports, or content updates. ### Features & limits - **HTTP status & headers**: Responds with HTTP **`503`**, `Retry-After: 300`, `Cache-Control: no-store, no-cache, must-revalidate`, and `CDN-Cache-Control: no-store` so search engines do not de-index your pages and caches do not store the maintenance notice. - **Custom Title**: up to **`120`** characters (default: `Site under maintenance`). - **Custom Message**: up to **`500`** characters (default: `We are performing scheduled maintenance and will be back shortly.`). - **Bypass IPs / CIDRs**: up to **`20`** IPv4/IPv6 addresses or CIDR blocks (for example, `203.0.113.42` or `198.51.100.0/24`). Requests from allowlisted IPs bypass the `503` page and see the live site normally so you can verify changes before disabling Maintenance Mode. - **Zero disruption to TLS**: `/.well-known/acme-challenge/` automatically bypasses Maintenance Mode. ## Testing routing rules from the CLI ```bash # Inspect redirect status and Location header without following curl -sI https://example.com/old-page | grep -iE '^(http|location)' # Test a password-protected directory (expects 401 without creds, 200 with creds) curl -sI https://example.com/private/ curl -sI -u "reviewer:your-password" https://example.com/private/ # Verify Maintenance Mode headers (expects 503 + Retry-After: 300) curl -sI https://example.com/ | grep -iE '^(http|retry-after|cache-control|cdn-cache-control)' ``` # SPA Routing, Clean URLs & Custom Headers > Configure SPA fallback, Clean URLs, Custom 404 pages, and all 15 allowlisted security, caching, and CORS response headers on Hosted EZ Static Sites. Source: https://docs.hostedez.com/domains/spa-routing-and-headers/ · Markdown: https://docs.hostedez.com/domains/spa-routing-and-headers/index.md On **Static Sites**, open **Site → Routing → Static Delivery** in [app.hostedez.com](https://app.hostedez.com/dashboard) to control how nginx resolves URLs, serves 404 pages, and attaches custom HTTP response headers per path prefix. ## URL resolution: SPA fallback & Clean URLs Toggle **SPA fallback** and **Clean URLs** independently depending on your frontend architecture. Hosted EZ compiles your settings directly into nginx's `try_files` directive: | SPA Fallback | Clean URLs | Resulting nginx `try_files` | Recommended For | | --- | --- | --- | --- | | **Off** | **Off** | `$uri $uri/ =404` | Plain HTML sites with explicit `.html` links or `/dir/index.html` folders | | **Off** | **On** | `$uri $uri.html $uri/ =404` | **Astro**, **Next.js static export**, **Hugo**, **Eleventy** (extensionless URLs + real 404s) | | **On** | **Off** | `$uri $uri/ /index.html` | **React**, **Vite**, **Vue**, **Svelte** SPAs using browser history routing | | **On** | **On** | `$uri $uri.html $uri/ /index.html` | Hybrid apps with pre-rendered `.html` marketing pages plus a client-side SPA fallback | > **Static assets always return real 404s** > > Requests for missing asset extensions (`.js`, `.mjs`, `.css`, `.png`, `.jpg`, `.svg`, `.webp`, `.avif`, `.woff2`, `.map`, etc.) return `404` rather than serving `/index.html`, preventing MIME-type errors in the browser console. Hidden dotfiles (except `/.well-known/acme-challenge/`) and `*.php` paths also always return `404`. ## Custom 404 page Set **Custom 404 page** to a site-relative HTML file inside `public_html`, such as `/404.html` or `/errors/404.html`. **Validation rules**: - Must start with `/` and end with `.html` or `.htm`. - Maximum length: `256` bytes. - Must not point to `/` itself, contain `..` path traversal, or reference hidden dotfiles/directories. - Leave empty to use the default nginx `404` response. ## Custom Response Headers Define path-prefix header rules to customize caching, security policies, CORS, and crawler directives without managing server config files. ### Limits & matching rules - **Maximum rules per site**: `25` unique path prefixes (for example, `/`, `/assets`, `/_astro`, `/embed`). - **Maximum headers per rule**: `10` headers. - **Maximum header value length**: `1,024` bytes (printable ASCII only; `"`, `\`, `$`, `{`, and `}` are rejected to prevent config injection; semicolons `;` and single quotes `'` are allowed for CSP and Cache-Control). - **Precedence & inheritance**: Rules are evaluated **longest path prefix first** and merged with the root `/` rule—a header defined on `/assets` overrides the same header on `/`, while other headers from `/` (such as `Referrer-Policy` or `X-Frame-Options`) continue to apply. - **Platform-managed transport headers**: Hosted EZ always attaches `Strict-Transport-Security: max-age=31536000; includeSubDomains`, `Alt-Svc: h3=":443"; ma=86400` (on HTTPS), and `X-Content-Type-Options: nosniff` automatically—you do not need to add them yourself. ### All 15 allowlisted response headers | Category | Header Name | Typical Use | | --- | --- | --- | | **Caching** | `Cache-Control` | Immutable caching for hashed bundles, `no-cache` for HTML | | **Security** | `Content-Security-Policy` | Restrict script, style, image, and frame origins | | **Security** | `Content-Security-Policy-Report-Only` | Test a CSP policy before enforcing it | | **Security** | `X-Frame-Options` | Prevent clickjacking (`DENY` or `SAMEORIGIN`) | | **Security** | `Referrer-Policy` | Control `Referer` header leakage | | **Security** | `Permissions-Policy` | Disable unused browser APIs (camera, microphone, geolocation) | | **Isolation** | `Cross-Origin-Opener-Policy` | Enable cross-origin isolation (`same-origin`) | | **Isolation** | `Cross-Origin-Embedder-Policy` | Pair with COOP for `SharedArrayBuffer` / WebAssembly (`require-corp`) | | **Isolation** | `Cross-Origin-Resource-Policy` | Restrict cross-origin asset loading (`same-origin` or `cross-origin`) | | **CORS** | `Access-Control-Allow-Origin` | Allow cross-origin fetches (fonts, JSON data, embeds) | | **CORS** | `Access-Control-Allow-Methods` | Permitted HTTP methods (`GET, HEAD, OPTIONS`) | | **CORS** | `Access-Control-Allow-Headers` | Permitted request headers | | **CORS** | `Access-Control-Expose-Headers` | Response headers readable by browser JS | | **CORS** | `Access-Control-Max-Age` | Preflight cache TTL in seconds | | **Crawlers** | `X-Robots-Tag` | Prevent indexing of staging/internal paths (`noindex, nofollow`) | ## Copy-paste header recipes ### Vite / React SPA **Rule 1 — Path prefix `/`:** - `Cache-Control`: `no-cache, must-revalidate` - `X-Frame-Options`: `DENY` - `Referrer-Policy`: `strict-origin-when-cross-origin` - `Permissions-Policy`: `camera=(), microphone=(), geolocation=()` **Rule 2 — Path prefix `/assets`:** - `Cache-Control`: `public, max-age=31536000, immutable` ### Astro / Next.js Static **Rule 1 — Path prefix `/`:** - `Cache-Control`: `no-cache, must-revalidate` - `X-Frame-Options`: `SAMEORIGIN` - `Referrer-Policy`: `strict-origin-when-cross-origin` **Rule 2 — Path prefix `/_astro`** *(or `/_next/static` for Next.js)*: - `Cache-Control`: `public, max-age=31536000, immutable` ### Public Font / JSON Assets (CORS) **Rule — Path prefix `/fonts`** *(or `/data`)*: - `Access-Control-Allow-Origin`: `*` - `Access-Control-Allow-Methods`: `GET, HEAD, OPTIONS` - `Cross-Origin-Resource-Policy`: `cross-origin` - `Cache-Control`: `public, max-age=31536000, immutable` ### Strict CSP (Example) **Rule — Path prefix `/`:** - `Content-Security-Policy`: `default-src 'self'; img-src 'self' https: data:; style-src 'self' 'unsafe-inline'; script-src 'self'; frame-ancestors 'none'` ## Verify active headers with `curl` After saving your rules, verify the live response headers: ```bash curl -sI https://docs.example.com/ | grep -iE '^(http|cache-control|x-frame-options|referrer-policy|content-security-policy)' curl -sI https://docs.example.com/assets/index-abc123.js | grep -iE '^(http|cache-control)' ``` # Filters, Autoresponders, Queue & Branding > Configure vacation autoresponders, visual inbound filter rules and RFC 5228 Sieve scripts with dry-run testing, monitor the outbound mail queue, and white-label webmail. Source: https://docs.hostedez.com/email/filters-autoresponders-branding/ · Markdown: https://docs.hostedez.com/email/filters-autoresponders-branding/index.md Hosted EZ Email includes mailbox automation, server-side Sieve filtering, outbound delivery visibility, and full white-label webmail customization—available in both the dashboard (**Email** tab) and the [Hosted EZ MCP Server](/automation/mcp-server). ## Vacation & Out-of-Office Autoresponders Configure automatic replies per mailbox under **Email** → **Autoresponders**: - **Subject & message body**: Set a reply subject (up to **200 characters**) and plain-text body (up to **10,000 characters**). - **Schedule window**: Optionally set UTC **Starts at** and **Ends at** timestamps so your out-of-office message activates and expires automatically. - **Per-sender cooldown**: Prevent reply loops by limiting replies to once every **1–720 hours** per unique sender (default **24 hours**). - **Reset reply history**: Toggle **Reset history** when updating an autoresponder to clear prior sender cooldown records so senders receive the updated message right away. ## Visual Inbound Filter Rules & Custom Sieve Scripts Hosted EZ evaluates server-side inbound filters before messages land in your inbox, supporting both a visual rule builder and raw **RFC 5228 Sieve** scripts. ### Visual filter rules Each mailbox supports up to **50 visual filter rules** evaluated in priority order (drag and drop in the dashboard or call `reorder_email_filter_rules` over MCP to update ordering atomically). Each rule specifies: - **Match mode**: `all` (every condition must match) or `any` (at least one condition must match). - **Stop processing**: Optionally halt evaluation of lower-priority rules when this rule matches. - **Conditions** (1–10 per rule): - **Fields**: `from`, `to`, `cc`, `to_or_cc`, `subject`, `header` (any custom header name up to 64 characters), `body`, and `size`. - **Operators**: `contains`, `not_contains`, `equals`, `not_equals`, `starts_with`, `ends_with`, `matches`, and `exists` (for headers/address fields); `over` and `under` (for `size`, supporting byte counts or `K`/`M`/`G` suffixes). - **Actions** (1–5 per rule): - `fileinto`: Deliver to a specific IMAP folder (up to 128 characters). - `addflag`: Apply one or more IMAP flags (`\Seen`, `\Flagged`, `\Answered`, `$Important`). - `redirect`: Forward to another valid email address. - `keep`: Retain in `INBOX`. - `discard`: Silently drop the message. - `reject`: Bounce with a custom reason (up to 500 characters). Visual rules automatically compile to RFC 5228 Sieve—you can inspect the compiled preview directly inside the **Filters** panel. ### Custom RFC 5228 Sieve scripts For advanced logic beyond visual rules, enable a custom Sieve script per mailbox (up to **64 KiB**): - **Supported Sieve capabilities**: `fileinto`, `envelope`, `imap4flags`, `copy`, `reject`, `body`, `vacation`, and `subaddress`. - **Execution guardrails**: Scripts are syntax-validated on save and run with safety caps of **5** `fileinto` actions, **3** `redirect` actions, AST depth **16**, and **10,000** evaluation steps per message. ```sieve require ["fileinto", "imap4flags", "subaddress"]; if envelope :detail "to" "alerts" { addflag "$Important"; fileinto "Alerts"; stop; } ``` ### Filter dry-run tester Before activating new rules or a draft Sieve script, use the **Test filters** dry-run panel: 1. Enter a sample `From`, `To`, `Subject`, `Body`, message size, or raw headers—and optionally paste an unsaved draft Sieve script. 2. Click **Run test**. 3. Hosted EZ simulates evaluation **read-only** (no messages are delivered, redirected, or bounced) and reports exact `deliveries` (folders + flags), `redirects`, `vacation` response, `discarded`/`rejected` outcomes, and step-by-step `actionsTaken`. ## Outbound Mail Queue & Deliverability Dashboard ### Deliverability overview The **Deliverability** view summarizes live authentication health (`MX`, `SPF`, `DKIM`, and `DMARC`) and outbound sending status across all of your enabled email domains so you can catch DNS regressions early. ### Mail queue viewer & retries Inspect outbound messages under **Email** → **Mail Queue**: - Filter queued, deferred, sent, or failed deliveries by **domain**, **mailbox**, **status**, or **search term** (up to 200 characters). - View scoped summary counters alongside paginated queue entries. - **Retry a message**: Schedule a single `queued`, `deferred`, or `failed` message for immediate redelivery. - **Retry all deferred**: Trigger immediate retry for all deferred messages across your account or for a specific email domain. - **Cancel a message**: Remove a pending `queued` or `deferred` message before final delivery. ## White-Label Webmail Branding Give clients or teammates a branded webmail experience on your own subdomain (for example, `https://webmail.example.com`) under **Email** → **Branding**: 1. **Set a custom webmail hostname** Enter a subdomain of your enabled email domain (such as `webmail.example.com`). If the domain uses Hosted EZ DNS, the `CNAME` record pointing to `webmail.hostedez.com` is provisioned automatically. On external DNS, create the `CNAME` record shown and click **Verify hostname**. 2. **Customize identity and colors** Configure your **Brand name** (up to 80 characters), **Accent color** and **Surface tint** (`#rrggbb` hex values), **Default theme** (`light`, `dark`, or `system`), optional **Footer text** (up to 200 characters), and toggle **Hide "Powered by" badge**. 3. **Upload visual assets** Upload raster image assets for your login screen and header bar (SVG and HTML files are rejected for security). ### Supported branding assets | Asset Kind | Allowed Formats | Maximum File Size | | --- | --- | --- | | `logo` (light theme) | PNG, JPEG, WebP | `2 MiB` | | `logo_dark` (dark theme) | PNG, JPEG, WebP | `2 MiB` | | `favicon` | PNG, JPEG, WebP | `2 MiB` | | `login_bg` (sign-in background) | PNG, JPEG, WebP | `5 MiB` | # Mailboxes, DNS Auth & Webmail > Enable custom domain email on Hosted EZ, verify MX/SPF/DKIM/DMARC records, create mailboxes and aliases, launch 1-click Webmail SSO, and configure IMAP/SMTP clients. Source: https://docs.hostedez.com/email/mailboxes-and-webmail/ · Markdown: https://docs.hostedez.com/email/mailboxes-and-webmail/index.md Hosted EZ Email provides custom-domain mailboxes, aliases, 1-click webmail single sign-on (`https://webmail.hostedez.com`), and standard IMAP/SMTP access (`mail.hostedez.com`) with automated RSA-2048 DKIM signing, SPF, and DMARC authentication. ## Enable Email for a Custom Domain 1. **Add your email domain** In `app.hostedez.com`, open the **Email** tab and click **Enable email domain**. Enter your domain name (for example, `example.com`), choose a DMARC policy (`quarantine` by default, or `none` / `reject`), and optionally set a catch-all forwarding address. 2. **Configure email DNS records** If your domain uses **Hosted EZ DNS** (managed or authoritative), Hosted EZ automatically provisions your MX, SPF, DKIM, DMARC, and autodiscover SRV records. If you use **External DNS**, add the records shown on the domain's DNS panel. 3. **Verify DNS** Click **Verify DNS** to run live checks for `MX`, `SPF`, `DKIM`, and `DMARC`. All required records (`MX`, `SPF`, and `DKIM`) turn **Verified** once DNS propagation completes. ### Required & optional email DNS records | Purpose | Type | Host | Value | Priority / TTL | Required | | --- | --- | --- | --- | --- | --- | | **MX** | `MX` | `@` | `mail.hostedez.com.` | Priority `10`, TTL `300` | Yes | | **SPF** | `TXT` | `@` | `v=spf1 include:_spf.hostedez.com ~all` | TTL `300` | Yes | | **DKIM** | `TXT` | `._domainkey` | `v=DKIM1; k=rsa; p=` | TTL `300` | Yes | | **DMARC** | `TXT` | `_dmarc` | `v=DMARC1; p=quarantine; rua=mailto:dmarc@hostedez.com` | TTL `300` | Recommended | | **IMAPS Autodiscover** | `SRV` | `_imaps._tcp` | `0 1 993 mail.hostedez.com.` | Priority `0`, TTL `300` | Optional | | **SMTP Autodiscover** | `SRV` | `_submission._tcp` | `0 1 587 mail.hostedez.com.` | Priority `0`, TTL `300` | Optional | ### Rotating DKIM keys Hosted EZ generates a dedicated **RSA-2048** DKIM key pair for every enabled email domain. To rotate your DKIM key, click **Rotate DKIM** on the domain's DNS panel. Hosted EZ generates a new selector and public key; if your domain uses Hosted EZ DNS, the new TXT record is published automatically. On external DNS, add the new `._domainkey` TXT record and click **Verify DNS**. ## Create & Manage Mailboxes Once your email domain is enabled, create mailboxes (`mbx_...`) under **Email** → **Mailboxes**: - **Address**: Choose the local part (for example, `hello` for `hello@example.com`). - **Display name**: Optional sender display name (up to 120 characters). - **Storage quota**: Defaults to **2,048 MB (2 GiB)** per mailbox and can be configured up to **102,400 MB (100 GiB)** within your plan's email quota. - **Password**: Provide a strong password or leave blank to auto-generate one. Auto-generated and reset passwords are shown **once**—store them in your password manager. - **Status**: Pause mail access by setting a mailbox to **Suspended** without deleting stored messages, or switch back to **Active** anytime. > **Deleting a mailbox or domain** > > Deleting a mailbox permanently removes all of its stored folders and messages. Deleting an email domain permanently deletes all mailboxes, aliases, and messages under that domain, and disables any [Site Outbound Email](/email/site-outbound-email) relay using those mailboxes. ## Aliases, Forwarders & Catch-All Create lightweight forwarding addresses (`mal_...`) without consuming a mailbox seat: - **Aliases**: Route an address like `sales@example.com` or `support@example.com` to **1–20 destination addresses** (local Hosted EZ mailboxes or external email addresses). - **Catch-all**: Optionally configure a catch-all destination on the email domain to receive mail sent to any unconfigured address at your domain. ## 1-Click Webmail SSO & Mail Clients ### Webmail (`webmail.hostedez.com`) Every active mailbox can be opened directly in a browser: - **1-click SSO from dashboard**: Click **Open Webmail** next to any active mailbox in `app.hostedez.com`. Hosted EZ mints a short-lived single-use SSO token and signs you straight into `https://webmail.hostedez.com` (or your [custom white-label webmail domain](/email/filters-autoresponders-branding#white-label-webmail-branding) if configured). - **Direct login**: Users can also sign in directly at `https://webmail.hostedez.com` using their full email address and mailbox password. ### IMAP & SMTP client settings Use these connection parameters in Apple Mail, Thunderbird, Outlook, iOS Mail, Android Gmail, or any standard mail client: | Protocol | Server Hostname | Port | Security | Username | | --- | --- | --- | --- | --- | | **IMAP (Incoming)** | `mail.hostedez.com` | `993` | SSL/TLS | Full email address (e.g. `hello@example.com`) | | **SMTP (Outgoing, recommended)** | `mail.hostedez.com` | `465` | SSL/TLS (SMTPS) | Full email address | | **SMTP (Outgoing, alternate)** | `mail.hostedez.com` | `587` | STARTTLS | Full email address | Authentication is required for both IMAP and SMTP using the mailbox's full email address and password. # Site Outbound Email Relay > Route transactional WordPress, Laravel, Drupal, Nextcloud, and PHP mail through Hosted EZ's authenticated SMTPS relay with automatic per-app configuration and test sends. Source: https://docs.hostedez.com/email/site-outbound-email/ · Markdown: https://docs.hostedez.com/email/site-outbound-email/index.md To protect sender reputation and prevent abuse, direct unauthenticated outbound SMTP from hosting nodes is blocked by default. Instead, Hosted EZ provides a **managed per-site outbound email relay** that routes your PHP or CMS application's transactional email (password resets, contact forms, order receipts, notifications) through `mail.hostedez.com:465` (SMTPS) using a dedicated per-site relay credential. > **PHP and CMS sites only** > > Managed outbound email relay is available for **WordPress, Laravel, Drupal, Nextcloud, and Custom PHP** sites. **Static sites** do not run PHP or server-side mail relays—for static contact forms, submit directly to a third-party form endpoint or serverless API from the browser. ## Prerequisites Before enabling outbound email on a site: 1. Enable a custom domain in [Hosted EZ Email](/email/mailboxes-and-webmail) and verify its `MX`, `SPF`, and `DKIM` records. 2. Create an active mailbox (for example, `noreply@example.com` or `hello@example.com`) under that domain. ## Configure Managed Outbound Email 1. **Open the site's Email tab** In `app.hostedez.com`, open your PHP or CMS site and select **Email**. 2. **Select a sending mailbox and From name** Choose an active Hosted EZ Email mailbox (`mbx_...`) as the sender address, optionally enter a display **From name** (up to 120 characters, such as `Acme Store`), and click **Save**. 3. **Send a test email** Enter a recipient email address in the **Send test email** form and click **Send test**. Hosted EZ executes an end-to-end test from the site's hosting node through `mail.hostedez.com:465` and reports delivery latency (`durationMs`) and status. Hosted EZ automatically mints a dedicated per-site relay token (separate from your personal mailbox password) and wires your site's runtime so outbound mail works immediately without installing third-party SMTP plugins. ## Automatic Per-App Integration | Site Runtime | Automatic Hosted EZ Integration | | --- | --- | | **WordPress** | Managed MU-plugin (`phpmailer_init`) and managed `sendmail` relay | | **Laravel** | Managed `.env` SMTP settings (`MAIL_*`) and managed `sendmail` relay | | **Drupal** | Managed `settings.hostedez.php` system mail configuration and managed `sendmail` relay | | **Nextcloud** | Managed `hostedez-mail.config.php` SMTP configuration and managed `sendmail` relay | | **Custom PHP** | `PHP mail()` managed `sendmail` relay and authenticated SMTP access | ### Relay connection parameters | Parameter | Value | | --- | --- | | SMTP Host | `mail.hostedez.com` | | SMTP Port | `465` | | Encryption | `smtps` (Implicit SSL/TLS) | | Direct Node SMTP | Blocked (`directSmtpBlocked: true`) | | Test Email Rate Limit | `5` test sends per `10` minutes per site | ## Monitoring, Disabling & Mailbox Lifecycle - **Last test result**: The site's **Email** tab records `lastTestAt`, `lastTestStatus` (`sent` or `failed`), and any `lastTestError` message for quick debugging. - **Outbound queue**: Sent and deferred messages sent through your mailbox appear in the account-wide [Mail Queue Viewer](/email/filters-autoresponders-branding#outbound-mail-queue--deliverability-dashboard). - **Disabling relay**: Click **Disable outbound email** on the site's **Email** tab to remove the per-site relay configuration and revoke its relay token. - **Mailbox or domain changes**: If the linked mailbox is suspended or deleted—or if its email domain is suspended or deleted—Hosted EZ automatically disables outbound email delivery for affected sites until you link an active mailbox. # Choose a Site Type > Compare Hosted EZ's six site runtimes — Static Site, WordPress, Laravel, Drupal, Nextcloud, and Custom PHP — including document roots, databases, and features. Source: https://docs.hostedez.com/get-started/choose-a-site-type/ · Markdown: https://docs.hostedez.com/get-started/choose-a-site-type/index.md Hosted EZ ships **six isolated site runtimes**. Picking the right runtime when creating a site sets up the correct web server pipeline, document root, caching layer, and CLI tools automatically. ## Runtime comparison matrix | Runtime | Web Root | Engine | PHP Versions | Database | Deployment & Management | | --- | --- | --- | --- | --- | --- | | **Static Site** | `public_html` | Direct nginx (zero PHP) | None | None | Versioned `.zip`/`.tar.gz` deploys + 1-click rollback, SFTP, File Manager | | **WordPress** | `public_html` | Nginx + Apache + PHP-FPM | `8.5` (default), `8.4`, `8.3` | Dedicated MariaDB (auto) | 1-click install, WP-CLI in Terminal, SFTP, File Manager | | **Laravel** | `public_html/public` | Nginx + Apache + PHP-FPM | `8.5` (default), `8.4`, `8.3` | Optional MariaDB | Pre-installed scaffold, Composer & Artisan in Terminal, SFTP, File Manager | | **Drupal** | `public_html/web` | Nginx + Apache + PHP-FPM | `8.5` (default), `8.4`, `8.3` | Dedicated MariaDB (auto) | 1-click install, Composer & Drush in Terminal, SFTP, File Manager | | **Nextcloud** | `public_html` | Nginx + Apache + PHP-FPM | `8.5` (default), `8.4`, `8.3` | Dedicated MariaDB (auto) | 1-click install, `occ` CLI in Terminal, SFTP, File Manager | | **Custom PHP** | `public_html` | Nginx + Apache + PHP-FPM | `8.5` (default), `8.4`, `8.3` | Optional (via Databases tab) | Clean PHP root, Composer & PHP in Terminal, SFTP, File Manager | ## Feature availability by runtime All six runtimes include preview HTTPS (`.hostedez.site`), custom domains with automatic TLS 1.3, HTTP/2 & HTTP/3, Brotli & gzip compression, Redirects, Password-Protected Directories, Maintenance Mode, SFTP with SSH keys, File Manager, Real-Time Logs & Metrics, Automated Backups, Staging (Business/Pro), and optional Global Edge CDN. | Capability | Static Site | WordPress | Laravel | Drupal | Nextcloud | Custom PHP | | --- | --- | --- | --- | --- | --- | --- | | Versioned archive deploys & rollback | Yes | No | No | No | No | No | | SPA fallback, Clean URLs, Custom 404 & Custom Headers | Yes | No | No | No | No | No | | Browser Terminal (`wp`, `artisan`, `drush`, `occ`, `composer`) | No | Yes | Yes | Yes | Yes | Yes | | PHP version switcher & 11 `php.ini` overrides | No | Yes | Yes | Yes | Yes | Yes | | Scheduled Cron Jobs (5-field UTC) | No | Yes | Yes | Yes | Yes | Yes | | Built-in Full-Page Cache & APCu Object Cache | N/A (direct static) | Yes | OPcache + APCu | Yes (Nginx microcache + APCu) | APCu + theming cache | OPcache + APCu | | Outbound Email SMTP relay | No | Yes | Yes | Yes | Yes | Yes | | Malware Scanner | No | Yes | Yes | Yes | Yes | Yes | ## Which runtime should I choose? - **Use Static Site** for React, Vite, Vue, Svelte, Astro, Next.js static export (`output: 'export'`), Hugo, Eleventy, documentation sites, and landing pages. Because nginx serves files directly with zero PHP overhead, `.php` requests return `404` and deployments swap atomically with 10 retained release snapshots. - **Use WordPress** for blogs, marketing sites, and WooCommerce stores. Hosted EZ installs WordPress core, configures a dedicated MariaDB database, enables full-page static HTML caching and APCu object caching, disables web-request pseudo-cron in favor of a systemd timer, and exposes WP-CLI in the Browser Terminal. - **Use Laravel** for custom PHP web apps and JSON APIs built on Laravel. Your web server serves `public_html/public` automatically so `.env`, `storage/`, and `vendor/` remain outside the web root. - **Use Drupal** for structured content portals and enterprise CMS sites. Hosted EZ serves `public_html/web`, provisions MariaDB, configures an anonymous nginx page microcache plus APCu, and ships Composer and Drush. - **Use Nextcloud** for a private team cloud with file sync, CalDAV calendars, and CardDAV contacts. Hosted EZ installs the latest Nextcloud release, wires MariaDB and APCu, and adds `occ` to the Browser Terminal. - **Use Custom PHP** for Slim, Symfony, CodeIgniter, legacy PHP apps, or standalone scripts that need an isolated PHP-FPM 8.3–8.5 runtime without a pre-installed framework. > **Runtime selection is fixed per site** > > A site's runtime type is set at creation time. To switch from Custom PHP to Static Site (or vice versa), create a new site with the desired runtime, transfer your files, and move your custom domain over. ## Next steps - [Deploy a Static Website](/deploy/static-sites) - [Deploy React & Vite](/deploy/react-vite) - [Deploy Astro & Next.js Static Export](/deploy/astro-nextjs-static) - [Launch & Manage WordPress](/deploy/wordpress) - [Deploy a Laravel App](/deploy/laravel) - [Deploy Drupal, Nextcloud & Custom PHP](/deploy/drupal-nextcloud-php) # Plans, Storage & Add-ons > Pricing, account quotas, per-site compute and PHP limits, billing rules, and recurring or one-time add-ons on Hosted EZ. Source: https://docs.hostedez.com/get-started/plans-and-limits/ · Markdown: https://docs.hostedez.com/get-started/plans-and-limits/index.md Hosted EZ offers three hosting plans—**Starter**, **Business**, and **Pro**—billed monthly or yearly (two months free on annual billing). Every new paid plan includes a **30-day money-back guarantee**. ## Hosting plans | Feature | Starter | Business | Pro | | --- | --- | --- | --- | | **Monthly price** | `$9/mo` | `$19/mo` | `$39/mo` | | **Yearly price** | `$90/yr` | `$190/yr` | `$390/yr` | | **Websites** | `1` | `10` | Unlimited | | **NVMe SSD storage** | `10 GB` | `50 GB` | `100 GB` | | **Domain mailboxes** | `5` | `25` | Unlimited | | **Managed MariaDB databases** | `2` | `20` | Unlimited | | **Automated backups** | Daily | Daily | Hourly | | **Staging environments** | – | Included | Included | | **Global Edge CDN** | Add-on (`$10/mo`) | Add-on (`$10/mo`) | Included | | **Preview HTTPS, HTTP/3, SFTP, MCP** | Included | Included | Included | ## Per-site resource & PHP ceilings Each site runs inside its own isolated resource container with plan-specific compute, memory, PHP-FPM worker, and egress ceilings: | Limit | Starter | Business | Pro | | --- | --- | --- | --- | | **CPU quota** | `100%` (`1.0 vCPU`) | `200%` (`2.0 vCPU`) | `400%` (`4.0 vCPU`) | | **Container RAM (`MemoryMax`)** | `512 MiB` | `1,024 MiB` | `2,048 MiB` | | **Max processes (`TasksMax`)** | `64` | `128` | `256` | | **PHP-FPM workers (`max_children`)** | `6` | `12` | `24` | | **PHP `memory_limit` default / max** | `256 MiB` (`512 MiB` for Drupal/Nextcloud) | `512 MiB` | `1,024 MiB` | | **PHP OPcache memory** | `32 MiB` | `64 MiB` | `64 MiB` | | **PHP `upload_max_filesize` max** | `64 MiB` | `128 MiB` | `256 MiB` | | **PHP `post_max_size` max** | `64 MiB` | `128 MiB` | `256 MiB` | | **PHP `max_execution_time` max** | `120 s` | `180 s` | `300 s` | | **Site egress rate** | `25 Mbps` | `50 Mbps` | `100 Mbps` | > **Storage accounting** > > Account SSD storage is measured in decimal gigabytes (`1 GB = 1,000,000,000 bytes`) across your site files, databases, and email mailboxes. Nextcloud sites automatically receive a `1,024 MiB` container memory floor even on Starter. ## Platform & operational limits These limits apply across plans to keep deployments fast and predictable: | Feature | Limit | | --- | --- | | **Static archive upload size** | `100 MiB` per `.zip` or `.tar.gz`/`.tgz` upload | | **Static archive extracted size** | `512 MiB` total (also bounded by account storage quota) | | **Static archive file count** | `20,000` regular files per deployment | | **Static retained release snapshots** | `10` releases per static site | | **Static custom header rules** | `25` path-prefix rules per site, `10` headers per rule, `1,024` bytes per value | | **Browser File Manager upload** | `10 MiB` per file (use SFTP or archive deploy for larger files) | | **SFTP SSH public keys** | `25` keys per site | | **Browser Terminal sessions** | `2` concurrent interactive sessions per site | | **HTTP Redirect rules** | `100` rules per site | | **Password-Protected Directories** | `25` rules per site | | **Maintenance Mode bypass IPs/CIDRs** | `20` entries per site | | **Custom Cron Jobs** | `20` jobs per PHP/CMS site (`5–300 s` timeout, `16 KiB` captured output per run) | | **Database Studio SQL import** | `64 MiB` per `.sql` or `.sql.gz` file | | **DNS Zone Editor writes** | `60` record changes per minute per domain | ## Add-ons Extend any active plan from **Billing** in [app.hostedez.com](https://app.hostedez.com/dashboard?tab=billing). Recurring add-ons match your plan's billing period (monthly or yearly): | Add-on | Monthly | Yearly | Max Quantity | Notes | | --- | --- | --- | --- | --- | | **Extra SSD storage** (`+50 GB SSD`) | `$10/mo` | `$100/yr` | `10` (`+500 GB`) | Shared across sites, databases, and email | | **Extra mailboxes** (`+10 mailboxes`) | `$8/mo` | `$80/yr` | `10` (`+100`) | Not needed on Pro (unlimited mailboxes) | | **Hourly offsite backups** | `$12/mo` | `$120/yr` | `1` per account | Included free on Pro | | **Global Edge CDN** | `$10/mo` | `$100/yr` | `1` per account | Covers all sites on your account; included free on Pro | | **Dedicated IPv4 address** | `$6/mo` | `$60/yr` | `5` per account | Static IPv4 reserved for your hosted sites | | **Assisted site migration** | `$49` one-time | `$49` one-time | `5` per account | Hosted EZ engineers migrate site files, database, email, and DNS | ## Upgrades, downgrades & cancellation - **Upgrades** (higher tier or switching from monthly to yearly) take effect **immediately** with automatic proration. - **Downgrades** (lower tier or switching from yearly to monthly) are scheduled for your **next renewal date**. Before downgrading, ensure your active sites, storage, and mailboxes fit within the target plan's limits (including any active add-ons). - **30-day money-back guarantee**: Eligible accounts can request a full refund within 30 days of their first paid plan charge (one-time assisted migrations are also refundable if work has not started). - **Retention after closure**: If a subscription ends or is suspended, site data is retained for a **30-day** grace period before permanent deletion, with a warning sent 7 days prior. # Deploy Your First Site in 2 Minutes > Create a site on Hosted EZ, deploy your files or launch a managed app, and verify it live over HTTPS. Source: https://docs.hostedez.com/get-started/quickstart/ · Markdown: https://docs.hostedez.com/get-started/quickstart/index.md Every new Hosted EZ site provisions an isolated runtime and an instant HTTPS preview URL (`https://.hostedez.site`) with HTTP/3 and Brotli enabled. You can ship your first site before touching DNS. ## Prerequisites - A Hosted EZ account with an active hosting plan (**Starter**, **Business**, or **Pro**) at [app.hostedez.com](https://app.hostedez.com/dashboard). See [Plans, Storage & Add-ons](/get-started/plans-and-limits) for quotas. - For static sites: a built folder (such as `dist/`, `build/`, or `out/`) zipped into a `.zip` or `.tar.gz` archive, or an SFTP client. ## Create a site 1. **Open the New Site wizard** In the Hosted EZ dashboard at [app.hostedez.com/dashboard](https://app.hostedez.com/dashboard), open **Sites** and click **New site**. 2. **Choose a site runtime** Select one of the six runtimes: **Static Site**, **WordPress**, **Laravel**, **Drupal**, **Nextcloud**, or **Custom PHP**. Not sure which fits? Check [Choose a Site Type](/get-started/choose-a-site-type). 3. **Configure site options and launch** Enter a site name (for example, `Docs & Landing Site` or `My Bakery`) and set the runtime-specific options: - **Static Site**: toggle **SPA fallback** for client-side routers (React/Vue) or **Clean URLs** for extensionless HTML routes (Astro/Next.js). - **WordPress / Drupal / Nextcloud**: select a PHP version (`8.5` default, `8.4`, or `8.3`) and optional admin username/email. Hosted EZ auto-provisions an isolated MariaDB database and generates secure admin credentials. - **Laravel / Custom PHP**: select a PHP version and optionally check **Include MariaDB database** (Laravel). Click **Create site**. Provisioning completes in seconds for static sites and under a minute for full CMS installs. ## Deploy your content Choose the tab matching your site type: ### Static Site 1. Package your built output directory locally: ```bash npm run build zip -r dist.zip dist/ ``` Hosted EZ automatically strips a single top-level wrapper directory (like `dist/` or `out/`), so `dist/index.html` lands cleanly at the web root. 2. Open your site in the dashboard and select the **Deployments** tab. 3. Drag and drop `dist.zip` into the upload area, add an optional release note, and click **Deploy**. 4. Click your `.hostedez.site` preview URL to verify the live release. ### WordPress 1. Open your new WordPress site's **Overview** tab and wait for the **WordPress Admin** card status to change from **Installing** to **Installed**. 2. Click **Reveal password** to copy your generated WordPress admin password. 3. Click **Open WP Admin** to sign in at `https://.hostedez.site/wp-admin`. Full-page caching, APCu object caching, and background systemd WP-Cron are already active. See the [WordPress deploy guide](/deploy/wordpress). ### Laravel / PHP 1. Open your site's **SFTP** tab and add your SSH public key (for example `~/.ssh/id_ed25519.pub`) or generate a one-time SFTP password. 2. Upload your project into `public_html/` via `sftp.hostedez.com:22` (Laravel serves `public_html/public`; Custom PHP serves `public_html`). 3. Open the **Terminal** tab in the dashboard to run `composer install --no-dev`, `artisan migrate --force`, or `artisan optimize`. See the [Laravel deploy guide](/deploy/laravel) and [SFTP & GitHub Actions](/deploy/sftp-and-github-actions). ## Next steps - [Connect a Custom Domain](/domains/connect-custom-domain) — Point your domain and enable automatic TLS 1.3 + HTTP/3 certificates. - [Automate with GitHub Actions](/deploy/sftp-and-github-actions) — Deploy automatically on every push to main using SFTP and SSH keys. - [Use Hosted EZ from AI Agents](/automation/mcp-server) — Connect Claude Code, Cursor, or Codex to the Hosted EZ MCP Server. - [Configure Staging & Backups](/operations/staging-and-rollbacks) — Clone to staging before pushing changes live and manage automated snapshots. # Backups & Restore > Configure automated daily or hourly offsite backups, create on-demand snapshots, download .tar.zst archives, and run selective restores with pre-restore safety snapshots. Source: https://docs.hostedez.com/operations/backups-and-restore/ · Markdown: https://docs.hostedez.com/operations/backups-and-restore/index.md Hosted EZ automatically backs up every site to offsite object storage as compressed `.tar.zst` (Zstandard) archives with SHA-256 checksum verification. You can also take on-demand snapshots before major changes, download archives for offline storage, and restore files and databases selectively. ## Automated Backup Schedules & Retention Your automated backup cadence and retention window depend on your plan and add-ons: | Tier | Automated Schedule | Retention Window | | --- | --- | --- | | **Starter & Business** | Daily | 7 days | | **Pro plan** *(or Hourly Backups add-on)* | Hourly | 30 days | You can view your site's active schedule, retention window, and next scheduled backup time on the **Backups** tab of any site in `app.hostedez.com`. > **One backup or restore at a time** > > Only one backup or restore operation can run per site at a time. Backups cannot be started while a site is still being created, suspended, or deleted. ## Create an On-Demand Backup Before updating plugins, running database migrations, or pushing structural changes, take a manual snapshot: 1. **Open the Backups tab** Select your site in the Hosted EZ dashboard and open **Backups**. 2. **Choose backup contents and label** Click **Create backup**. Add an optional label (up to 80 characters, such as `pre-upgrade`) and choose whether to include **Site files**, **Database**, or both. 3. **Wait for Ready status** Backups run asynchronously in the background. Once complete, the backup status updates to **Ready** with its compressed size, uncompressed size, and SHA-256 checksum. For **Static sites**, there is no MariaDB database, so backups always include **Site files** only. ## Restore a Backup Restoring a backup replaces your site's current files and/or linked MariaDB database with the snapshot's contents. ### Automatic pre-restore safety snapshot Before Hosted EZ overwrites your live files or database during a restore, it automatically takes a **pre-restore safety backup** of your site's current state. If you restore the wrong snapshot or need to recover recent changes, you can restore back to that safety snapshot from the same **Backups** list. ### Selective files or database restore 1. Open your site's **Backups** tab and locate a backup in **Ready** status. 2. Click **Restore**. 3. Choose what to restore (limited to what the archive contains): - **Restore files**: Replaces files in your site directory. - **Restore database** *(PHP/CMS sites with a database snapshot)*: Replaces your linked MariaDB database with the backed-up dump. 4. Confirm the restore. The restore runs asynchronously and updates the backup's **Last restored** timestamp upon completion. > **Static site restores** > > Static site backups contain files only; you must leave **Restore files** enabled when restoring a static site backup. ## Download & Verify Backup Archives You can download any **Ready** backup directly from the dashboard as a `.tar.zst` archive (`-.tar.zst`). Downloads stream directly from Hosted EZ with an `X-Content-SHA256` response header matching the checksum recorded on the backup. To inspect or extract a downloaded archive locally: ```bash # Verify integrity (macOS / Linux) shasum -a 256 my-site-bkp_01abc.tar.zst # Extract with tar + zstd tar --zstd -xvf my-site-bkp_01abc.tar.zst ``` ## Delete a Backup Click **Delete** on any backup in the **Backups** tab to permanently remove the backup record and its offsite `.tar.zst` archive. Backups cannot be deleted while they are actively being created or restored. ## Automating Backups with MCP AI agents connected to the [Hosted EZ MCP Server](/automation/mcp-server) can manage backups programmatically: | Task | MCP Tool | Scope | | --- | --- | --- | | List backups and retention policy | `list_site_backups` | `sites:read` | | Start an on-demand backup | `create_site_backup` | `sites:write` | | Restore a ready backup (`confirm: true`) | `restore_site_backup` | `sites:write` | | Permanently delete a backup | `delete_site_backup` | `sites:write` | Because backups run asynchronously, poll `list_site_backups` after calling `create_site_backup` until the backup status reaches `ready`. # Cron Jobs > Schedule automated UTC cron commands on PHP and CMS sites, inspect managed app crons, trigger manual runs, and review captured run output. Source: https://docs.hostedez.com/operations/cron-jobs/ · Markdown: https://docs.hostedez.com/operations/cron-jobs/index.md Hosted EZ provides a built-in scheduler for **PHP and CMS sites** (WordPress, Laravel, Drupal, Nextcloud, and Custom PHP). Jobs run inside your site's isolated sandbox with configurable timeouts, manual test triggers, and run output logs. > **PHP and CMS sites only** > > Cron jobs are available on WordPress, Laravel, Drupal, Nextcloud, and Custom PHP sites. **Static sites** do not execute server-side code and do not have a Cron tab. ## Managed App Crons (Built-In) For managed CMS applications, Hosted EZ automatically provisions and runs the standard background scheduler—you do not need to recreate these as custom cron jobs: | Application | Built-In Job | Schedule (UTC) | Command | Timeout | | --- | --- | --- | --- | --- | | **WordPress** | WordPress WP-Cron | `*/5 * * * *` (every 5 min) | `wp cron event run --due-now` | 120s | | **Nextcloud** | Nextcloud Cron | `*/5 * * * *` (every 5 min) | `php cron.php` | 120s | | **Drupal** | Drupal Cron | `*/15 * * * *` (every 15 min) | `php vendor/bin/drush.php --root=web core:cron --quiet` | 120s | Managed app crons are displayed in a dedicated **Built-in jobs** section on your site's **Cron** tab with their next scheduled UTC execution time. ## Create a Custom Cron Job 1. **Open the Cron tab** In `app.hostedez.com`, select your PHP or CMS site and click **Cron**. 2. **Enter name and schedule** Click **Add cron job**, enter a descriptive name (up to 80 characters), and select a preset or enter a standard 5-field cron expression (`minute hour day-of-month month day-of-week`). All schedules evaluate in **UTC**. 3. **Set the command and timeout** Enter a single-line command (up to 1,024 bytes) such as `php artisan schedule:run` or `wp cache flush`, choose a timeout between **5 and 300 seconds** (default **120 seconds**), and save. ### Common schedule presets (UTC) | Preset | Expression | Description | | --- | --- | --- | | Every minute | `* * * * *` | Minimum supported interval (60 seconds) | | Every 5 minutes | `*/5 * * * *` | Frequent queue or sync workers | | Every 15 minutes | `*/15 * * * *` | Periodic maintenance | | Hourly | `0 * * * *` | Top of every hour (UTC) | | Daily at midnight | `0 0 * * *` | 00:00 UTC every day | | Weekly (Sunday) | `0 0 * * 0` | 00:00 UTC every Sunday | ### Example Laravel scheduler command If you run a Laravel site, add a single custom cron job running every minute (`* * * * *`): ```bash php artisan schedule:run ``` ## Trigger Manual Runs & Inspect Run Logs - **Run now**: Click **Run now** on any custom cron job to execute it immediately without waiting for its next UTC tick. Manual runs are rate-limited to **10 runs per minute** per site. - **Pause or resume**: Toggle a job's **Enabled** switch to pause scheduled execution without deleting the job. - **Run history**: Click any job to inspect its execution log. Each run records its trigger (`scheduled` or `manual`), status, exit code, duration in milliseconds, start/finish timestamps, and captured stdout/stderr output. ## Limits & Quotas | Limit | Value | | --- | --- | | Timezone | `UTC` (all schedules) | | Maximum custom cron jobs per site | `20` | | Minimum schedule interval | `60` seconds (`* * * * *`) | | Execution timeout range | `5` – `300` seconds (default `120`s) | | Maximum job name length | `80` characters | | Maximum command length | `1,024` bytes (single line) | | Retained run history per job | Last `20` runs | | Captured output per run | Up to `16 KiB` (tail retained if truncated) | | Manual trigger rate limit | `10` runs/minute per site | # Logs & Metrics > Stream real-time Access, Error, and PHP logs with structured filtering, and inspect CPU, memory, bandwidth, and HTTP status metrics across 1h to 30d windows. Source: https://docs.hostedez.com/operations/logs-and-metrics/ · Markdown: https://docs.hostedez.com/operations/logs-and-metrics/index.md Every Hosted EZ site includes real-time log streaming and historical resource metrics under the **Logs & Metrics** tab in `app.hostedez.com`. ## Real-Time Site Logs Hosted EZ tails your site's server logs live with chronological interleaving across streams and cursor-based incremental polling. ### Available log sources | Source | Description | Static Sites | PHP / CMS Sites | | --- | --- | --- | --- | | **All** (`all`) | Interleaved timeline of all active log streams for the site | Yes | Yes | | **Access** (`access`) | Structured HTTP request logs (method, URI, host, status, bytes sent, duration in ms, cache status, client IP) | Yes | Yes | | **Error** (`error`) | Web server error and warning logs | Yes | Yes | | **PHP** (`php`) | PHP error log, PHP-FPM pool messages, and PHP slow-request logs | No | Yes | > **Static sites omit PHP logs** > > Static sites are served directly by nginx with zero PHP execution, so the **PHP** log stream is automatically hidden in the dashboard for static sites. ### Filtering and searching logs Use the toolbar at the top of the log viewer to narrow down issues: - **Source selector**: Switch between `All`, `Access`, `Error`, and (on PHP/CMS sites) `PHP`. - **Severity level**: Filter to `info`, `warn`, or `error`. Access log requests automatically map `2xx`/`3xx` to `info`, `4xx` to `warn`, and `5xx` to `error`. - **HTTP status filter**: Filter access log entries by status class (`2xx`, `3xx`, `4xx`, `5xx`) or an exact 3-digit HTTP status code (such as `404` or `502`). - **Text search**: Case-insensitive substring search across log messages and raw lines (up to 128 characters). ### Rate limits and rotation - Log tail polling is rate-limited to **60 requests per minute** per user and site. If exceeded, the API returns HTTP `429` with a `Retry-After` header. - Signed cursors track file inode and byte offset across log rotations. When a log file rotates on disk, the viewer automatically resets cleanly to the new file. ## Resource & Traffic Metrics The **Metrics** section charts your site's runtime resource consumption and HTTP traffic alongside your plan limits. ### Time ranges Switch between four built-in time windows: - **`1h`** — High-resolution recent activity for live troubleshooting and launch checks. - **`24h`** — Default daily view for spotting traffic spikes or recurring cron load. - **`7d`** — Weekly trend view. - **`30d`** — Monthly capacity and bandwidth review. ### Charts and plan limits Metrics include both summary totals and time-bucketed series compared against your active plan caps: - **CPU usage**: Measured against your plan's CPU quota percentage. - **Memory usage**: Measured against your plan's per-site memory limit (`memoryMaxBytes`). - **Bandwidth & egress**: Outbound bytes transferred and egress rate limit (`egressRateMbps`). - **HTTP responses**: Request volume and status code distribution (`2xx`, `3xx`, `4xx`, `5xx`). > **Troubleshooting high CPU or 5xx spikes** > > If you see a spike in `5xx` responses or CPU utilization on a PHP/CMS site, switch to the **PHP** and **Error** log streams for the same timestamp window, or review recent runs on the [Cron Jobs](/operations/cron-jobs) tab and [Caching & CDN](/domains/caching-and-cdn) settings. # Malware Scanner & Account Security > Scan PHP and CMS sites for malware with quarantine, restore, and ignore controls, and secure your Hosted EZ account with 2FA, passkeys, and team roles. Source: https://docs.hostedez.com/operations/malware-scanner-and-security/ · Markdown: https://docs.hostedez.com/operations/malware-scanner-and-security/index.md Hosted EZ protects both your hosted applications and your account access with per-site malware scanning, two-factor authentication (TOTP), passkeys, and role-based team workspaces. ## Per-Site Malware Scanner Every **PHP and CMS site** (WordPress, Laravel, Drupal, Nextcloud, and Custom PHP) includes an integrated malware scanner under the site's **Security** tab. > **PHP and CMS sites only** > > The Malware Scanner is designed for server-side PHP and CMS workloads. **Static sites** do not run PHP or writable server-side plugins and do not display the Security scanner tab. ### Automated nightly & on-demand scans - **Nightly scans**: Enabled automatically on every PHP/CMS site to detect webshells, injected PHP backdoors, obfuscated payloads, and suspicious modifications. - **WordPress core integrity**: On WordPress sites, each scan also verifies core WordPress files and reports `wpCoreStatus`. - **Manual on-demand scans**: Click **Run scan now** on the **Security** tab to trigger an immediate scan. Only one scan can run at a time per site, and manual scans are rate-limited to **6 scans per hour per site**. ### Review and remediate findings Each finding lists the relative file path inside your site, severity (`critical` or `warning`), rule category, rule ID, file size, and SHA-256 hash. Hosted EZ provides three non-destructive remediation actions: | Action | Behavior | When to Use | | --- | --- | --- | | **Quarantine** | Moves an **active** file out of your live webroot into isolated storage (verifying its SHA-256 hash matches the scanned file). | Confirmed malware, webshells, or injected files you want neutralized immediately. | | **Restore** | Restores a **quarantined** file back to its original path, with an optional toggle to also **ignore** its SHA-256 hash on future scans. | A quarantined file turned out to be a false positive or needed by a custom plugin. | | **Ignore / Unignore** | Marks an active finding's exact **SHA-256 hash** as ignored (with an optional reason up to 200 characters). If the file's contents later change, its hash changes and it will be flagged again. | Audited custom scripts or legitimate obfuscated vendor libraries. | > **Restoring before ignoring** > > Quarantined findings must be **restored** before they can be marked as ignored, or you can enable the **also ignore** option during restore. ## Account Security Manage personal sign-in security from **Account** (`/account`) → **Security & passkeys** in `app.hostedez.com`: ### Two-Factor Authentication (TOTP) Enable time-based one-time password (TOTP) two-factor authentication using any standard authenticator app (such as 1Password, Authy, Google Authenticator, or Apple Passwords). Once enabled, password sign-ins prompt for a 6-digit TOTP code before granting access to the dashboard or MCP OAuth consent screens. ### Passkeys (WebAuthn) Register one or more hardware security keys or platform passkeys (Touch ID, Face ID, Windows Hello, YubiKey) to sign in to Hosted EZ passwordlessly. You can view and revoke registered passkeys at any time from **Security & passkeys**. ### Password changes & session revocation Changing your password from **Account** requires your current password and a new password of at least **8 characters**. Updating your password automatically signs out all other active sessions. ## Organizations & Team Roles Collaborate with teammates under **Account** → **Team & organization** (`/account/team`): | Role | Capabilities | | --- | --- | | **Owner** | Full control over the workspace, sites, domains, email, databases, billing, and team membership. | | **Admin** | Manage sites, infrastructure settings, and invite or manage team members. | | **Member** | Access workspace resources without administrative team-management privileges. | Owners and Admins can invite teammates directly from `/account/team` (or via the dashboard command palette). Use the organization switcher in the dashboard header to move between personal and team workspaces. # Staging Environments & Rollbacks > Clone live sites into isolated staging environments, selectively push files or databases to live, and roll back static site releases atomically. Source: https://docs.hostedez.com/operations/staging-and-rollbacks/ · Markdown: https://docs.hostedez.com/operations/staging-and-rollbacks/index.md Hosted EZ provides two safe-release workflows depending on your site type: - **1-Click Staging Environments** (Business and Pro plans): Clone any live site into an isolated staging URL (`staging-.hostedez.site`), test changes safely, and push files and/or database updates to live. - **Atomic Release Rollbacks** (Static sites, all plans): Every archive deployment is stored as a versioned snapshot (up to 10 retained releases) so you can revert to a previous build in one click. ## 1-Click Staging Environments Staging clones run on the same hosting node as your live site for fast local file copies and isolated runtime execution. Each live site can have one active staging clone at a time. > **Plan availability** > > Staging environments are included on the **Business** and **Pro** plans. You cannot create a staging clone of another staging clone, or create staging while the live site is suspended or deleting. ### Create a staging clone 1. **Open the Staging tab** In the [Hosted EZ dashboard](https://app.hostedez.com), open your live site and select **Staging**. 2. **Create the staging environment** Click **Create staging environment**. Hosted EZ provisions an isolated clone at `https://staging-.hostedez.site` with automatic HTTPS. 3. **Wait for files and database sync** Hosted EZ copies your site's files onto the staging environment. For PHP and CMS sites with a linked MariaDB database (WordPress, Drupal, Nextcloud, or Laravel with database), Hosted EZ also provisions a dedicated staging database and clones the live tables into it. For **WordPress** sites, Hosted EZ automatically updates the staging `wp-config.php` to point at the staging database credentials and rewrites `WP_HOME`, `WP_SITEURL`, and database URLs to the staging preview URL while preserving your table prefix, authentication salts, and custom constants. ### Push staging changes to live When you are ready to ship your tested changes: 1. Open the **live parent site's** **Staging** tab and click **Push to Live**. 2. Choose what to promote: - **Site files**: Copies `public_html` from staging to live. For WordPress sites, your live `wp-config.php` is preserved automatically so live database credentials and site URLs stay intact. - **Database** *(PHP/CMS sites with a linked database)*: Clones the staging MariaDB database back into your live database and rewrites staging URLs back to your live site URL. 3. Confirm the push. Hosted EZ automatically purges your live site's page cache, APCu object cache, and Global Edge CDN cache (when enabled) so visitors see the updated release immediately. > **Take a backup before pushing a database** > > Pushing the staging database overwrites your live database. If your live site receives customer orders, form submissions, or comments while you work in staging, create an [on-demand backup](/operations/backups-and-restore) first or push **files only**. ### Staging behavior on Static sites Static sites support staging clones for previewing updated HTML/CSS/JS bundles before replacing production: - Creating staging copies your static site files to `https://staging-.hostedez.site`. - Because static sites do not have a MariaDB database, **Push to Live** always promotes **files only** (`includeFiles` must be enabled). ### Delete a staging environment When you no longer need a staging clone, click **Delete staging** on the live site's **Staging** tab. Deleting staging permanently removes the staging files, its cloned staging MariaDB database (if any), and the `staging-.hostedez.site` preview hostname without affecting your live site. ## Atomic Rollbacks for Static Sites For static sites deployed via versioned archives (`.zip`, `.tar.gz`, or `.tgz`), Hosted EZ keeps up to **10 retained deployment snapshots** so you can recover from a bad release without waiting for a rebuild or re-upload. ### Roll back to a previous release 1. Open your static site in the dashboard and select **Deployments**. 2. Find any prior release marked **Retained** in the deployment history table. 3. Click **Rollback** and optionally add a release note explaining the rollback. 4. Hosted EZ atomically switches traffic back to that snapshot, records a new active deployment version pointing to the restored release, and automatically purges the Global Edge CDN cache if CDN is active. See [Deploy Static Sites](/deploy/static-sites) for archive size limits (`100 MiB` archive, `512 MiB` extracted, `20,000` files) and deployment options. ## Automating Staging & Rollbacks with MCP You can manage staging and static rollbacks from an AI coding agent via the [Hosted EZ MCP Server](/automation/mcp-server): | Task | MCP Tool | Scope | | --- | --- | --- | | Inspect staging status | `get_staging_site` | `sites:read` | | Create a staging clone | `create_staging_site` | `sites:write` | | Push files and/or DB to live | `push_staging_to_live` | `sites:write` | | Delete a staging clone | `delete_staging_site` | `sites:write` | | List static releases | `list_site_deployments` | `sites:read` | | Roll back a static release | `rollback_site_deployment` | `sites:write` |