Configuration 

Configuring Plesk server access 

The plesk_widget extension uses dedicated records to store Plesk server access information. This allows you to configure multiple Plesk servers and select them individually for your dashboard widgets.

To configure a Plesk server:

  1. Navigate to the TYPO3 backend module Records to manage your records. These records (type Plesk Server) can only be created on the root page (PID 0) and are therefore only manageable by a TYPO3 administrator.
  2. Create a new record of type Plesk Server.
  3. Fill in the following fields:

    title
    Type
    string
    Required
    true

    A descriptive title for this Plesk server configuration. This title will be displayed when selecting the server in dashboard widgets.

    Example: My Main Plesk Server

    host
    Type
    string
    Required
    true

    Hostname or IP address where this extension can access the Plesk system. If you do not know it, try your website domain name (without scheme, path, and port).

    Example: plesk.example.com or 192.168.1.100

    port
    Type
    int
    Default
    8443
    Required
    true

    Enter the port of your Plesk system.

    Example: 8443

    verify_ssl
    Type
    bool
    Default
    true
    Required
    false

    Enables TLS certificate verification for Plesk REST API requests. Disable this option only when connecting to a Plesk server that uses a self-signed certificate.

    username
    Type
    string
    Required
    false

    Non-persistent field (renderType => 'pleskCredentialInput'). When both username and password are provided on save, DataHandlerHook connects to the Plesk server, requests a Secret Key via the Plesk REST API (POST /api/v2/auth/keys), and stores it encrypted in token. Neither username nor password is stored in the database. If both fields are left empty, a manually entered or existing token is preserved.

    Example: plesk-user

    password
    Type
    string
    Required
    false

    Non-persistent password field (renderType => 'pleskCredentialInput'). Used once together with username to request a Plesk API Secret Key (token) when saving the record, and never stored in the database. If left empty, a manually entered or existing token is preserved.

    token
    Type
    string
    Required
    false

    The Plesk API Secret Key used for authentication. Automatically generated when username and password are provided on save, or entered manually (maximum 64 characters). The value is encrypted using TYPO3's CipherService (XChaCha20-Poly1305) before database storage.

    domain
    Type
    string
    Required
    false

    The exact domain name registered in your Plesk customer account. This setting is used by Plesk PHP Settings, Plesk SSL Certificate, and Plesk Domain Error Logs.

    Example: 124.example.com

Configuring dashboard widgets 

When adding or editing Plesk Webspace, Plesk Server Information, Plesk PHP Settings, Plesk Subscription Limits, Plesk SSL Certificate, or Plesk Domain Error Logs, select one of your configured Plesk Server records in the pleskServer setting. Plesk Database requires no pleskServer setting because it reads metrics directly from the active TYPO3 database.

For Plesk Webspace, you can specify the display format in the widget's settings:

  • Unit (unit): Choose whether to display disk usage in percentage (%), MegaByte (mb), or GigaByte (gb). This setting is specific to each widget.

    Example: mb