Articles in this section

Plesk PHP handler is missing from Admin and Domains PHP Settings after installation

kb: technical

Symptoms

  • After installing a Plesk PHP handler this is not listed in Tools & Settings > PHP Settings or in Domain > example.com > PHP Settings > PHP version.

  • The following errors are found at /var/log/plesk/panel.log during the Plesk PHP component installation:

    CONFIG_TEXT: [Warning] removing handler (plesk-php80-cgi) due to errors in getting php version : can not get version from /opt/plesk/php/8.0/bin/php-cgi [Warning] removing handler (plesk-php80-fastcgi) due to errors in getting php version : can not get version from /opt/plesk/php/8.0/bin/php-cgi
    [Warning] removing handler `8.0.28' (plesk-php80-fpm) due to errors in getting php version : can not get version from /opt/plesk/php/8.0/bin/php

  • An attempt to query the PHP version manually also fails:

    # /opt/plesk/php/8.0/bin/php -V
    /opt/plesk/php/8.0/bin/php: symbol lookup error: /opt/plesk/php/8.0/bin/php: undefined symbol: history_list

  • The package libedit2 is found to be outdated with a more recent candidate:

    # apt-cache policy libedit2
    libedit2:
    Installed: 3.1-20150325-1ubuntu2
    Candidate: 3.1-20170329-1

Cause

Outdated libedit2 package.

Resolution

  1. Connect to the server via SSH

  2. Update the package libedit2 library using the next command:

    # apt-get install libedit2

  3. Log into Plesk

  4. Remove and install again the affected PHP handler handler following the steps from this article

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.