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!

SOLVED change to php-fpm conf files

Discussion in 'EasyApache' started by uadm, Jun 25, 2018.

Tags:
  1. uadm

    uadm Well-Known Member

    Joined:
    May 19, 2003
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    156
    Hi, I read on the forum to edit /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml and add what we need. We have in that file:

    php_value[error_reporting]: 22517

    This indeed duplicate to the all php-fpm conf files, however the default error_reporting line is still there, so we have in a domain php-fpm conf file this:

    php_value[error_reporting] = 22517
    php_value[error_reporting] = E_ALL & ~E_NOTICE

    To be honest, the first line is what's working. We see the errors we want to see in the logs. However we're afraid of unpredicted results. How can we remove the second line?

    Thanks
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,233
    Likes Received:
    1,939
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @uadm,

    Here's how the syntax should look in the example you provided:

    Code:
    ---
    php_value_error_reporting: { name: 'php_value[error_reporting]', value: 22517 }
    Can you confirm that updating the syntax and running "/scripts/php_fpm_config --rebuild" solves the issue?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. uadm

    uadm Well-Known Member

    Joined:
    May 19, 2003
    Messages:
    91
    Likes Received:
    0
    Trophy Points:
    156
    Yes, this works. Thank you.
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,233
    Likes Received:
    1,939
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I'm glad to see that helped. I've marked this thread as solved.
     
    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