I’ve had some problems with Apache and I’d like a core dump when it happens so I can get a backtrace.
The summary of those is to add
to httpd.conf, and make that directory 777. Then, edit some startup scripts to run ulimit -n unlimited.
What I had to do to get it working was:
kernel.suid_dumpable = 1
kernel.core_pattern = /var/apache-dump/%e-%t-%p
to get it to work.
As an aside, the ulimit -c unlimited hacks seems unnecessary, you can add
(or possibly even “unlimited” ) to /etc/sysconfig/httpd, as part of /etc/init.d/functions checks that (that goes for any service, too)