Some developers just won't learn to write literate in RFC never. I noticed multiple errror_log files that had accumulated a huge number of retarded warning and notice for failure to comply with the standard PHP. In General, it is difficult to explain to the user, that code which is put is bad and needs to be fixed. In the General case, I have noticed that users do not excite them error-log after running the code. In General, a radical approach to stop entirely error_log files and who wants to let them go, but as a whole would create discomfort for a lot of users. So strengthen the approach 2 – adminski super powers or 1 bash line. Search for files named error_log with size more than 5MB (Here I leave my value a although 1MB is more than enough) and deleting them weekly. This effect is achieved with clutter find
find /home/ -name error_log -size +5M -type f -delete
It remains only to crash into the Crown to perform once a week and we have a lot of persistentno solution. In my case it seems OK in 1 o'clock in the evening every Sunday.
0 1 * * 1 find /home/ -name error_log -size +5M -type f -delete >/dev/null 2>&1