PHP handler "module" is not registered when managing subscriptions.

Created:

2016-11-16 13:03:15 UTC

Modified:

2017-04-25 07:21:00 UTC

0

Was this article helpful?


Have more questions?

Submit a request

PHP handler "module" is not registered when managing subscriptions.

Applicable to:

  • Plesk

Symptoms

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.

OR

Unable to register the PHP handler: Handler with id = `fastcgi' already exists

OR

Unable to create or update the subscription: The PHP handler "" is not registered

OR

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.

Resolution

Plesk for Linux instructions:

  1. Check PHP version with this command:

    php -v

    Make sure the result does not show any errors.

  2. Check PHP handlers in /etc/psa/php_versions.json , or using this command:

    /usr/local/psa/admin/sbin/php_handlers_control --list

    Make sure the PHP version is correct.

  3. 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.

  4. 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 | |
  5. 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
  6. Re-enable PHP on the domain in the Plesk control panel->domains->domain.tld->Hosting Settings.

  7. 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.

  8. Also re-read the PHP handlers from php_versions.json with this command:

    /usr/local/psa/admin/sbin/php_handlers_control --reread

Plesk for Windows instructions:

Make sure the PHP version mentioned in the error is installed and recognized by Plesk:

  1. 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\\
  2. 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 .

  3. Go to Tools & Settings > Server Components and press the Refresh button.

For more details, see Multiple PHP Versions in Panel on Windows

Have more questions? Submit a request
Please sign in to leave a comment.