Custom PHP settings are not stored

Refers to:

  • Plesk 12.5 for Linux

Created:

2016-11-16 13:18:41 UTC

Modified:

2016-12-21 20:25:37 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Custom PHP settings are not stored

Symptoms

  1. Domains > <domain_name> > PHP Settings > Perfomance settings > memory_limit shows blank value if manually installed PHP is used.

  2. The value is not been saved when setting it up.

Cause

Such behavior is known as software issue with id #PPPM-3657 and will be fixed in further product updates.

Workaround

  1. Find all custom PHP versions installed:

    # 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.4.45 5.4 cgi /usr/bin/php-cgi /usr/bin/php /etc/php.ini false enabled
    fastcgi 5.4.45 by OS vendor 5.4.45 5.4 fastcgi /usr/bin/php-cgi /usr/bin/php /etc/php.ini false enabled
    fastcgi-5.3 5.3 5.3.27 5.3 fastcgi /opt/php53/bin/php-cgi /opt/php53/etc/php.ini true enabled
    fastcgi-5.5 5.5 5.5.24 5.5 fastcgi /opt/php55/bin/php-cgi /opt/atomic/atomic-php55/root/etc/php.ini true enabled
    fastcgi-5.6 5.6 5.6.0 5.6 fastcgi /opt/php56/bin/php-cgi /opt/php56/etc/php.ini true enabled
    module 5.4.45 by OS vendor 5.4.45 5.4 module /usr/bin/php-cgi /usr/bin/php /etc/php.ini false enabled

    In this case PHP with version 5.3 , 5.5 , 5.6 are custom and their php-cli path is absent.

  2. Edit /etc/psa/php_versions.json , add clipath , where PHP versions are 5.3 , 5.5 , 5.6 :

    # cat /etc/psa/php_versions.json | grep clipath
    "clipath":"/opt/php55/bin/php",
    "clipath":"/opt/php56/bin/php",
    "clipath":"/opt/php53/bin/php",
  3. Apply the changes by executing the following command:

    # /usr/local/psa/admin/bin/php_handlers_control --reread
Have more questions? Submit a request
Please sign in to leave a comment.