Use the following commands to enable the core dumps in RHEL:
mkdir /data/cores
chown wwwrun /dayfra/cores
chmod 777 /data/cores
vi /etc/sysctl.conf
kernel.core_pattern=/data/cores/core.%e.%p.%h.%t
/etc/systemd/system.conf
DefaultLimitCORE=infinity
vi /etc/init.d/functions
NOTE:Ensure not to core dump anywhere unless requested.
corelimit="ulimit -S -c ${DAEMON_COREFILE_LIMIT:-0}"
NOTE:Uncomment the above line.
Advance Options:
CoreDumpDirectory /data/cores
vi /etc/init.d/novell-apache2start*)ulimit -c unlimited
/etc/init.d/novell-apache2 restart
Reboot the server.