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 php-fpm disable error log for a single account

Discussion in 'EasyApache' started by Skin, Jun 16, 2018.

  1. Skin

    Skin Well-Known Member

    Joined:
    Feb 3, 2006
    Messages:
    93
    Likes Received:
    4
    Trophy Points:
    158
    Location:
    Italy
    Hello,

    I have an old site that is creating a very big error log in few minutes, each page visit creates a lot of php error log lines .

    I`m running cPanel 70.0.48 and php-fpm is enabled on this account.

    I`d like to disable error log only for this account, so I edited /var/cpanel/userdata/[USER]/[DOMAIN].php_fpm.yaml and inserted:
    Code:
     php_value_error_reporting = 0

    but after running
    /usr/local/cpanel/scripts/php_fpm_config --rebuild
    and restarting php-fpm
    the error log is still increasing rapidly.

    Can you please help?
     
    #1 Skin, Jun 16, 2018
    Last edited: Jun 16, 2018
  2. Skin

    Skin Well-Known Member

    Joined:
    Feb 3, 2006
    Messages:
    93
    Likes Received:
    4
    Trophy Points:
    158
    Location:
    Italy
    I found the solution, I write it here so it can be useful to other people, in practice I was wrong to write
    php_value_error_reporting = 0

    After putting
    Code:
    php_value_error_reporting: 0
    in /var/cpanel/userdata/[USER]/[DOMAIN].php_fpm.yaml , and after running
    /usr/local/cpanel/scripts/php_fpm_config --rebuild
    the error log was disabled as expected.
     
    cPanelLauren likes this.
  3. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,517
    Likes Received:
    251
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Skin

    Thanks! for updating the thread with the answer, I'm happy to see you were able to find the resolution for your issue.

    Thank you,
     
    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