Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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).

share|improve this question
What kind of PHP errors do these mails contain? And what application makes PHP send them? (Cron?) Please provide such a mail. – gertvdijk Nov 29 '12 at 12:13
@gertvdijk, yes these make by cron run php script. how to stop it? thanks. – fish man Nov 29 '12 at 13:31
Again: please provide some of this mails. And please fix the source of your problems by fixing the cause of the errors in the actual message. And please remember that httpd.log as PHP error does not include PHP CLI errors. I suggest you to read about how Cron, Apache, PHP and a mail system works. – gertvdijk Nov 29 '12 at 13:36
@gertvdijk, these error are about 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
Disabling mail from Cron is very trivial. Use "disable cron mail error" as Google keywords. – gertvdijk Nov 30 '12 at 13:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.