Upgrade Notes
This document provides important information for upgrading the plesk_
extension to newer versions. Please read the relevant sections carefully before
performing an upgrade, especially if you are skipping multiple major versions.
General upgrade advice
- Always create a backup of your TYPO3 installation and database before upgrading.
- Test upgrades on a development or staging environment first.
- Clear all TYPO3 caches (frontend and backend) after an upgrade.
- Run the "Upgrade Wizards" in the TYPO3 Install Tool if available.
Migration from credentials to Plesk API token
The tx_ table now stores an encrypted Plesk API Secret Key
in the token column instead of persisting username and password in the
database.
The username and password fields in the backend form are now non-persistent
fields. When both are filled on save, Data connects to the Plesk
server, requests a Secret Key, and stores it encrypted in token.
Warning
Follow the upgrade order below strictly. Dropping username and
password before running the UpgradeWizard prevents automated migration of
existing server records.
Required upgrade steps
-
Add the `token` column only (do not drop `username` and `password`):
Update the database schema via Admin Tools > Maintenance > Analyze Database Structure or via CLI:
vendor/bin/typo3 database:updateschemaCopied!Apply only the addition of the new
tokencolumn. Do not drop the `username` and `password` columns yet. The UpgradeWizard requiresusername,password, andtokencolumns to exist intx_simultaneously.pleskwidget_ server -
Run the UpgradeWizard `pleskWidget_migrateCredentialsToToken`:
Execute the UpgradeWizard in the TYPO3 backend under Admin Tools > Upgrade > Upgrade Wizard or via CLI:
vendor/bin/typo3 upgrade:run pleskWidget_migrateCredentialsToTokenCopied!The wizard decrypts each stored
passwordand re-saves the record viaData, which triggersHandler Datato request a Secret Key via the Plesk REST API (Handler Hook POST /) and store it encrypted inapi/ v2/ auth/ keys token.Note
During this step, the TYPO3 server must be able to reach the configured Plesk servers. Plesk Secret Keys are bound to the outgoing IP address of the requesting TYPO3 server.
-
Drop obsolete columns after migration:
Only after the UpgradeWizard has successfully migrated all records, run the database schema cleanup again (
Analyze Database Structureordatabase:) to remove the obsoleteupdateschema usernameandpasswordcolumns.
Migration of Extension Configuration
With the upgrade from version 3.x to 4.0.0, the way the plesk_
extension is configured fundamentally changed.
Previously, global settings for Plesk server access (host, port, username,
password, and the domain for PHP settings) were managed through the
TYPO3 Install Tool (extension configuration). Additionally, the
disk (%, MB, or GB) was also a global setting.
These global settings have been removed in favor of a more flexible, record-based configuration.
Breaking changes
- Removed Global Extension Settings: The global extension settings for
Plesk server access (
host,port,username,password,domain) anddiskare no longer available.Usage Type - Plesk API Library Update: The underlying
plesk/dependency has been updated from version 1.1.2 to 2.2.1. This updated version is also directly included for Classic/ZIP package installations.api- php- lib
Migration steps
- Create Plesk Server Records: You must now create dedicated "Plesk Server"
records in the TYPO3 backend. These records (stored in the
tx_table) can only be created on the root page (PID 0) and are therefore only manageable by a TYPO3 administrator. They will hold thepleskwidget_ server host,port,username,password, anddomainfor each Plesk server you wish to monitor. - Configure Widgets Individually: The
disksetting is now configured directly within each individual Dashboard Widget. When adding or editing a Plesk widget, you will select the desired Plesk Server record and specify the disk usage display type.Usage Type
Important: There is no automated upgrade wizard for this configuration migration. Users of the extension must manually re-create their Plesk server configurations as records and adjust their Dashboard Widgets accordingly.