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
-
Connect to the server via SSH
-
Update the package libedit2 library using the next command:
# apt-get install libedit2
-
Remove and install again the affected PHP handler handler following the steps from this article
Comments
0 comments
Please sign in to leave a comment.