• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved Onyx 17.3.5 error PHP domain selection error after upgrade

Vladanovic

New Pleskian
Hello

After usual upgrate from 17.0 Onyx to 17.5.3 Onyx , immidiatly after is not possible to change
php handler in any domain inside server.

On every domain is not possible to change FPM/CGI mode of php , there is no selection of that.

If changed php version, there is an PERMISION DENIDED error inside panel and version is not changed.

In plesk log, this is error

#####

[2017-04-24 09:59:59] ERR [panel] Permission denied.
[2017-04-24 10:00:33] ERR [panel] Permission denied.
[2017-04-24 10:01:46] ERR [panel] Permission denied.
[2017-04-24 10:02:20] ERR [panel] Permission denied.
[2017-04-24 10:04:50] ERR [panel] Permission denied.
[2017-04-24 10:07:37] ERR [panel] Permission denied.
[2017-04-24 10:08:36] ERR [panel] Permission denied.
[24-Apr-2017 10:08:39 Europe/Berlin] PHP Warning: array_key_exists(): The first argument should be either a string or an integer; File: /opt/psa/admin/plib/Smb/Form/Final/Web/PhpSettings.php, Line: 98

[2017-04-24 10:08:39] ERR [1] PHP Warning: array_key_exists(): The first argument should be either a string or an integer; File: /opt/psa/admin/plib/Smb/Form/Final/Web/PhpSettings.php, Line: 98

[2017-04-24 10:09:59] ERR [panel] Permission denied.
[2017-04-24 10:15:35] ERR [panel] Permission denied.
[24-Apr-2017 10:16:43 Europe/Berlin] PHP Warning: array_key_exists(): The first argument should be either a string or an integer; File: /opt/psa/admin/plib/Smb/Form/Final/Web/PhpSettings.php, Line: 98

[2017-04-24 10:16:43] ERR [1] PHP Warning: array_key_exists(): The first argument should be either a string or an integer; File: /opt/psa/admin/plib/Smb/Form/Final/Web/PhpSettings.php, Line: 98


####

On 17.0 Onyx version everything was just fine.

Thanks,Vlad
 
Hi Vlad,

I got the same issue but only for domains created before the upgrade. Everything I create now is OK. Also I found a workaround for the existing domains: Changing the setting by using the Hosting-Configuration, not PHP-Configuration works. Can you confirme this behavior?

Axel
 
Hi Vladanovic,

for security reasons ( and to satisfy Plesk users ), Plesk changed the standarts for INSECURE and DEPRECATED PHP - handlers. The current standart setting is now the DISABLED state for "mod_php" and "CGI".


To still enable these PHP - handlers, you have to use the Plesk CLI - command "plesk bin php_handler".

Pls. use the following EXAMPLE commands:

TO RE-READ the actual settings and PHP - Handlers:
Code:
plesk bin php_handler --reread

TO LIST the actual existent PHP - handlers:
Code:
plesk bin php_handler --list

TO ENABLE a PHP - handler ( here: id=cgi ), pls. use for example:
Code:
plesk bin php_handler --enable -id cgi



Additional command options for the Plesk CLI - command can be found at :

=> php_handler: PHP Handlers

or with the "help" option string:
Code:
plesk bin php_handler --help
 
Hello UFHH01
Please,i did reread option, and listed all actual php-s

####

mx1:~# plesk bin php_handler --list
id: display name: full version: version: type: cgi-bin: php-cli: php.ini: custom: status:
cgi 5.5.9 by OS vendor 5.5.9 5.5 cgi /usr/bin/php5-cgi /usr/bin/php5 /etc/php5/cgi/php.ini false disabled
fastcgi 5.5.9 by OS vendor 5.5.9 5.5 fastcgi /usr/bin/php5-cgi /usr/bin/php5 /etc/php5/cgi/php.ini false enabled
fpm 5.5.9 by OS vendor 5.5.9 5.5 fpm /usr/sbin/php5-fpm /usr/bin/php5 /etc/php5/fpm/php.ini false enabled
module 5.5.9 by OS vendor 5.5.9 5.5 module /usr/bin/php5-cgi /usr/bin/php5 /etc/php5/apache2/php.ini false disabled
plesk-php53-cgi 5.3.29 5.3.29 5.3 cgi /opt/plesk/php/5.3/bin/php-cgi /opt/plesk/php/5.3/bin/php /opt/plesk/php/5.3/etc/php.ini true disabled
plesk-php53-fastcgi 5.3.29 5.3.29 5.3 fastcgi /opt/plesk/php/5.3/bin/php-cgi /opt/plesk/php/5.3/bin/php /opt/plesk/php/5.3/etc/php.ini true enabled
plesk-php54-cgi 5.4.45 5.4.45 5.4 cgi /opt/plesk/php/5.4/bin/php-cgi /opt/plesk/php/5.4/bin/php /opt/plesk/php/5.4/etc/php.ini true disabled
plesk-php54-fastcgi 5.4.45 5.4.45 5.4 fastcgi /opt/plesk/php/5.4/bin/php-cgi /opt/plesk/php/5.4/bin/php /opt/plesk/php/5.4/etc/php.ini true enabled
plesk-php54-fpm 5.4.45 5.4.45 5.4 fpm /opt/plesk/php/5.4/sbin/php-fpm /opt/plesk/php/5.4/bin/php /opt/plesk/php/5.4/etc/php.ini true enabled
plesk-php55-cgi 5.5.38 5.5.38 5.5 cgi /opt/plesk/php/5.5/bin/php-cgi /opt/plesk/php/5.5/bin/php /opt/plesk/php/5.5/etc/php.ini true disabled
plesk-php55-fastcgi 5.5.38 5.5.38 5.5 fastcgi /opt/plesk/php/5.5/bin/php-cgi /opt/plesk/php/5.5/bin/php /opt/plesk/php/5.5/etc/php.ini true enabled
plesk-php55-fpm 5.5.38 5.5.38 5.5 fpm /opt/plesk/php/5.5/sbin/php-fpm /opt/plesk/php/5.5/bin/php /opt/plesk/php/5.5/etc/php.ini true enabled
plesk-php56-cgi 5.6.30 5.6.30 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 disabled
plesk-php56-fastcgi 5.6.30 5.6.30 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.30 5.6.30 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.18 7.0.18 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 disabled
plesk-php70-fastcgi 7.0.18 7.0.18 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.18 7.0.18 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.4 7.1.4 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.4 7.1.4 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.4 7.1.4 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

