Documentation

Server commands

Run these on the server as root (sudo -i first). hf-admin help prints the same list.

HostFog Panel — server commands (run as root)

Admin logins
  hf-admin create-admin               create an admin login for the panel
  hf-admin reset-password <user>      set a new password for a panel login
  hf-admin reset-2fa <user>           switch off two-factor sign-in for a login (lost phone)
  hf-admin list                       list the panel's admin and reseller logins

Control panel data (made every night; accounts, packages, invoices, settings, tickets)
  hf-admin panel-backups              list the copies of the panel's own data
  hf-admin panel-backup               make a copy now
  hf-admin panel-restore <name>       put a copy back (the current data is kept next to it)

DNS and mail
  hf-admin dns-setup                  the DNS records this server's own domain needs (add --check to look them up)
  hf-admin mail-name <name>           use another mail server name, e.g. mx.example.com
  hf-admin mail-autoconfig            (re)create mail-app auto-setup (Outlook, Thunderbird, phones)
  hf-admin ssl-now                    get or renew the panel's SSL certificate now instead of waiting 5 minutes

Separate panels
  hf-admin portals                    show the three panels, whether their DNS points here and has SSL
  hf-admin portals on                 Server Admin at server.<domain>, Control Panel at panel.<domain>,
                                      Reseller Panel at reseller.<domain> (each with its own sign-in)
  hf-admin portals on --admin NAME --customer NAME --reseller NAME    choose the names yourself
  hf-admin portals off                back to one panel for everyone
  hf-admin status-page on [NAME]      the public status page on its own address (default status.<domain>)
  hf-admin status-page off            the status page stays at https://<panel>/status

Repairs
  hf-admin health                     check the whole server (services, config, disk, memory, SSL, clock, mail queue)
  hf-admin apache-fix                 repair and start Apache (port clash, missing log folders, leftover sites)
  hf-admin php-versions               PHP versions this server can install
  hf-admin php-repo                   add the extra PHP versions repository if it supports this Ubuntu release

More servers
  hf-admin node-enable <main IP>      let the main HostFog server add this one as an extra server (--new: new join code)
  hf-admin node-disable               stop being an extra server

Install, update, remove
  sudo bash latest [options]          install, or update an installed panel (see options below)
  hf-admin uninstall                  remove the panel, keep websites, databases and mail running
  hf-admin uninstall --purge          also delete all hosting accounts (asks for a confirmation word)
  hf-admin uninstall --packages       also remove Nginx, Apache, PHP, MariaDB, mail and DNS software (add --yes for scripts)

Installer options
  --hostname panel.example.com        panel address          --email you@example.com    admin email (SSL notices)
  --mail-host mx.example.com          mail server name       --port 8443                panel port
  --ns1 NAME --ns2 NAME               nameserver names       --node 18|20|22|24         Node.js version
  --no-mail                           skip email             --no-dns                   skip the DNS server
  --no-portals                        one panel for everyone instead of Server Admin / Control Panel / Reseller Panel
  --quotas                            hard disk quotas       --licence KEY              paid edition

Logs: /var/log/hostfog-install.log · /var/log/hostfog-*.log · /home/<user>/logs/