tPanel 1.0 is here: imports without SSH, dedicated IPs, Team Manager and more.See what’s in it

Plugins and integrations

Imunify360, CloudLinux, LiteSpeed, JetBackup, Installatron and writing your own plugin.

Plugins

A plugin is a folder in /usr/local/tivro/plugins/<id>/ with a plugin.json. Install it under Root → Plugins (upload a .tar.gz with plugin.json at the top or inside one folder), then turn it on.

{
  "id": "hello",
  "name": "Hello",
  "version": "1.0.0",
  "description": "Says hello.",
  "author": "Example Ltd",
  "url": "https://example.com",
  "requires": "1.0.0",
  "icon": "box",
  "feature": "Hello tool",
  "root_menu": [{"label": "Hello", "page": "admin", "icon": "box"}],
  "client_menu": [{"label": "Hello", "page": "index", "group": "Software"}],
  "root_pages": ["details"],
  "client_pages": [],
  "pages": {"admin": "pages/admin.php", "details": "pages/details.php", "index": "pages/index.php"},
  "hooks": {"account.create": "hooks/account.sh", "account.terminate": "hooks/account.sh"}
}
  • id: lowercase letters, digits, - and _; must match the folder name.
  • feature: adds the package feature plugin_<id>, so Root can offer the client pages per package. Plugins with client pages always get the feature.
  • group of a client menu item: Files, Email, Domains, Databases, Software, Insights, Security or Backups.
  • A page is reachable only on the side whose menu links it, or when listed in root_pages / client_pages.

Pages

Pages are PHP files rendered inside the panel layout at /plugin/<id>/<page> (GET and POST; POST needs the CSRF field). They receive:

Variable What
$api account(), domains(?int $accountId), accounts() (root), user(), isRoot(), url($page, $query), csrf(), e($text), setting($key), saveSetting($key, $value) (root), isPost(), redirect($page, $query, $message)
$request input($name), int($name), inputArray($name)
$plugin the parsed manifest
$account the signed-in account on the client side, otherwise null

Pages run inside the panel with its database access. Install only plugins you trust.

Hooks

Hook scripts run as root through the agent, in the background, with the event as JSON on standard input ({"event": "...", "time": 1760000000, "data": {...}}) and the event name as the first argument. They must be executable, owned by root and writable only by root. Events:

account.create, account.terminate, account.suspend, account.unsuspend, account.package, account.password, domain.add, domain.remove, email.create, email.remove, database.create, database.remove, backup.done.

Control panel integration scripts (CloudLinux OS, Imunify360)

tPanel implements the CloudLinux control panel integration API. It writes /opt/cpvendor/etc/integration.ini (unless one written by someone else exists) and answers every script with /opt/cpvendor/bin/tivro-cpvendor:

panel_info | packages [--owner] | users [--owner --package-name --package-owner --username --unix-id --fields]
domains [--owner --name --with-php] | resellers [--id --name] | admins [--name --is-main] | php | ui_user_info TOKEN

The data comes from /var/lib/tivro/cpvendor, refreshed when accounts or domains change and every hour. End users (also inside CageFS) can read only their own domains. CloudLinux user hooks (post_modify_user.py create/delete, pre_modify_user.py delete, post_modify_user.py restore) are called when accounts are created, terminated and restored.

Imunify360 and ImunifyAV get /etc/sysconfig/imunify360/integration.conf (Root → Integrations → Write integration settings) with the same scripts, the web server restart command (Apache or LiteSpeed) and the malware watch pattern ^/home/[^/]+/public_html(/.*)?$.

Installers

Root → Integrations runs each vendor's own installer. The download address and arguments come from the agent configuration (vendor.installers in /etc/tivro/agent.json), so they can be changed without an update:

"vendor": {"installers": {"kernelcare": {"url": "https://kernelcare.com/installer", "post": [["/usr/bin/kcarectl", "--register", "{key}"]]}}}

The output of each installation is kept in /var/log/tivro/vendor-<product>.log.

Supported integrations

Product What tPanel does What you need
CloudLinux OS Installs it (cldeploy), sets up the integration scripts and user hooks, and opens CloudLinux Manager without a second sign-in A CloudLinux OS license
Imunify360 / ImunifyAV Installs it and writes its integration.conf An Imunify360 or ImunifyAV+ license (ImunifyAV is free)
KernelCare Installs, registers, updates and unregisters it, and shows its status A KernelCare license key
LiteSpeed Web Server Installs it, switches between Apache and LiteSpeed, reloads it through lswsctrl A LiteSpeed Web Server license
JetBackup 5 for Linux Installs it, shows its status and opens its interface inside the panel A JetBackup 5 license
Installatron Server Installs it and signs clients in through the guixfer API An Installatron Server license
Softaculous Installs the Softaculous package for tPanel, runs it under each account's own PHP pool, signs clients in without a second password, and creates databases and cron jobs through tPanel A Softaculous license
Cloudflare Connects each client's domains to Cloudflare (API v4) The client's Cloudflare API token
SnappyMail Installed with tPanel on port 2447 Nothing; it is included

Licenses for these products are bought from their vendors or your license distributor; tPanel detects the license on the server.