#####

What is exact problem now is that i cannot select any of php versions installed on system to be ok and without errors.

If i enter inside doman PHP settings, i cannot select any of them in RUN PHP AS menu.
When i do that, i get

{"redirect":"\/web\/php-settings\/id\/4","status":"error","statusMessages":[]}


How can i resolve this situation?

Best, Vlad
 
Hi Vladanovic,

unfortunately, you din't read my post to the end!

I will point it out again for you:

for security reasons ( and to satisfy Plesk users ), Plesk changed the standarts for INSECURE and DEPRECATED PHP - handlers. The current standart setting is now the DISABLED state for "mod_php" and "CGI".


cgi 5.5.9 by OS vendor 5.5.9 5.5 cgi /usr/bin/php5-cgi /usr/bin/php5 /etc/php5/cgi/php.ini false disabled

module 5.5.9 by OS vendor 5.5.9 5.5 module /usr/bin/php5-cgi /usr/bin/php5 /etc/php5/apache2/php.ini false disabled

plesk-php53-cgi 5.3.29 5.3.29 5.3 cgi /opt/plesk/php/5.3/bin/php-cgi /opt/plesk/php/5.3/bin/php /opt/plesk/php/5.3/etc/php.ini true disabled

plesk-php54-cgi 5.4.45 5.4.45 5.4 cgi /opt/plesk/php/5.4/bin/php-cgi /opt/plesk/php/5.4/bin/php /opt/plesk/php/5.4/etc/php.ini true disabled

plesk-php55-cgi 5.5.38 5.5.38 5.5 cgi /opt/plesk/php/5.5/bin/php-cgi /opt/plesk/php/5.5/bin/php /opt/plesk/php/5.5/etc/php.ini true disabled

plesk-php56-cgi 5.6.30 5.6.30 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 disabled

plesk-php70-cgi 7.0.18 7.0.18 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 disabled

TO ENABLE a PHP - handler ( here: id=cgi ), pls. use for example:
Code:
plesk bin php_handler --enable -id cgi
 
Hi UFHH01,

I have tried to enable the cig php handler, this did not change anything (disabled it again). I am also not using any none fastcig handler on any of my Domanis. Looks like that there is a permission problem somewhere to me. All Domains created before the upgrade are affected, regardless of what php handler (5.9.9, 7.0.18, 7.1.4) is beeing used. The Domains do run fine incl. php. The only problem is in the Plesk admin GUI.

Axel
 
Hi Axel P,

pls. CHECK your corresponding subscription and service-plan settings for YOUR unique standart settings over the Plesk Control Panel and in case you use a DISABLED PHP - handler, pls. change the setting, save it and let the Plesk Control Panel sync the abonnements automatically. ;)
 
Hi UFHH01,

first of all thanks for helping on this. I have checked all abos and serviceplans, no disabled php handlers found. To be sure is resynced all of the serviceplans -> no change. Then I enabled all disabled php handler on the list (php_handler --list), issue is still the same.
 
Hi Axel P,

to investigate YOUR issue, pls. consider as well to provide the following informations:
  • YOUR current operating system
  • YOUR current Plesk version ( incl. #MU ) - ( easiest way is the command usage "plesk version" over your command line )
  • YOUR exact error message from your Plesk Control Panel ( or/and from your "panel.log" for further investigations! )
  • YOUR output of the command:
    Code:
    plesk bin php_handler --list
  • YOUR output of the command:
    Code:
    plesk bin service_plan --info "YOUR-SERVICE-PLAN-NAME"
  • YOUR output of the command:
    Code:
    plesk bin subscription --info YOUR-DOMAIN.COM
  • YOUR output of the command:
    Code:
    plesk bin subscription_settings --show-php-settings YOUR-DOMAIN.COM
 
Hi UFHH01,

looks like I am not the only one reporting this. As there is much more traffic about this in the other threads I will continue by following the discussion there..

Thanks,

Axel
 
Back
Top