ramorse

Well-Known Member
Sep 6, 2003
256
5
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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.
 

ramorse

Well-Known Member
Sep 6, 2003
256
5
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).
 

verdon

Well-Known Member
Nov 1, 2003
946
18
168
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.