Custom PHP version configured in Plesk is not applied for the domain.

Created:

2016-11-16 13:11:44 UTC

Modified:

2017-06-10 21:20:30 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Custom PHP version configured in Plesk is not applied for the domain.

Applicable to:

  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

We have added additional custom php versions on the server and registered them with Plesk correctly.

~# plesk sbin php_handlers_control --list
id: display name: version: type: cgi-bin: cli-bin: php.ini:
module 5.3.10 5.3.10 module /usr/bin/php5-cgi /etc/php5/cgi/php.ini
fastcgi 5.3.10 5.3.10 fastcgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini
cgi 5.3.10 5.3.10 cgi /usr/bin/php5-cgi /etc/php5/cgi/php.ini
Custom-5.4.37-fcgi Custom-5.4.37 5.4.37 fastcgi /opt/php-5.4.37/bin/php-cgi /opt/php-5.4.37/etc/php.ini
Custom-5.5.21-fcgi Custom-5.5.21 5.5.21 fastcgi /opt/php-5.5.21/bin/php-cgi /opt/php-5.5.21/etc/php.ini

When we change the FastCGI PHP version to one of the additional versions nothing changes

Additional packages integrity verification shown the following:

For RPM based systems:

# rpm -V psa-php5-configurator

S.5....T. /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

For DEB based systems:

# debsums psa-php5-configurator
/usr/lib/plesk-9.0/fix_php_session_dir_perms_trigger OK
/var/www/cgi-bin/cgi_wrapper/cgi_wrapper FAILED

Cause

Invalid cgi_wrapper binary, which is responsible for handling custom PHP versions

Resolution

Replace the corrupted binary with the valid one from psa-php5-configurator package.

Have more questions? Submit a request
Please sign in to leave a comment.