Problems activating your account? Send notification email to:
Host4Fun Budget VPS Hosting

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to optimize Apache web server?
(02-04-2019, 05:49 PM)rudra Wrote:  there is no best parameter or value for the ones posted above. good values vary from case to case or else the guys would mention these so called best values in comments of the associated settings file. a totally silly thread in my opinion. no explanation nothing. please explain and give source reference. thanks

I would agree with @rudra's assessment of this; Apache web server (httpd) is a mighty mighty beast and the way it has been treated in the OP is (... well) disrespectful to its seniority.

I've worked with this fellow(/httpd) for the last 16 years in various configurations, but (truth to be told) never on high-traffic websites. I've compiled it from source, tweak it in various ways, put the PHP handler on top of it in various mod (DSO, FCGI etc..), used it to reverse proxy Node.js apps running in the background, put Nginx in front of it to serve static files and protect it from DDoSing attacks and still ... I just can't say that I've explored every bit of it.

What's clear is that the OP is talking about Apache's configuration in WHM (I didn't know what that is till I googled it--or I knew but I forgot?; the Web Host Manager.) Well, I'm not familiar with that interface, so I'll just refer folks here who are asking for the meaning of those directives to see here, for example. Although, I would advice consulting HTTPD documentation's web site. For the list/details of all the directives check here.

As a veteran, I only use a text editor and tweak those directives right inside the httpd.conf file (Apache's configuration file) located inside the /conf folder of Apache's main directory.

Then I run a syntax check to see if I didn't introduce any misconfiguration by running:
httpd -t

Then I restart the beast:
httpd -k start

But, really the most key thing to know about Apache Web server is that HTTPD can run in 3 different ways, depending on which MPM module you activate/load in the config file:
> event MPM module
> worker MPM module
> prefork MPM module

The most efficient and recent mode is the event module (uses threads and Async capabilities), while the prefork MPM is the old process-based way (inherited from Apache 1.)

I think, I will stop here, because there is so much details involved in each and every directive you set and every module you chose to load or not.
We try to do proper setup before distributing to our customers or we use LiteSpeed and Nginx instead of Apache as the performance is matters a lot to gain customers being a newly started Web Hosting company.

Possibly Related Threads...
Thread Author Replies Views Last Post
  Setting up a Ubuntu-CentOS Server from scratch: Introduction LightDestory 9 538 11-12-2019, 04:52 PM
Last Post: tryp4vps
  Setting up a Ubuntu-CentOS Server from scratch: Customize your shell LightDestory 4 216 11-06-2019, 08:03 PM
Last Post: LightDestory
  Setting up a Ubuntu-CentOS Server from scratch: Firewall & UFW LightDestory 3 297 09-17-2019, 03:48 AM
Last Post: humanpuff69
  Setting up a Ubuntu-CentOS Server from scratch: Securing SSH LightDestory 1 217 09-16-2019, 01:09 PM
Last Post: rudra
  Setting up a Ubuntu-CentOS Server from scratch: Remote Desktop Access & x2go LightDestory 5 421 09-12-2019, 01:33 PM
Last Post: LightDestory

Forum Jump:

Users browsing this thread: 1 Guest(s)

Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - SSDBlaze - Abc-Hosters - Hyper Expert - Shadow Hosting - Bladenode - HostDoc - Hostlease

About Post4VPS

Post4VPS is a forum/destiny where you can Delploy Your Free VPSs just by the Power of Posts.

We Provide VPSs of many locations like Germany,US,Canada,France,London,etc.

We also Provide VPSs of Both Linux and Windows OS.