Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP-FPM User .yaml Customisations Lost When Changing PHP Version

Discussion in 'EasyApache' started by BobHoliday, Nov 23, 2018.

  1. BobHoliday

    BobHoliday Member

    Joined:
    Sep 6, 2013
    Messages:
    23
    Likes Received:
    3
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    I've successfully removed 'ini_set' from disable_functions for one user on my server by editing their .user.php-fpm.yaml file in the approved way (I believe). It now contains (including the initial 3 dashes):

    ---
    _is_present: 1
    php_admin_value_disable_functions:
    name: php_admin_value[disable_functions]
    value: show_source,system,shell_exec,passthru,exec,popen,proc_open,phpinfo
    pm_max_children: 5
    pm_max_requests: 20
    pm_process_idle_timeout: 10

    And the user's website works fine, on PHP 7.0 (which also has the same value set for disable_functions in WHM Multi PHP Ini Editor).

    I'd like to move them up to PHP 7.2 so in WHM Multi PHP Manager I make the change, and then wait the required 30 seconds or so while the site gives 503 errors during the transition (unsure why this is but it seems to do this every time).

    The site then displays a ton of WARNING ini_set is disabled etc etc (it's Drupal and very verbose).

    PHP 7.2 in WHM Multi PHP Ini editor _does_ have ini_set disabled in it.

    Why is the user's YAML not overriding the WHM set values for PHP 7.2?

    TY!
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,124
    Likes Received:
    474
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @BobHoliday


    You do still need to enable the php.ini value for PHP 7.2. PHP-FPM will override the value set for disable functions if the value is not disabled but it won't enable it if disabled.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice