Portal Home > Knowledgebase > Articles Database > Disable generating core dump file


Disable generating core dump file




Posted by tetrahost, 10-26-2013, 06:36 AM
Anyone know how to disable generating core dump file on user account? I am on linux, cPanel, apache server. Hope to get a solution quickly from you guys

Posted by supportexpertz, 10-26-2013, 08:53 AM
Edit file /etc/init.d/httpd and add following under ulimit -n which will disable generation of core dump file on your server. ============= ulimit -c 0 =============

Posted by nixtree, 10-26-2013, 02:58 PM
Yes, editing httpd init script is a possible way. But analyzing the core dump and fixing the actual cause is the right way. Also you may not find the modification in /etc/init.d/httpd is preserved as it will be overwritten in times ( like after EA3 ). If you want to disable it server wide, try the following. Put the following lines to /etc/sysctl.conf kernel.core_uses_pid = 0 kernel.core_pattern = /dev/null/ Then run sysctl -p PS: This won't work with OpenVZ based servers



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Unlimeted reselling (Views: 636)


Language: