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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Deleted error_log

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

  1. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    222
    Likes Received:
    2
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,494
    Likes Received:
    1,612
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  3. ramorse

    ramorse Well-Known Member

    Joined:
    Sep 6, 2003
    Messages:
    222
    Likes Received:
    2
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    41,494
    Likes Received:
    1,612
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  5. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    862
    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