• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Issue php versions not matched

105547111

Silver Pleskian
Out of the panel in tools and settings / php settings:

PHP Settings
Select the PHP handlers you want to make available. You can install additional handlers using the Plesk Installer.

13 items totalEntries per page: 10 25 100 All

Handler
Domains
5.4.45 by OS vendor CGI application 0
5.4.45 by OS vendor FastCGI application 0
5.4.45 by OS vendor FPM application 20
5.4.45 by OS vendor mod_php 0
5.6.29 CGI application 0
5.6.29 FastCGI application 0
5.6.29 FPM application 0
7.0.14 CGI application 0
7.0.14 FastCGI application 0
7.0.14 FPM application 0
7.1.0 CGI application 0
7.1.0 FastCGI application 0
7.1.0 FPM application 0
13 items totalEntries per page: 10 25 100 All


Then in tools and settings / server components:

php 5.6.29-1.el7.remi
php-fpm 5.6.29-1.el7.remi
php56 5.6.29-centos7.16120912
php70 7.0.14-centos7.16120818
php71 7.1.0-centos7.16120617

[root@server conf.d]# plesk bin php_handler --reread
The information about PHP handlers was successfully updated.
[root@server conf.d]# plesk bin php_handler --list
id: display name: full version: version: type: cgi-bin: php-cli: php.ini: custom: status:
cgi 5.4.45 by OS vendor 5.6.29 5.6 cgi /usr/bin/php-cgi /usr/bin/php /etc/php.ini false enabled
fastcgi 5.4.45 by OS vendor 5.6.29 5.6 fastcgi /usr/bin/php-cgi /usr/bin/php /etc/php.ini false enabled
fpm 5.4.45 by OS vendor 5.6.29 5.6 fpm /usr/sbin/php-fpm /usr/bin/php /etc/php.ini false enabled
module 5.4.45 by OS vendor 5.6.29 5.6 module /usr/bin/php-cgi /usr/bin/php /etc/php.ini false enabled
plesk-php56-cgi 5.6.29 5.6.29 5.6 cgi /opt/plesk/php/5.6/bin/php-cgi /opt/plesk/php/5.6/bin/php /opt/plesk/php/5.6/etc/php.ini true enabled
plesk-php56-fastcgi 5.6.29 5.6.29 5.6 fastcgi /opt/plesk/php/5.6/bin/php-cgi /opt/plesk/php/5.6/bin/php /opt/plesk/php/5.6/etc/php.ini true enabled
plesk-php56-fpm 5.6.29 5.6.29 5.6 fpm /opt/plesk/php/5.6/sbin/php-fpm /opt/plesk/php/5.6/bin/php /opt/plesk/php/5.6/etc/php.ini true enabled
plesk-php70-cgi 7.0.14 7.0.14 7.0 cgi /opt/plesk/php/7.0/bin/php-cgi /opt/plesk/php/7.0/bin/php /opt/plesk/php/7.0/etc/php.ini true enabled
plesk-php70-fastcgi 7.0.14 7.0.14 7.0 fastcgi /opt/plesk/php/7.0/bin/php-cgi /opt/plesk/php/7.0/bin/php /opt/plesk/php/7.0/etc/php.ini true enabled
plesk-php70-fpm 7.0.14 7.0.14 7.0 fpm /opt/plesk/php/7.0/sbin/php-fpm /opt/plesk/php/7.0/bin/php /opt/plesk/php/7.0/etc/php.ini true enabled
plesk-php71-cgi 7.1.0 7.1.0 7.1 cgi /opt/plesk/php/7.1/bin/php-cgi /opt/plesk/php/7.1/bin/php /opt/plesk/php/7.1/etc/php.ini true enabled
plesk-php71-fastcgi 7.1.0 7.1.0 7.1 fastcgi /opt/plesk/php/7.1/bin/php-cgi /opt/plesk/php/7.1/bin/php /opt/plesk/php/7.1/etc/php.ini true enabled
plesk-php71-fpm 7.1.0 7.1.0 7.1 fpm /opt/plesk/php/7.1/sbin/php-fpm /opt/plesk/php/7.1/bin/php /opt/plesk/php/7.1/etc/php.ini true enabled


[root@server conf.d]# php -v
PHP 5.6.29 (cli) (built: Dec 8 2016 08:42:35)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with the ionCube PHP Loader v4.7.1, Copyright (c) 2002-2014, by ionCube Ltd.

So why does it insist the base php version is only 5.4.45?

I searched in the psa database and found the old entry in the table:

Database: psa »
dot.gif
Table: ServiceNodeConfiguration

But I shouldn't have to edit the database to show the true php version :(

But after I did the plesk bin php_handler --list returns the edited version.

Is there a bug in plesk bin php_handler --reread not updating the table?

Cheers!
 
Last edited:
You can update these incorrect display names with something like

# /usr/local/psa/bin/php_handler --update -id cgi -displayname '5.6.29 by OS vendor'

etc.
 
Back
Top