Apache Web Server down very oftern

Discussion in 'Apache' started by alphaque, Jun 6, 2007.

  1. #1
    Hi
    i have setup a dedicated server to host a few high traffics proxy sites. I am running apache 2.1 with P4 1.8Ghz

    The apache web server is very unstable, it is always crashes and i have to restart it many times in a day, below are the common error message i see in the error log when the server is crashed :

    [Tue Jun 5 07:52:47 2007] [warn] child process 19413 still did not exit, sending a SIGTERM
    [Tue Jun 5 07:52:51 2007] [error] child process 19413 still did not exit, sending a SIGKILL
    [Tue Jun 5 07:52:51 2007] [notice] caught SIGTERM, shutting down

    Can anyone has any idea on how to fix this issue ? Is my server overloaded that caused the server crashes ? What is the best configurations i can have for my httpd.conf to handle the high number of concurrent connections and high traffics to the server ?


    thanks
    rgds..
     
    alphaque, Jun 6, 2007 IP
  2. damonp

    damonp Peon

    Messages:
    97
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try upgrading Apache to a newer version to see if there was some inconsistency in the specific build you are using. I have banged my head against odd issues like this for days before only to have it fixed by an upgrade.

    If you have yum or up2date or apt-get it only takes five minutes... against hours of trying to track down the specific bug.
     
    damonp, Jun 6, 2007 IP
  3. grandy

    grandy Banned

    Messages:
    239
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Are you running CGI proxy or PHP Proxy?
     
    grandy, Jun 6, 2007 IP
  4. alphaque

    alphaque Well-Known Member

    Messages:
    187
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #4
    Hi Grandy
    i am runing PHPROXY. Is that causing the problem ?

    Hi Damonp,
    could you pls give me the actual step on how to upgrade the Apache ? How to run those up2date or apt-get command ?

    thanks
    rgds..
     
    alphaque, Jun 6, 2007 IP
  5. ZenOswyn

    ZenOswyn Peon

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    What linux distro are you using? If it's Debian or Ubuntu:
    "apt-get update" and then "apt-get upgrade" to upgrade everything on your system. Or, "apt-get upgrade apache" to just upgrade apache.

    Make sure you have a backup before hand, just in case the upgrade messes something up.
     
    ZenOswyn, Jun 6, 2007 IP
  6. alphaque

    alphaque Well-Known Member

    Messages:
    187
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #6
    Hi
    i am using the centos 4.5, is it the same commands i can use to upgrade my apache ? since this could potentially corrupt the server so i need to confirm the command i have to use to upgrade my apache. Any helps will be much appreciated here. thanks

    cheers..
     
    alphaque, Jun 7, 2007 IP
  7. damonp

    damonp Peon

    Messages:
    97
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    For CentOS the preferred package manager is Yum.

    http://wiki.centos.org/PackageManagement/Yum/

    Make a backup of any Apache configuration files. These are usually installed in /etc/httpd/conf/ and /etc/httpd/conf.d/.

    To find out what version you currently have installed run this command:

    yum list httpd*
    Code (markup):
    To do the update run the command:

    yum update httpd
    Code (markup):
     
    damonp, Jun 7, 2007 IP
  8. grandy

    grandy Banned

    Messages:
    239
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #8
    If its apache 1.3 then the configuration file is located here:

    /usr/local/apache/conf/httpd.conf
    Code (markup):
     
    grandy, Jun 8, 2007 IP
  9. bin_asc

    bin_asc Active Member

    Messages:
    122
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #9
    What`s your Apache type and PHP version ? Also, do you have any control panel ? What is your linux distro ( linux version ).
     
    bin_asc, Jun 10, 2007 IP