Unable open the settings of a subscription in Plesk. The following error is shown:
Unable to create or update the subscription: The PHP handler "module" is not registered. It was probably deleted from the server. Register a handler with the same properties and try again.
Unable to register the PHP handler: Handler with id = `fastcgi' already exists
Unable to create or update the subscription: The PHP handler "" is not registered
Error: Unable to create or update your subscription: PHP Driver "" not registered. There's probably been deleted from the server. Register a driver with the same properties and try again.
Plesk for Linux instructions:
Check PHP version with this command:
Make sure the result does not show any errors.
Check PHP handlers in
/etc/psa/php_versions.json, or using this command:
Make sure the PHP version is correct.
Check the PHP handlers in the Plesk database. They should appear as below:
mysql> select section,name from ServiceNodeEnvironment where section='phphandlers'; +-------------+---------+ | section | name | +-------------+---------+ | phphandlers | cgi | | phphandlers | fastcgi | | phphandlers | module | | phphandlers | synced | +-------------+---------+
If the correct line is not in the table, add it manually.
Make sure that all domains with PHP enabled do not have an empty 'php_handler_id':
mysql> select dom_id,php,php_handler_id from hosting where php='true'; +--------+-------+----------------+ | dom_id | php | php_handler_id | +--------+-------+----------------+ | 14 | true | module | | 73 | true | fastcgi | | 77 | true | module | | 159 | true | module | | 162 | true | module | | 188 | true | |
If a domain has PHP enabled (php='true') but the correct line is missing from the table, add it manually for the particular domain:
mysql> update hosting set php_handler_id='fastcgi' where dom_id=188; Query OK, 1 row affected (0.13 sec) Rows matched: 1 Changed: 1 Warnings: 0
Re-enable PHP on the domain in the Plesk control panel->domains->domain.tld->Hosting Settings.
If some handlers are missing from the database, it is necessary to refresh the Plesk Components by going to Plesk Control Panel > Tools and Utilities > Server Components and pressing the Refresh button.
Also re-read the PHP handlers from
php_versions.jsonwith this command:
Plesk for Windows instructions:
Make sure the PHP version mentioned in the error is installed and recognized by Plesk:
Check the path in the Windows registry
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PHP\5. The value should be like
C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\
All up-to-date and commonly used versions of PHP are shipped with Plesk and can be installed through Tools & Settings > Updates and Upgrades > Add/Remove components.
- Go to Tools & Settings > Server Components and press the Refresh button.
For more details, see Multiple PHP Versions in Panel on Windows