Deleted error_log
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?
-
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 -
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 -
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 -
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.
Comments
4 comments