Mailing from php5 module fails when number of Apache VirtualHosts is above +/-1500
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libapache2-mod-php5
My shared webserver suddenly stopped mailing yesterday. Both the PHP mail() function or calling /usr/sbin/sendmail directly from exec() or something similar gives this error in /var/log/
2009-08-26 13:35:51 1MgGn9-0002rA-Tm == <email address hidden> R=smarthost T=remote_
After a long search I finally found that mailing starts working again when I delete a few random Apache VirtualHosts. I can really not explain why this happens, but I can reproduce this behaviour every time. The VirtualHosts configuration is certainly correct, and Apache nor PHP gives any error message. The mail is added to the exim4 queue correctly as far as I know, but it is not sent and frozen immediately. With exim -M message_id on the command line I am able to send each message afterwards without a problem. I tried different exim4 configurations (without smarthost for example), but that doesn't give any change.
On another server I use suPHP (CGI), with exactly the same versions of Apache and Exim4, there this problem does not exist. Also on the server where I have this problem a Perl CGI script that calls /usr/sbin/sendmail runs just fine, and sends the mail. So I think it must be some bug in libapache2-mod-php.
Description: Ubuntu 8.04.3 LTS
Release: 8.04
libapache2-
Installed: 5.2.4-2ubuntu5.7
Candidate: 5.2.4-2ubuntu5.7
Version table:
*** 5.2.4-2ubuntu5.7 0
500 http://
500 http://
100 /var/lib/
5.2.4-2ubuntu5 0
500 http://
Have checked your memory using memtest? Signal 11 could be a sign that there is something wrong with the hardware. Especially if the same configuration on other host is ok.
Another option is to replicate whole server to some virtual (kvm) host and try if it happens there as well.
I am afraid that without more information (gdb backtrace), and step-by-step guide how to reproduce the error, nobody will be able to help you.