Symptoms
- The PHP by OS vendor was upgraded for example from 5.4.16 up to 7.2.31.
- The version of PHP by OS vendor still shows as 5.4.16 in Plesk > Tools & Settings > PHP Settings:
Note: the PHP handler name is also not changed after the downgrade procedure for the PHP by OS vendor package.
Cause
This is the Plesk bug with the IDÂ #PPPM-4764, which will be fixed in the next Plesk update releases.
Resolution
Until the bug will be fixed, apply the following workaround:
- Log into the server via SSH.
-
Execute the command below to reread PHP handlers:
# plesk bin php_handler –reread
-
Run the command to get list of all hanlders that belong to OS vendor:
# plesk bin php_handler –list | grep vendor | awk {‘print $1″t”$2″t”$3″t”$4″t”$5’}
cgi   5.4.16 by OS vendor
fastcgi 5.4.16 by OS vendor
fpm   5.4.16 by OS vendor
module  5.4.16 by OS vendor -
Rename the required handler of the PHP by OS vendor by executing the command:
- For fastcgi:
# plesk bin php_handler –update -id fastcgi -displayname “7.2.31 by OS vendor”
- For fpm:
# plesk bin php_handler –update -id fpm -displayname “7.2.31 by OS vendor”
- For cgi:
# plesk bin php_handler –update -id cgi -displayname “7.2.31 by OS vendor”
- For module:
# plesk bin php_handler –update -id module -displayname “7.2.31 by OS vendor”
Â
- For fastcgi: