The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Core Dumps generated with suPHP + PHP 5.1.2 installed

Discussion in 'General Discussion' started by MeGaMASTER, Feb 22, 2006.

  1. MeGaMASTER

    MeGaMASTER Well-Known Member

    Joined:
    May 24, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    I'm having a weird problem after having migrated to the CGI version of PHP 5.1.2. Core dumps are being generated into my clients directories and these are using lot of disk space.

    NOTE: I'm having the same issue when using PHPsuexec.

    Thanks.
     
  2. HostMerit

    HostMerit Well-Known Member

    Joined:
    Oct 24, 2004
    Messages:
    160
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    New Jersey, USA
    cPanel Access Level:
    DataCenter Provider
    Try

    ulimit -c 0

    Should disable core files.

    I had this issue but with horde / cpanel.

    For now I guess

    locate core.[0-9]*|xargs rm -rf

    Should work
     
  3. MeGaMASTER

    MeGaMASTER Well-Known Member

    Joined:
    May 24, 2003
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    I have tried the command "ulimit -c 0" however when I disconnect from shell and login back again ulimit -c has been reset to its previous value (1000000).
     
    #3 MeGaMASTER, Feb 22, 2006
    Last edited: Feb 22, 2006
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Simply disabling core dumps isn't a great idea. You really need to find out why they're being created. The best way to do that is to read them through the debugger. That said, you are running BETA software (as far as cPanel is concerned) so you can expect problems.
     
  5. westhost-neil

    westhost-neil Well-Known Member

    Joined:
    Jun 3, 2005
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    UK
    I've searched high and low to try and find some way to stop or control the apace core dumps being produced.

    I tried ulimit -c 0, but as stated above this resets to 1000000 when I log out. I'm running 64bit Fedora Core and have read many posts which state that this is most likely the cause.

    The core dumps only appear in users home directories and some of them are very large (152mb).

    The only solution I've come up with is to manual run:

    find /home -name core.* -size +10000000k | xargs rm -f {} \;

    This finds and deletes all core files in the home sub directories which are larger than 10 meg.

    If anyone has a better solution I'd be grateful for some info.

    Neil
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You need to edit /etc/profile and add that line:

    ulimit -c 0

    and put it after:

    #cPanel Added Limit Protections -- END

    if that line is in there.
     
Loading...

Share This Page