Unable to remove a PHP handler: it is corrupted or broken

Created:

2016-11-16 13:05:59 UTC

Modified:

2017-08-08 13:35:35 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to remove a PHP handler: it is corrupted or broken

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  1. PHP handler is marked as corrupted in Plesk > Tools and Settings > PHP Settings :

    This handler is corrupted
  2. PHP handler is marked as broken :

    # /usr/local/psa/bin/php_handler --list

    id: display name: php-cli: status:
    5.5-latest 5.5.latest /opt/atomic/atomic-php55/root/usr/bin/php broken
  3. Unable to remove this handler:

    # /usr/local/psa/bin/php_handler --remove -id 5.5-latest
    The PHP handler "5.5-latest" is not found
  4. Plesk does not list this handler as registered:

    /usr/local/psa/admin/bin/php_handlers_control --list | grep '5.5-latest'
  5. psa database, however, contains a record for the handler:

    mysql> select section,name from ServiceNodeEnvironment where name='5.5-latest';
    +-------------+---------------------+
    | section | name |
    +-------------+---------------------+
    | phphandlers | 5.5-latest |
    +-------------+---------------------+

Cause

PHP 5.5 handler provided by Atomic is not installed on the server, and database contains outdated information about that handler.

Resolution

  1. Reread handlers info using the following command:

    # /usr/local/psa/admin/bin/php_handlers_control --reread
  2. Remove the orphaned record from the database:

    mysql> delete from ServiceNodeEnvironment where name='5.5-latest';
    Query OK, 1 row affected (0.00 sec)

Additional information

If handler installation is required for PHP 5.5 provided by Atomin, install it and register in Plesk according to instructions here:

213909265 How to enable multiple PHP versions in Plesk for Linux

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