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.

How do I trace a problem by hour and minute?

Discussion in 'General Discussion' started by EcpHosting, Feb 26, 2003.

  1. EcpHosting

    EcpHosting Well-Known Member

    Joined:
    Dec 16, 2002
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    I have noticed Apache failing almost evey 50min at certain times of the day. We then, of course, get an email telling us it failed and was restarted... but it takes 4-5 minutes for it to come back up.

    My question: how do i trace what caused this fail? How can I? I can trace CURRENT processes, but is there a log that shows hour and time logs of events?

    I would be grateful. :D
     
  2. hostcp3

    hostcp3 Well-Known Member

    Joined:
    Jun 18, 2002
    Messages:
    156
    Likes Received:
    0
    Trophy Points:
    16
    If you login SSH

    at root type

    cd /var/log

    tail messages


    will tell you the last events on the server

    or you can copy and compress the file messages/ and download it for your perusal .


    or for error logs

    at root type

    cd /usr/local/apache/logs

    tail error_log


    just check your logs are in those locations, we moved ours around so not sure exactly where yours maybe.

    Hope it helps a little.
     
  3. Donna

    Donna BANNED

    Joined:
    Feb 15, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Toronto, Canada
    Been there done that and had to recompile apache to fix it :/

    In my case it was an SSL problem. Might ask your datacenter to look into it for you as well.
     
Loading...

Share This Page