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 to Disable keepalives in Apache 2.2?

Discussion in 'EasyApache' started by Fillos, Jan 16, 2008.

  1. Fillos

    Fillos Active Member

    Joined:
    Mar 24, 2003
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Northern Ontario
    At the risk of demonstrating my lack of skills;

    I am running a cent OS server with WHM and recently upgraded Apache to 2.2 (from 1.*.*)

    Since the upgrade, the /usr/local/apache/conf/httpd.conf looks like it was written in Klingon. I mean, I can read it, but nothing is where it is supposed to be. I now have a new load problem related to a heavy MySQL user forum, and I can't find a "KeepAlive" directive to set to "no"!

    Can someone tell me what I am doing wrong?

    Thanks!

    Fillos
     
  2. Fillos

    Fillos Active Member

    Joined:
    Mar 24, 2003
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Northern Ontario
    Wow, no one can Answer this one for me? Is it because no one is adopting Apache 2.2, or is it because no one modifies the Keepalives settings anymore?

    Any input would be appreciated!
    Fillos
     
  3. sh4ka

    sh4ka Well-Known Member

    Joined:
    May 12, 2005
    Messages:
    442
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    US
    cPanel Access Level:
    DataCenter Provider
    Same happened to me, and I had to add it manually :)

    Just add "KeepAlive Off", restart httpd :)
     
  4. Scotty_B

    Scotty_B Active Member

    Joined:
    Mar 1, 2003
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Bear in mind that any time you add an account etc, cPanel will remove your change, the best way to do it is to add the following lines to httpd.conf

    Code:
    # Server-pool management (MPM specific)
    Include "/usr/local/apache/conf/extra/httpd-mpm.conf"
    
    # Various default settings
    Include "/usr/local/apache/conf/extra/httpd-default.conf"
    
    Then run the distiller to force cPanel to retain the changes

    Code:
    /usr/local/cpanel/bin/apache_conf_distiller --update
    Then add the changes you want in

    /usr/local/apache/conf/extra/httpd-default.conf
    also set your timeout settings etc in
    /usr/local/apache/conf/extra/httpd-mpm.conf

    For some reason, cPanel assume that everyone wants the crappy defaults which are adequate for only lightly loaded boxes generally.
     
  5. timdorr

    timdorr Well-Known Member
    PartnerNOC

    Joined:
    Jul 9, 2002
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Atlanta, GA
    Actually, the appropriate place to add it in EasyApache's system is here:

    /usr/local/apache/conf/includes/post_virtualhost_global.conf
     
Loading...

Share This Page