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!

Certain values in cPanel MultiPHP INI Editor, requiring workaround for PHP-FPM

Discussion in 'EasyApache' started by zebw, Dec 30, 2018.

  1. zebw

    zebw Registered

    Joined:
    Dec 30, 2018
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Virginia, USA
    cPanel Access Level:
    Root Administrator
    Making most php configuration changes for websites using PHP-FPM, right now is a big pain, as I see others have experienced in posts like:
    MultiPHP INI Editor Values Not Saved for PHP-FPM Sites

    I do sysadmin/support for a cPanel server. By my client, I was given something like this:

    Code:
    opcache.revalidate_freq=60
    opcache.validate_timestamps=1
    opcache.max_accelerated_files=5000
    opcache.memory_consumption=192
    opcache.interned_strings_buffer=16
    opcache.fast_shutdown=1
    
    But as per cPanel docs, I had to be the one to turn that all into this:

    Code:
    php_value_opcache.fast_shutdown:
      name: php_value[opcache.fast_shutdown]
      value: 1
    php_value_opcache.interned_strings_buffer:
      name: php_value[opcache.interned_strings_buffer]
      value: 16
    php_value_opcache.max_accelerated_files:
      name: php_value[opcache.max_accelerated_files]
      value: 5000
    php_value_opcache.memory_consumption:
      name: php_value[opcache.memory_consumption]
      value: 192
    php_value_opcache.revalidate_freq:
      name: php_value[opcache.revalidate_freq]
      value: 60
    php_value_opcache.validate_timestamps:
      name: php_value[opcache.validate_timestamps]
      value: 1
    
    Since I couldn't do anything to /opt/cpanel/ea-php??/root/etc/php.d/10-opcache.ini nor /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml because my client requested each subdomain to have their owns settings, I was only left with the manual yaml userdata editing for each vhost option. This is obviously very tedious.

    Also, because SuPHP and CGI break opcache, and switching to DSO is basically server wide and tedious, I don't see a viable alternative in that regard.

    Is there any work being done to make sure that whatever a user does in cPanel MultiPHP INI Editor, within reason of security, is actually applied, so root administrators don't need to do these tedious overrides manually? Or is there an easier workaround?

    Thanks.
     
  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
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. 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
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. 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
    Hello @zebw

    The changes must be done manually at this time though some can be done globally. We have a pretty helpful tutorial on this here:
     
    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