Skip to main content

Deleted error_log

Comments

4 comments

  • cPanelMichael
    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.
    0
  • ramorse
    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).
    0
  • cPanelMichael
    Hello, You could intentionally produce a PHP error with a PHP script installed in the public_html directory to verify it's logged. EX: How to intentionally cause a fatal error in PHP script? Thank you.
    0
  • verdon
    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.
    0

Please sign in to leave a comment.