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!

Disable PHP error log only on specific account

Discussion in 'General Discussion' started by kszadkowski, Dec 15, 2017.

  1. kszadkowski

    kszadkowski Member

    Joined:
    Sep 30, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I moved some time ago to cpanel, an old non-updated website built on the basis of Joomla 1.6. It is known that Joomla 1.6 has long been out of use. It is impossible to update this website or any changes in it.

    Each page visit creates a lot of php error log lines - the average increment is 400 KB for a one-time visit. The file is created in the user's account in the / logs folder and has the name account_name.php.error.log. I attach a new file after today's visit.

    So far, I've been managing the task of cron, which deletes the file every day. Is there any way to disable this log only for this one account?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. kszadkowski

    kszadkowski Member

    Joined:
    Sep 30, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    But this is a configuration for a specific version of PHP. And I wonder if I can do it only for one account? Do I have to assign any other version of PHP only to this account and then change it?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You should be able to make that change on a per-domain basis unless you are using a PHP handler that does not support the change through the INI Editor (e.g. PHP-FPM). Is it not working as expected when you make the change using the method described in my last response?

    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