arrow_upward

Pages (2):
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to optimize Apache web server?
#11
(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.
VirMach's Buffalo_VPS-9 Holder (Dec. 20 - July 21)
microLXC's Container Holder (july 20 - ?)
VirMach's Phoenix_VPS-9 Holder (Apr. 20 - June 20)
NanoKVM's NAT-VPS Holder (jan. 20 - ?)
#12
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.
Pages (2):



person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting