How to Disable keepalives in Apache 2.2?

Fillos

Active Member
Mar 24, 2003
32
1
156
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
 

Fillos

Active Member
Mar 24, 2003
32
1
156
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
 

Scotty_B

Active Member
Mar 1, 2003
27
0
151
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.
 

timdorr

Well-Known Member
PartnerNOC
Jul 9, 2002
93
0
156
Atlanta, GA
Actually, the appropriate place to add it in EasyApache's system is here:

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