Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Mar 2003
    Location
    Northern Ontario
    Posts
    32

    Default How to Disable keepalives in Apache 2.2?

    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. #2
    Member
    Join Date
    Mar 2003
    Location
    Northern Ontario
    Posts
    32

    Default

    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. #3
    Member sh4ka's Avatar
    Join Date
    May 2005
    Posts
    433

    Default

    Same happened to me, and I had to add it manually

    Just add "KeepAlive Off", restart httpd :-)

  4. #4
    Member
    Join Date
    Mar 2003
    Posts
    27

    Default

    Quote Originally Posted by sh4ka View Post
    Same happened to me, and I had to add it manually

    Just add "KeepAlive Off", restart httpd :-)
    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. #5
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2002
    Location
    Atlanta, GA
    Posts
    95

    Default

    Actually, the appropriate place to add it in EasyApache's system is here:

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

Similar Threads & Tags
Similar threads

  1. Option to edit keepalives ON WHM
    By padani in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 05-04-2010, 08:11 PM
  2. Disable apache logs
    By ASTRAPI in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-08-2010, 03:47 AM
  3. can i disable apache log?
    By charliesxia in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 04-17-2008, 11:46 PM
  4. How to disable cpanels version of apache?
    By housefire in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-14-2006, 11:05 AM
  5. Disable Apache log files
    By anton_latvia in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-15-2004, 04:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube