Today, my Centos has a problem. When I type df -h in SSH I get:
/dev/vzfs 61G 61G 0.3G 99% /
The disk is full. I found that /var/spool/mail/root is nearly 53GB. tail /var/spool/mail/root -n 50 | more, I find there are full of php errors.
Now I use cat /dev/null > /var/spool/mail/root to clean the error logs, the hard disk is normal:
/dev/vzfs 61G 7.3G 53G 13% /
But how can I stop sendmail sent php error message? I do not want them stored there (I have set php error in /var/log/httpd.log).
Function call_user_method_array() is deprecated, now i have fixed them. but I still not like the mail notice, how to close it? I have search a ton of key words in google, never find some method. – fish man Nov 30 '12 at 13:09