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!

Deleted error_log

Discussion in 'General Discussion' started by ramorse, Nov 27, 2017.

  1. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    228
    Likes Received:
    3
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    A user deleted the file /home/username/public_html/error_log instead of emptying it. I recreated the file, gave it the user's ownership and made sure it has the same permissions as the same file in other user accounts. But nothing is being written to it. Ideas?
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

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

    The error_log file within the account's public_html directory contains PHP error messages. Are you sure there have been new PHP errors since creating the new error_log file?

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

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    228
    Likes Received:
    3
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Well, I waited for over a week. And usually there are new errors on a regular basis. But, I guess there is no way for me to know for sure. The reason the client deleted the file was that it was so huge. (I told him it would be better to just empty the file, afterwards).
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,167
    Likes Received:
    1,934
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    870
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    I delete these files all the time, and have never had to manually recreate one.. it should recreate itself the next time something needs to be logged. My php handlers are all either suphp or php-fpm, so the webserver is generally able to write to the user's directories.
     
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