CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 5 - Webhosting Support
  How to disable Apache / PHP from generating coredump?

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  rumahweb
      rumahweb
How to disable Apache / PHP from generating coredump?
#1
Newbie
Joined: 2008/6/30
From
Posts: 1
Recently I use suphp with fcgi on my cPanel Server. When I apply RLimitCPU for each vhost, I see that some scripts that potentially overloading the server is killed. I think this is a good way to control load on server.

But each time a php process killed, apache create a coredump files under users's directory that is large enough to fill user's space limit.

How to disable apache from creating core dump files?

I have try :
- set "ulimit -c 0" on users and root
- set "/proc/sys/fs/suid_dumpable" to 0
- set /etc/security/limits.conf with 0 limit for core parameter
- set CoreDumpDirectory to specific directory

Nothing works to stop apache / PHP from generating coredump files

My goal is to limit resource per vhost but I dont want core dump files to be created. Or at least I can make all core dump files on specfic folder rather than having them all over user's directory.

It can really eat up user's space very quickly especialy for user who have a "high load" type script.
Posted on: 2008/6/30 4:41
Create PDF from Post Print
Top
  •  jamesapnic
      jamesapnic
Re: How to disable Apache / PHP from generating coredump?
#2
Newbie
Joined: 2008/7/6
From
Posts: 9
Have you put the ulimit in the apache init.d script? Just before apache runs.
That should in theory do it. Alternatively you could try set -w kernel.core_pattern=/dev/null maybe

Quote:

rumahweb wrote:
Recently I use suphp with fcgi on my cPanel Server. When I apply RLimitCPU for each vhost, I see that some scripts that potentially overloading the server is killed. I think this is a good way to control load on server.

But each time a php process killed, apache create a coredump files under users's directory that is large enough to fill user's space limit.

How to disable apache from creating core dump files?

I have try :
- set "ulimit -c 0" on users and root.
_________________
James
james@apnicsolutions.com
T: +44 (0)870-421-5261 / +1 989-785-0898
W: http://www.apnicservices.com
Management, Admin, Total Support, Shared, VPS, Dedicated
Posted on: 2008/7/7 22:37
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com