New in 1.0: partner licences with Stable and LTS updates, webmail and Files, and alerts on WhatsApp.Changelog
Changelog

Changelog, page 9 of 11

Every change to Hfog Panel, Hfog Local, Hfog Connect and Hfog Remote, newest first.

Upgrade notes and known issues are in the release notes.

Latest changes (continued)

Short panel badges; Mail and Files without "HF"

  • The panels' badges (top left) are now SA (Server Admin), RP (Reseller Panel), CP (Control Panel) and HQ; their full names stay on sign-in pages, menus, the docs and the website, so new customers always see clear words.
  • Hfog Mail is now Mail and Hfog Files is now Files — in the panels, the apps, emails, the docs, the website and every language (the one text that became the same as an existing one, "Files", now uses that one's translations). DB Studio and Hfog Server keep their names.

Super Admin is now called HQ

  • The publisher's own panel is named HQ (at hq.<domain>; badge "HQ", "Sign in to HQ"), so its name matches its address and is never mistaken for Server Admin. Renamed in the panel, its messages, the agent and DNS list, the docs and project files, in all languages. Internal names (superadmin-… screens, portal "super") are unchanged.

HQ's address: hq.<domain>

  • HQ's default address is now hq.<domain> (hq.hostfog.io on the official server) instead of sup.: clearer, and no common target like admin.. The official install, hfog-agent super-portal on, the DNS record list, the docs and the tests use it; a server can still choose another name with hfog-agent super-portal on NAME.

The official server: the business in HQ, the server in Server Admin

  • HQ's menu: Licences (Licence server, Licence keys, Plans & pricing, Customers, Announcements, Partners) · Servers (Licensed servers, Installs, Downloads, Releases) · Money (Payments, Payment settings, Discount codes) · Customer care (Support tickets, Live chat, Help articles, Data requests, Status page) · Help (Trash, Help). The hosting Business overview is no longer in it.
  • Server Admin on the official server (with HQ's address) is the server only: the screens moved to HQ and the hosting-business ones the official server doesn't use (Business overview, Tax & currencies, Unpaid invoices, Quotes & credit, Affiliates, Domain sales, Licence) are not in its menu (officialServerAdminMenu). Payment settings, Discount codes and the Status page also answer only on HQ; support, chat, help articles and data requests stay open to resellers and customers.
  • Licensed servers (third parties): unchanged.
  • Test: TestSuperPortal (HQ's new menu; Server Admin without the moved and hidden screens but with its own; Payment settings refused on srv., support tickets not). Two new menu labels in all languages.

HQ › Payments and Releases

  • Payments: a payment ledger (lic_payments) records every licence and partner payment taken or failed, from the Stripe (invoice.paid, invoice.payment_failed) and PayPal (PAYMENT.SALE.COMPLETED, BILLING.SUBSCRIPTION.PAYMENT.FAILED) webhooks — once each, however often a webhook comes again (svc_lic_payments.go). The screen shows what came in this month and in 30 days, failed payments, the licences overdue now (with how they pay), and every payment with filters (paid / failed, Stripe / PayPal, key or email).
  • Releases: every paid-edition installer uploaded is kept (the last 10 per channel, lic_releases, licence/releases/). Per channel (Stable, LTS) the screen shows the release servers get now and the earlier ones; Roll back to this makes an earlier one current again — its exact file, version, checksum and notes — so every server of that channel updates to it; Delete removes a kept one that is not current. Uploading stays under Licence keys (a button links there).
  • Tests: TestSuperAdminPayments (a Stripe payment through the webhook handler, recorded once though sent twice; a failed one; totals, overdue, filter; a PayPal sale once), TestSuperAdminReleases (kept, rolled back to the exact file and settings, current not deletable, last 10 kept). Both screens built and opened in a browser (no errors). 32 new texts in all languages.

Code review and clean-up

  • Removed 25 Go functions nothing used — no call, no reference, not even in a string (tests that look functions up by name were checked): old wrappers whose work moved to a newer function (OrderNew → OrderNewWith, LicOrderCheckout → LicOrderCheckoutCode, PaypalOrder → PaypalOrderIn, StagingCreate → StagingCreateWith, UiHTML → uiHTMLStatus) and helpers left behind by earlier changes (Failf, RouteGroup, ColumnValues, RowsJSON, CurPricesOf, DunningRemind, SVGLine(s), Pill, LicenceLockScreen, LicStripePrice, ListsUnsub, MalwareQuarantineRow, PaypalStatus, PortalGuard, PortalSessionName, CsrfToken, StaffReadonlyGuard, RepliesList, ReplyText). Each was found unused by two separate checks; the one import only they used (crypto/subtle in svc_lists.go) went with them, and the comments that named them now name what remains. Kept: methods that may serve an interface (the WebDAV disk, the PDF writer, the DAV store).
  • Removed 3 unused shell functions (step_number, hf_fetch, version_minor) and a comment that still referred to one; the app installers' apps2_setup_* / apps3_config_* are called by name and stay.
  • Removed the unused ServerEntry type of the desktop app.
  • React and CSS (all frontends — panel, shared, website, docs, webmail, desktop app, Files, DB Studio — 584 files): no unused import and no unused private function or constant (a name counts as used if it appears anywhere else in its file; the panel and the website also compile with noUnusedLocals / noUnusedParameters). Removed 11 style classes no code uses — signin-menu (the website's old Sign in drop-down) and btn-dark from site.css; bar-chart, bars-x, termbox, tun-os from the shared stylesheet and its two copies (panel, webmail); contacts-split, msg-actions, read-top from webmail; srv-site(s) from the desktop app. Only the dead selectors went where a rule also styles live ones. Kept classes built at run time ('l' + level in the docs). The panel's screens and the website's pages render pixel for pixel the same before and after, on desktop and phone.
  • Checked and kept: every one of the 124 shell scripts passes the syntax check; every page has a route and every interface module is imported; no exported function of any frontend is unused; both dist folders are used (packaging READMEs, the TypeScript SDK); test data .log files are needed; no backup or temporary files. Translations: none removed — texts that look unused are matched against messages the server builds at run time.
  • Checks after the clean-up: all 895 Go files well-formed, installer and agent checks, translations (0 missing), company rules (0 errors). sudo bash build.sh compiles and tests it all.

Success and error messages after actions, in every panel

  • An error for a field you can't see now shows at the top of the page. When an action failed with a field's message (FailField), the message went under that field even when the field was hidden — in a closed section, a hidden block or a display: none part — so nothing could be seen and the top of the page stayed empty. Messages now go only to a visible field; otherwise to the top (isShown, shared/lib/fieldErrors.ts).
  • Audit of every action (641, all panels): 576 confirm with a message, 41 answer with what the screen shows itself (downloads, previews, the import report, chat), the rest are meant to be quiet (signing out, Log in as, the terminal, steps that open the next page). "Forget an import" was the one that said nothing: it now says "Removed from the list." Every page sends its actions through the same handler that shows the server's messages; long jobs show theirs when the progress window closes; the page scrolls up to them; messages stay until the next action.
  • Tests: fieldErrors.test.tsx (inputs in a closed section, a hidden block or display: none count as missing; a visible one and a checkbox take their message; opening the section shows it again) — also run in a real browser here. Checked in the built interface: Check now, Restart, Restore and Refresh usage show their message, also after scrolling down a long page, on desktop and phone.

WhatsApp alerts

  • Notifications › WhatsApp: a sixth channel next to email, webhook, Slack, Telegram and Discord — in every panel's Notifications screen (Control Panel, Reseller Panel, Server Admin), switched on by default where all kinds are allowed. It sends through Meta's WhatsApp Cloud API with the business phone number ID, a permanent access token (kept sealed like the other channels' secrets, sent only as a Bearer header) and the number that gets the alerts (written with + and spaces, kept as digits). Without a template it sends a plain message, which WhatsApp delivers within 24 hours of the person last writing to the business number; with an approved message template (name and language) the alert goes in its one variable {{1}}, on one line and at most 1000 characters, and always arrives. Graph API v25.0 by default; the setting whatsapp_api_version takes a newer one without an update when Meta retires it (svc_alerts_send.go). The API's notification-channel fields and the three Notifications docs pages (with the 24-hour rule) include it.
  • Test: TestAlertsWhatsApp (the settings check, a text message to /v25.0/<phone id>/messages with the Bearer token, a template message, the version setting). 13 new texts in all languages (0 missing).

Reseller welcome email, every screen on a phone, moving a whole server

  • Reseller Panel › My brand › Welcome email: a reseller writes the subject and opening its new customers get, with {username} and {brand} filled in (its brand name when white label is on); the panel still adds the sign-in address, the password link and the DNS settings after it, so they can't be lost. An empty message goes back to the standard email (reseller_profiles.welcome_subject/welcome_intro, ResellerWelcome).
  • Every screen on a phone: all 154 screens of Server Admin, Reseller Panel, Control Panel and HQ opened at 390px — none wider than the screen. On touch screens, small buttons, copy buttons, one-line fields, dropdowns (also the Accounts bulk bar's) and icon buttons are now 40px tall (finger-sized); desktop is unchanged.
  • Moving a whole server: every account moves with Bulk changes › all accounts › Move to another server — and now at most two moves run at a time, the others wait their turn (moveTurn: one atomic claim, moves.started_at; a move started over 6 hours ago is taken as stalled). Before, each queued move started at once, so moving a whole server would have run them all together. Move accounts explains it in a new "Move the whole server" card with a link to Bulk changes; the new status "Starting" is shown while a move takes its turn.
  • Tests: TestResellerWelcomeEmail, TestMoveQueue. 14 new texts in all languages (0 missing).

HQ › Announcements, revenue figures, and "Sign out everywhere else"

  • HQ › Announcements: one email to licence holders — everyone with a working licence, paying ones, trials, partners, partners on LTS, or the website's confirmed accounts (each with its count). Each address gets it once (any case); Send me a test first; Send to N asks to confirm the number; only emails actually handed over are counted; a line saying why the reader gets it is added; what was sent is listed (lic_announcements, screen_superadmin_announce.go).
  • Revenue on HQ's overview: churn (paid licences that ended in the last 30 days, as a share of those paying), trial to paid (trials that ended 30–90 days ago and are paid now) and the monthly revenue of the last 12 months as bars, recorded by the nightly run (lic_mrr, svc_revenue.go).
  • Password & security › Other sign-ins › Sign out everywhere else: every other browser and device of the login is signed out at its next click; this one stays (profile action signout_others). Every sign-in was already in the audit log, with a notice for one from a new place.
  • Checked and already there: alerts to Telegram, Slack and Discord (Notifications), the Control Panel's getting-started checklist, the website health report (Site check).
  • Tests: TestSuperAdminAnnounce, TestRevenueFigures, TestSignoutOthers. The pages built and opened in a browser (no errors). 31 new texts in all languages (0 missing).

Partners: release channels (Stable / LTS) and billing by use

  • Release channels: each partner follows Stable (default) or LTS (HQ › Partners › Settings). Licence keys › upload takes the channel: the LTS installer is kept beside Stable (latest-lts, its version, time, SHA-256 and notes under lic_lts_installer_…). A partner's licences on LTS get the LTS installer from /licence/download and the LTS release from /licence/release — only once an LTS installer is uploaded; until then, and for every other licence, Stable (LicChannelOf). Panels now send their key with the release check (?key=), so the licence server knows their channel; older licence servers ignore it.
  • Billing by use: a partner can be billed for what it uses instead of a pre-paid pool — no pool, an optional cap (usage_cap; issuing past it is refused). The nightly run records each such partner's licence count (lic_partner_usage) and bills each ended month once at its peak × the tier price less the partner's discount (lic_partner_bills): a Stripe invoice (charged automatically) when the partner has a Stripe customer, otherwise "to invoice" for the publisher. Bill last month does it at once. Switching a partner to billing by use says to cancel its pool subscription so it isn't charged twice.
  • HQ › Partners: each partner's channel and billing as labels; for billing by use, the licences in use, the cap, this month's peak with an estimate, and the last bill; Settings (channel, billing, cap) opens in the row.
  • Tests: TestReleaseChannels (LTS only once uploaded; release and download follow the channel; no partner → Stable), TestPartnerUsageBilling (the cap, the nightly count, last month billed once at its peak and price, a pool partner never billed by use). The screens built and opened in a browser (no errors). 25 new texts in all languages (0 missing). Docs: the partner API.

Partners: the partner API and HQ › Partners; guides for hosting providers

  • Partner licence API (official edition): a hosting company with bulk licences issues, moves, removes and lists them from its own systems — GET /v1/licence/partner/licences, POST …/issue {email, ip}, …/move {key, ip}, …/remove {key} on api.<domain> (and /licence/api/partner/…) with Authorization: Bearer hfp_…. Only the key's SHA-256 is stored (compared in constant time); a partner reaches only its own licences (404 otherwise); the pool's limit, public IPv4 and one-licence-per-server rules apply (409 with the reason); removed licences go to HQ's Trash; 401 / 403 / 405 / 429 as documented (svc_partner_api.go; columns api_key_hash, api_key_at on lic_partners, added on update).
  • HQ › Partners: each partner's company, email, plan level, discount, pool (used of bought), status and paid-until, with New API key (shown once; the old one stops) and Revoke, and the API's address with an example (screen_superadmin_partners.go, superadmin-partners.tsx). The existing bulk discounts stay (10% from 5 servers up to 40% from 50).
  • Installation › Hosting providers: step-by-step guides for DigitalOcean, Hetzner Cloud, Vultr, OVHcloud, Contabo, AWS (EC2 and Lightsail), Akamai Cloud (Linode) and Oracle Cloud — the server to create, the provider's firewall with the exact ports, reverse DNS, outgoing port 25, then bash latest --check and the install — with an overview table. Developer docs: the partner API.
  • Tests: TestPartnerAPI (over HTTP: no or wrong key, issue until the pool is full, list, move and a move onto a licensed server, another partner's licence, remove into the trash, wrong method, revoked key). The Partners screen built and opened in a browser (no errors; fits a phone). 20 new texts in all languages (0 missing). Not built: release channels and usage-based partner billing.

HQ finished, the account's pages, payment switches, and a pre-install check

  • HQ's screens answer only on hq. (Licence keys, Plans & pricing, Licensed servers, Installs, Downloads, Customers, Trash): elsewhere a 403 that names HQ's address (superElsewhere, both API entry points). Only on the official edition once HQ has its address.
  • HQ › Customers: every account made on the website — confirmed or not, joined, last signed in, licences (all and working; opens Licence keys) — with totals, an email search (LIKE wildcards taken as text) and a confirmed filter (screen_superadmin_customers.go, superadmin-customers.tsx).
  • HQ › Trash: deleting a licence under Licence keys keeps its whole row for 30 days (lic_trash, svc_trash.go): Restore puts it back exactly (refused when its key is in use again), Delete for good, Empty the trash; older entries go by themselves. The paid edition deletes as before.
  • Stripe "Offer card payments" tick under Billing (PayPal already had one): every checkout — the order page, the licence shop, the account, invoices — offers exactly what is ticked (StripeOffered, PayMethods, BillingOn); the order page can't open with nothing ticked. Webhooks, renewals and refunds of card payments keep working with the tick off (StripeOn).
  • The account: Buy a licence in the account's frame when signed in (the Free trial's first step keeps its simple page); Payments & receipts (each licence: card, PayPal or nothing yet, price, next payment, Manage payment → the provider's page); Security (change the password: the current one first; a refusal comes back to Security).
  • bash latest --check (precheck.sh, in the release): system, x86-64, root, memory, disk, another control panel, ports 80/443/the panel's, name resolution, the public IPv4 (NAT noted), outgoing port 25 — ✔ / ! / ✘ and "ready" or "fix these first"; changes nothing. From the public installer it runs before the licence question.
  • Tests: TestSuperPortal (+ the hq.-only rule), TestPayMethodsSwitches, TestAccountTrialFirst (+ Payments & receipts, Security), TestSuperAdminCustomers, TestSuperAdminTrash. The new screens built and opened in a browser (no errors; they fit a phone). New texts in all 20 languages (check-lang: 0 missing). Project docs: PRD (the narrowed plan), ARCHITECTURE (addresses), MEMORY, TASKS.

HQ at hq.<domain> (plan step 3, first part)

  • A fourth panel for the publishing company's licence business, the official edition only: hq.<domain> on the panel's port, its own session cookie (hf_super), administrators only, with two-step sign-in by an authenticator app (refused at sign-in — password and passkey — with a clear message, and on every request: switching two-step off signs out of HQ). It looks and signs in like Server Admin under its own name, badge, tagline and points (guard.go, svc_portals.go, svc_screens.go, svc_signin.go).
  • Its menu is the licence business: Licence server, Licence keys, Plans & pricing · Licensed servers, Installs, Downloads · Business overview, Invoices, Discount codes · Help. Server Admin (srv.) loses those entries once HQ has its address (Packages goes back under Accounts; hosting billing stays); without the address nothing moves (svc_web.go).
  • The official install switches it on (portal_super = hq.<domain>; a paid-edition install clears it); hfog-agent super-portal on|off (agent super-portal-on/off, refused on a paid-edition server); the panel names, nginx, certificate and status loops and the DNS record list (hfog-dns-setup) include it.
  • Test: TestSuperPortal (the address on the official edition only, the cookie, administrators only, HQ's menu, Server Admin's menu with and without HQ's address, a paid-edition server never answering as HQ). The portals agent check passes. Docs: PRODUCTION.md, the command reference.
  • Next in step 3: the screens still answer on srv. by their direct address (only the menu moved); then HQ's own Customers, Orders, Payments (Stripe/PayPal switches), Releases, Website and Trash screens.

Website and customer account: the trial flow and the Control Panel layout (plan step 2)

  • The website's header: one Sign in button (to the account) and Free trial (to the plan step) instead of the Sign in drop-down; the partner sign-in is gone from the header, the footer, /access, Community and Pricing ("Become a partner" stays: partners go through contact, then HQ).
  • Free trial: plan → your details → the emailed code → signed in automatically. The plan step opens signed out (Sign in on it instead of an email); choosing keeps the plan in the session and asks for the account; its code signs in and goes straight on to the server step (/account?view=order&step=2) — and so does signing in, for someone who already has an account. Sign-up from the trial says it is step 2 and the trial follows.
  • The account in the Control Panel's layout (page_account_shell.go): a left menu in groups (the brand, Buy a licence, Licences, Help, Sign out at the bottom; on a phone it slides in from ☰), a top bar (where you are, who is signed in) and a page head with an icon tile.
  • Your licences as a table: summary cards (licences, active, trials, the next payment), status tabs (All / Active / Trial / Ended) and a search by key, server or plan (plain links and a GET form — no JavaScript needed), and one row per licence: key, plan with tier and what it includes ("Every feature" or N features, names on hover), status, server (IP, host name, Hfog Panel version, last check-in, or "Not installed yet"), billing (price a month and paid-up-to, trial end or end date) and Manage / Renew; active licences first. The install command is shown for a licence without a server yet.
  • Tests: TestAccountTrialFirst (the whole trial flow from signed out, then the table, its tabs and its search); the existing account tests still hold (the dashboard keeps the keys, "Every feature", the install command and Sign out). The website builds and its tests pass (13/13). Docs: licensing (Your account, The free trial).

A short licensed install command

  • The command on a licence (account page, licence emails, Server Admin) is now cd /home && curl -o latest -L https://cdn.<domain>/latest/licence/HFL-… && bash latest — the key is in the address and nothing else is needed — instead of curl -fsSL -o latest "https://api.<domain>/v1/licence/download?key=HFL-…" && sh latest --licence HFL-… (LicInstallCommand; a server without a domain of its own keeps the long form, with bash).
  • How: the download server answers /latest/licence/KEY (only a well-formed key, case-insensitive, kept out of the access log; anything else 404) by passing on to /licensed, as before. The licence server writes the licence's key into the paid installer's new line HFOG_KEY="" while serving it (licInstallerWithKey: before the package marker only, the package untouched, an older installer without the line served unchanged, an invalid key never written), and the installer hands it to install.sh as --licence — an explicit --licence still wins. make-latest.sh builds the line in.
  • Also fixed in that installer: it took a server with config.json for installed and ran an update; an installation that stopped (install-unfinished, or no administrator yet) is now carried on, as in the other installers.
  • Tested: TestLicInstallerWithKey; the key hand-over (plain bash latest, with other options, an explicit --licence, an old-style call); the download server's address rule (a valid key, lowercase, a short one, ../, the plain /latest); the website builds with the new command. Docs: licensing, the licence API, the website's Download page.
  • Note: the short command needs the paid installer from this release (with the HFOG_KEY line). The one-file setup uploads it on the licence server; until then the old installer is served and asks for the key.

The API's "Access denied" page: white, with the HF icon

  • A browser opening the API's address (api.<domain>) gets a white page with the HF mark (a small lock on its corner) instead of the dark page with a plain lock; the request ID and time sit in a light card. A white-labelled server shows only the plain lock (no HostFog mark), and so does any case where the setting can't be read — when in doubt, no brand. The page still names no product, host or client address. TestAPIHostBrowser checks every placeholder is filled, the lock without a database, and the HF mark on white for a normal server.

Keys pressed during the build or installation

  • Fixed: pressing Enter while a step's progress line was running (build.sh, install.sh) moved the cursor down, so the line was drawn again below — the same step shown two, three or four times — and the Enter was kept and answered the next question (an empty answer). Now, while a step line redraws, keys are neither shown nor read (hf_keys_quiet, logo.sh); when it stops, whatever was typed is thrown away and the terminal is as it was (hf_keys_back, also on any exit). Ctrl+C still works. Tested in a real terminal: Enter three times and stray typing during a step — the line drawn once and the next question gets only what is typed after the step (without the fix: four rows and an empty answer).

A flaky interface test made reliable

  • test/pages/licence-plans.test.tsx ("changes a licence to a custom bundle …") failed now and then when every test file ran at once on a busy machine, and passed when re-run alone: it waited one tick after "Change plan", so the dialog could still be open; the next click then reopened nothing and the test saved the still-open dialog, set to "custom". It now waits for the request, for the dialog to close, and for the reopened dialog to show the licence's own plan. The page was right: each opening builds the dialog fresh from the licence, and an open dialog covers the page for a real user.

Project cleaned

  • Go functions: none removed. A first attempt removed 34 functions a text scan found unreferenced and broke the build: the scan dropped everything after // on a line, so calls on lines with "https://…" were missed (apiHostPort, mongoURIEscape, siteCertWhy, gitRepoCreate, redirectCreate, webhookSaveAPI are used). All 29 files are back exactly as before. A correct scan still lists 32 candidates, but some tests look methods up by name (node_allow_test.go), so they are left for a compiler-checked tool (TASKS.md).
  • Build output out of the source (as .gitignore already said): the built interfaces in backend/api/web, backend/os/web, server-files/panel/public/ui and server-files/mail/public/ui (245 files, 5.5 MB) — they were older than this release's interface changes, and a build without Node.js would have shipped them silently; every build makes them from frontend/.
  • One copy of the billing modules' API client: integrations/common/HfogPanelClient.php; the WHMCS and Blesta copies are made by scripts/build/integrations.sh (sync, now creating their folders) before every test and package, and are in .gitignore.
  • An empty folder removed (frontend/files/src/ui). No unused frontend modules were found (every source file is imported). Two hand-run tools nothing pointed to are now listed in DEVELOPING (mailchain.py, make-engineering-guide.py).
  • Kept as they are, on purpose: fonts and icons in each app (each is served from its own address), test fixtures, each package's LICENSE, the website's and docs' small company.ts / env.d.ts (two separately built sites), the SDK's published dist/, test data logs.
  • ARCHITECTURE.md has the project layout as a tree.

The company's own domain as a hosting account

  • New hfog-agent company-account [USER] [EMAIL] (hfog-api admin company-account, cli_company_account.go): the panel's own domain becomes a hosting account, so the company's website files, databases and email are managed in the Control Panel like any account's (File Manager, FTP, Git, DB Studio, Email, backups). It creates the account (default username: the domain's first word, cleaned — with "web" after it when that word is reserved, as hostfog is (the panel's own system user): hostfogweb; contact webmaster@, else hostmaster@ the domain — one email per login) on the package Company (no limits, no price), or uses the account that already has the domain; the domain's server mailboxes and forwarders become the account's (companyAdopt: the same addresses, passwords and mail in /var/mail/vhosts, now listed on its Email screen; ones already listed are left alone); the DNS zone gets the panel's names as before (PanelRecordsIn). It prints the Control Panel address and the password once. Safe to run again.
  • The publisher's website moves into that account (company_website_move in hfog-agent): its files to /home/USER/web/DOMAIN/public_html, owned by the account, the website's rules (panel pages on the website's address, short redirects, caching) into the account's site, and the separate hostfog-website site removed — nginx is tested first and everything is put back if it refuses. The publisher setup then publishes later releases straight into the account (setup-template.sh), and saves the account-safe rules in /etc/hostfog/website-extra.nginx.
  • Done during the official installation: the publisher setup makes the company account right after the panel is installed and before it publishes the website, which then goes straight into the account. The summary has a COMPANY ACCOUNT block (Control Panel address, username, password once, website folder). --company-user NAME picks the username, --no-company-account skips it; a re-run or an update uses the account that already has the domain. tests/check-installer.sh checks the order.
  • Agent: an account's site includes a root-only extras file, /etc/nginx/hostfog/site-extra/USER--DOMAIN.conf, that no panel screen edits (removed with the domain).
  • Tested: TestCompanyUsername, TestCompanyAdopt (mailboxes and forwarders adopted with quota and send-only, a second run adds nothing, the Company package made once); the website move on this machine as root — accepted (files moved and owned by the account, separate site removed, rules in place) and refused (all put back); the agent checks that build account sites still pass. Docs: the command reference.

Uninstall, then install again: a clean cycle

  • Uninstall removes all of HostFog's services and service add-ons: the panel's own (hostfog-files …), customers' app services (hfog-node-*, hfog-py-*, hfog-rb-*) and the settings HostFog added to other services (php*-fpm, dovecot, pure-ftpd, httpd … *.service.d/*hostfog*.conf). Left behind, they pointed at programs and users that were gone, and a service installed again later could fail to start with them. Also HostFog's tmpfiles.d entries, and the swap setting with the swap file.
  • Uninstall ends with a check: it repairs a half-done package setup or a package source listed twice (the auto-fixer, loaded before /usr/local/hostfog is deleted) and says "Ready for a fresh installation" — or exactly what to fix first.
  • The real-server test runs the whole cycle: a new step reinstall in tests/deploy-test.sh (after uninstall) installs the customer server again on the same machine and checks: apt reads its sources, no half-done packages, no HostFog services or add-ons left, the installer finishes without needing an auto-fix for uninstall leftovers, hostfog-api runs, nginx's configuration is valid, PHP-FPM has its files and runs, every server package has its configuration files, the PHP repository is listed once, the installation isn't left unfinished, and the administrator signs in and creates an account.
  • Together with the fixes above (packages purged only when installed, folders of installed packages kept, missing configuration files restored, the PHP repository not added twice, the auto-fixer), uninstall → install again no longer leaves problems behind.

The installer's auto-fixer

  • New scripts/install/autofix.sh, used by install.sh, update.sh and the new hfog-agent autofix [LOG]. Before installing it repairs what would stop the installation: a cut-off package install (dpkg --configure -a, apt-get -f install), the same package source listed twice with different keys (HostFog's copy goes, the other stays), HostFog source files apt can't read (set aside), server packages missing their own configuration files (reinstalled with --force-confmiss), automatic updates holding the package lock (waits up to 10 minutes), a full disk (package cache, old logs, journal), under 2 GB of memory with no swap (a 2 GB swap file), no name server (public resolvers added).
  • When a step fails, the installer reads the error at the end of the log; when the auto-fixer knows it — the Signed-By conflict, a malformed source, NO_PUBKEY / EXPKEYSIG / "is not signed" (the sury PHP and Apache keys are downloaded again; the fingerprint-checked nginx, Redis, PostgreSQL and MariaDB sources are set aside for Software versions), the dpkg lock, "No space left", "not valid yet", "Temporary failure resolving", out of memory, missing configuration files — it fixes it, shows "↻ fixed, carrying on" with what it did, and continues the installation by itself (it resumes with the same answers). At most twice, so an error it can't fix still stops with the log as before.
  • It never removes or changes a package source someone else set up; each fix is listed on screen and in /var/log/hostfog-autofix.log. The one-off repairs added earlier (dpkg, missing configuration files) are part of it now.
  • Tested: 10 checks on a pretend server with apt's real messages (conflicting keys, malformed files — HostFog's set aside, others untouched —, missing keys, an unknown error not claimed, summary and log), and end to end with the real failure handler: the Signed-By conflict fixed and the installation carried on to the end with the same answers. tests/check-installer.sh checks the wiring. Docs: the install guide ("When something stops the installation") and the command reference (hfog-agent autofix).

Fixed: hfog-agent uninstall left server software without its configuration files

  • The cause: the uninstall removed the server software with one apt-get purge listing every package HostFog may install. When one name doesn't exist on the system — ferretdb isn't in Debian's own archive — apt refuses the whole command and removes nothing (the error was hidden). The "all remaining data" step then deleted /etc/php, /etc/nginx, /etc/mysql, /etc/dovecot, /etc/bind … under packages that were still installed, and the next installation found e.g. php-fpm8.4 without /etc/php/8.4/fpm/php-fpm.conf (apt never puts deleted configuration files back), so PHP-FPM wouldn't start.
  • Uninstall now purges only the packages that are really installed (looked up with dpkg-query, glob names included), says so when a removal fails (log: /var/log/hostfog-uninstall-apt.log) instead of hiding it, and deletes a folder only when no installed package still owns it (rm_unowned; kept ones are listed).
  • Install after an uninstall stopped with "Conflicting values set for option Signed-By regarding source https://packages.sury.org/php/": the extra PHP versions repository was set up a second time (HostFog's php.list, key deb.sury.org-php.gpg) next to one set up separately with its own key (debsuryorg-archive-keyring.gpg, sury's own script), and apt refused to read any source. The installer now uses a sury source that is already there and removes its own duplicate — before apt's first update too, so a re-run gets past it (hf_apt_sury_dedupe). Tested with HostFog's source alone (kept), both (HostFog's removed), the other alone (untouched).
  • Install now finds installed server packages that lack some of their own configuration files — a server cleaned by the old uninstall — and reinstalls them with --force-confmiss before installing (nginx, Apache, PHP, MariaDB, Postfix, Dovecot, BIND, Pure-FTPd, fail2ban, Redis, PostgreSQL …).
  • Tested: an unknown package name no longer stops the removal; a folder an installed package owns is kept; on sample dpkg data only the package missing its files is reinstalled (a healthy one, an unrelated one, a removed one and an obsolete file are left alone); real dpkg data parses. tests/check-installer.sh checks all three.
  • Every page's title leads with what people search for and ends with the brand, in 45–60 characters (Google shows about 60): "Web Hosting Control Panel for Linux Servers", "Hosting Panel Pricing from £5.00 a Month", "Free Local Web Server for Windows, macOS & Linux", "Install a Hosting Control Panel in One Command" … The price and the trial length still come from site.json.
  • Every description says what the page offers and why to click, in 135–157 characters (Google cuts at about 160).
  • New tags: keywords per page (keywords in pages/types.ts; never another product's name — RULES.md, rule 3), robots (index, follow, max-image-preview:large; the 404 page noindex), og:locale, the share image's size and alt text, and X (Twitter) title, description and image, so links shared in chats and social media show a full card.
  • Checked on the built site: lengths, no other product named, the social tags present; the site's tests pass (13/13).

An interrupted installation is resumed, not "updated"

  • Fixed: if the SSH connection or the internet dropped during an installation, running the installer again took the server for an installed one (its settings file is written early) and ran an update — which never asks for the admin login and leaves out what the install hadn't reached yet (mail, PostgreSQL …).
  • Now install.sh keeps its answers in /etc/hostfog/install-unfinished (root only) before its first change and removes the file only at its very end. Run again — the same command, or install.sh without options — it says "Resuming the installation that was interrupted", carries on with the same answers (domain, email, company, options), checks the finished steps quickly, does the rest and asks for the admin login. update.sh refuses such a server and says to run install.sh; get.sh / latest and the one-file installer run install.sh again for it, the one-file installer with the domain and email it was given ("Finishing the installation of Hfog Panel"). A server that stopped before this mark existed is recognised too: Hfog Panel's files are there but no administrator yet (the admin login is the installation's last step).
  • tests/check-installer.sh: the answers are kept before the first step and removed at the very end, a run without options reads them back, update.sh refuses, get.sh and the one-file installer resume; the saved answers come back as the same arguments (spaces kept). Proven to fail when the clean-up or the update.sh guard is removed.
  • Half-installed packages after a disconnect: if the connection dropped while apt was installing, a package could be left without its configuration files (seen: php-fpm8.4 there, /etc/php/8.4/fpm/php-fpm.conf missing, so PHP-FPM wouldn't start). A resumed installation now first finishes what dpkg left half-done (dpkg --configure -a, apt-get -f install), and the PHP step puts back the configuration files of any PHP version that lacks them (reinstall with --force-confmiss; Debian and Ubuntu). Tested on a pretend system: only the broken version is repaired, the installer carries on.
  • The setup summary: the footer said hfog-server help (now hfog-agent help); the API was shown as https://api.<domain>:443/v1 (now without :443).
  • Plain errors from hfog-api commands: a failing command printed "PHP Fatal error: Uncaught AgentError: …", a leftover wording from the PHP era that sent people looking for a PHP problem; it now prints "Error: …" (the program is Go).
  • Docs: "If the connection drops during the installation" (installation guide, with screen / tmux), and the production guide.

An interrupted installation is resumed, not "updated"

  • The problem: when SSH or the internet dropped during an installation, running the installer again showed "Updating Hfog Panel" and "successful", but the steps after the stop (mail, PostgreSQL …) were never done and no admin login was asked for. The one-file installer and get.sh took the server for an installed one as soon as /etc/hostfog/config.json existed — which install.sh writes early.
  • Now: install.sh keeps its answers in /etc/hostfog/install-unfinished (root only, one per line) before its first change and removes the file only at its very end. Run again without options it carries on with the same answers ("Resuming the installation that was interrupted…"): finished steps are checked quickly, the rest are done, and it asks for the admin login. The one-file installer ("Finishing the installation of Hfog Panel …", the domain and email read back) and get.sh run install.sh again for such a server; update.sh refuses it and says how to finish. A server that stopped before this release (no mark) is recognised too: Hfog Panel's files are there but it has no administrator yet.
  • Also from that output: the command line printed its errors as "PHP Fatal error: Uncaught AgentError: …" — a wording left from the PHP version; it now prints "Error: mail is not installed on this server" (cli.go). The setup summary said hfog-server help (now hfog-agent help) and showed the API as https://api.<domain>:443/v1 (now without :443).
  • Checks in tests/check-installer.sh (the mark is kept before the first step and removed at the very end, the answers come back as the same arguments, update.sh refuses, get.sh and the one-file installer resume); proved to fail when the fix is taken out. Install docs: "If the connection drops during the installation" (and screen / tmux).

Live server figures

  • Server › Resource usage opens with a Live card: CPU, memory, load (with the number of CPUs), network in / out and disk read / write, and a chart of CPU and memory over the last 5 minutes, all updated every 2 seconds. Point at the chart to read a moment; Pause holds the figures. The administrator's Overview has the same card without network and disk. The card reads only while its tab is visible and asks only for readings it doesn't have; with reduced motion nothing animates.
  • How it is measured (internal/panel/live_stats.go): hfog-api reads Linux's own counters — /proc/stat, /proc/meminfo, /proc/loadavg, /proc/net/dev and /proc/diskstats (whole disks only, so partitions aren't counted twice; loopback left out) — every 2 seconds into a 5-minute buffer. It needs no agent and no root, starts when someone opens the card and stops after 5 minutes without a viewer, so an unwatched server pays nothing. A counter that goes back (a reboot) gives 0, never a spike. The figures come from the same administrator-only route, GET /api/v1/monitor?live=1&since=<ms>; resellers and customers don't get them. A system without /proc answers available: false and the card says so.
  • Tests: TestLiveParsers, TestLiveSampler, TestLiveRoute (Go); test/liveStats.test.tsx (figures, since=, Pause, the dashboard form, the unavailable case). 9 new texts in 20 languages; the Resource usage and Overview docs explain each figure.

Project documents

  • Six short documents next to CLAUDE.md, linked from it: ARCHITECTURE.md (products, the request path, addresses, data, editions, frontends, Hfog Server, build and release, test layers), DESIGN.md (brand, tokens, layout, components, behaviour, writing), PRD.md (vision, users, requirements per product, pricing, non-functional requirements, out of scope, success measures), RULES.md (the hard rules and every security, code, test, shell, release and docs rule in one place), MEMORY.md (state, decisions with their reasons, lessons from the bugs found), TASKS.md (now, next, backlog, done). Each links to the detailed docs instead of repeating them; no company name or domain typed in, and no other products named.
  • Rocky / AlmaLinux / CentOS Stream: the layer made /usr/bin/php (→ the default php<v>) only when -e said nothing was there — but a broken link (left by a removed PHP's alternatives entry, for example) also says "nothing" while the name is taken, so ln -s failed and php didn't work on the command line. It now replaces a missing or broken one (ln -sfn); a working php of the server's own is still never touched (agent/lib/02-os-rhel.sh). Found by os-agent part 2 on a Debian 13 build machine with such a leftover link; reproduced here with one (failed before, passes now).
  • update.sh: the same pattern for the old webmail → mail link — and update.sh runs with set -e, so a broken webmail link would have stopped the update. Fixed the same way.

All docs checked

  • The user docs (docs.<domain>, 374 pages) were built the way the release does and checked: every internal link, page anchor and image works; the docs' own tests pass. Fixed:
    • 59 instructions still described adding on the page ("Under New FTP account, type…", "Fill in the form at the top", "the form under the table") on screens that now use a New card and a dialog: they now say "Click Create on the New FTP account card. In the dialog, …", with each card's exact title (New Git repository, New cron job, New mailing list, New PostgreSQL / MongoDB database, Invite a team member, New Node.js app, Add a MIME type …), Add where the card's button says so (Add domain, Add monitor), the account and mailbox wizards' steps, and editing a package or a Node.js app in its dialog.
    • 29 places still used the old screen names: Malware & web firewall → Security overview, Top sites by traffic → Top websites, Server & updates → System updates (links and screenshot captions).
  • The developer docs (34 files): every link to a file works; LICENSING-MODULES' example is ×2.5 for Unlimited; the engineering guide's mailbox-reset row describes Mail's own steps.
  • A scan for anything else this release changed (the old command names, hfog-agent delete and the uninstall options, an API port, the server package's old name, the licence sign-in link): none left.

Docs brought up to date

  • Install Hfog Server (desktop docs): the Windows setup's Choose Components page (what is always installed, what is ticked by default), the components downloaded and installed during setup with their progress, what happens when a download fails (installed at first start), and the first start on Windows. Command line: hostfog install <component>….
  • Developing (docs/DEVELOPING.md): the build's steps in order, with the new "Server agent (checks)" step and what to upload to a VPS (releases/install.sh); in "Before you commit", the agent-check runner (as root: every check; the Debian 13 /tmp note; skips on machines that can't overlay /), the break-it test, fuzzing and the load test.

Agent checks on a build machine run as root

  • access-agent: "utarget-put answers OK" failed on a machine without rclone. utarget_put first checks that rclone is installed (the server's installer installs it), but this check replaces the storage script with a fake one, so rclone isn't used: the check's agent stands in for that test while the fake runs. Its default helper path is helpers/hfog-backup2.py (it pointed at hfog-backup2.py next to the agent).
  • os-agent part 2 (a pretend Rocky Linux root made by overlaying /) failed on Debian 13: trixie keeps /tmp in memory (tmpfs), and an overlay shows only the root filesystem, so the check's own script (in its /tmp work folder) was missing inside the pretend root — "part 2 did not run". The work folder and the source folder are now bind-mounted into it (also covers a separate /home partition); reproduced with the work folder on tmpfs (old: fails exactly so; new: all good). A machine that can't overlay / at all (WSL, some containers) says "SKIP part 2 (…: <the reason>)"; any other stop is still a failure.
  • run-agent-checks.sh shows the lines after each failure too (the reason), not only the FAIL line.
  • This build reached step 9 with everything before it passing — every Go test included, with Mail's own reset, linkLabels and the new Unlimited price.

Lower price for unlimited servers

  • The Unlimited tier's multiplier is 2.5 instead of 4, so the Business plan (every module, unlimited accounts) costs £72.00 a month instead of £115.20, and every bundle on the Unlimited tier costs 37.5 % less; Solo (×1) and Pro (×2) are unchanged. Changed together so the licence server and the website calculate the same price: DefaultLicCatalog (licfeatures.go), site.json, the shared recorded prices (frontend/site/test/bundle-price-fixtures.json, checked by the website's tests and Go's TestLicPriceFixtures), TestBundlePrice, and the licensing docs. A licence server whose prices were already saved in Server Admin › Business › Plans & pricing keeps them: set the Unlimited multiplier to 2.5 there.

Every sign-in checked

  • Checked in a browser (built interfaces, the server's answers simulated): the sign-in of Server Admin, the Reseller Panel and the Control Panel (each names its panel; labelled fields with password-manager hints; the cursor starts in the first field; Enter signs in; a wrong password says so; "Forgotten your password?" opens its own page with a way back; the new-password page asks twice; language links; fits a phone; dark mode readable; no script errors), and the same for Mail (with its new reset), Files and DB Studio. All pass.
  • Fixed — the sign-ins written by the server (your website's Your licences /account, buying and managing a licence, the Partner portal, /order …): their labels weren't linked to their fields, so clicking a label didn't put the cursor in the field and screen readers announced the box without its name. Every label written right before its field is now linked when the page is sent (linkLabels, page.go; TestLinkLabels).
  • Fixed — the website's Sign in page (/access/) said "We email you a sign-in link" for Your licences; it signs in with email and password now.
  • The website's Sign in menu: Your licences, Partner portal and System status, all pointing at the right addresses.

Website checked

  • Built (all 25 pages prerendered) and crawled in a browser: every page answers, every link and image inside the site works, no script errors, no page scrolls sideways on a phone, dark mode readable; the site's own tests pass (13/13). Fixed: the Features page's Security section showed a broken picture — it asked for mail-2fa.webp, the file is webmail-2fa.webp (already so in the original sources).

Every drop-down menu has the panel's look

  • Select boxes were styled only inside a form field (.field select); elsewhere — a table cell (Two-step sign-in's Required / Optional), a toolbar, a card heading — they showed the browser's plain box. Now every select has the panel's look by default (styles/ui.css, under :where() so a select with its own style keeps it): border, rounded corners, padding, the brand-colour focus ring, hover, disabled and dark-mode colours, one grey chevron for every drop-down (lists showing several rows keep theirs), and the open list's options in the card colours where the browser allows it. Form fields keep their width and height. Checked in light and dark, in a table and in a dialog.