error_log and .core Dumps

Discussion in 'Site & Server Administration' started by Hyphen, Dec 26, 2008.

  1. #1
    How can I prevent these from being dumped on my server?
     
    Hyphen, Dec 26, 2008 IP
  2. blowingideas

    blowingideas Peon

    Messages:
    642
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The error_log is always there. But you want its size not to keep on growing? You may google for "log rotation". If you're using any control panel in your box, that options should also be there.
     
    blowingideas, Dec 27, 2008 IP
  3. Pathan

    Pathan Well-Known Member

    Messages:
    2,196
    Likes Received:
    218
    Best Answers:
    0
    Trophy Points:
    165
    #3
    In order to disable to error_log you have to do two things, first to disable it in Apache configuration and secondly to also "off" it in php.ini. If you are not familiar with Apache configuration contact Management company they will do it for you. In my case it was done by Softalyer team. But its worth to tell what they have recommended me about error_log deletion.

    I hope it will help.

    -Regards.
     
    Pathan, Dec 27, 2008 IP
  4. vx|brian

    vx|brian Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You might want to disable it for PHP only by looking into the php.ini configuration variable, I believe it's log_errors.
     
    vx|brian, Dec 28, 2008 IP
  5. thegetpr

    thegetpr Banned

    Messages:
    99
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    possible reason for the core files getting generated is when a php process is killed, apache creates core files under your account .you can get rid off those core files by editing the httpd startup file on the server end

    Search for ulimit lines

    You need to add ulimit -c 0 at the end .Which will look like :
    Save it

    :wq

    Now Stop Apache and Start

    httpd restart
    Ex:
    root@server [~]# service httpd stop
     
    thegetpr, Dec 29, 2008 IP