How to Optimize Apache Web Server?

Apache is a freely available Web server that is distributed under an "open source" license. Version 2.0 runs on most UNIX-based operating systems. cPanel & WHM manages the Apache web server and its components with EasyApache. When you install cPanel & WHM version 11.52 or later, the default (fast) installation method uses a precompiled default EasyApache configuration, which includes the basic requirements for a functional web server. cPanel & WHM versions 11.50 and earlier compile EasyApache during the installation process.

Apache web server is probably too restrictive when not optimized. You can follow below steps to tweak the Apache directives for maximum performance.

  1. Login to WHM as root user.
  2. Once you are loged in, search for Service Configuration and click on it..

    Service Configuration

  3. In the new menu, click on Apache Configuration.

    Apache Configuration

  4. In Apache Configuration, select Global Configuration.

    Global Configuration

  5. In Global Configuration menu, we will need to make changes in different fields as below and click on save.

    StartServers = 5
    MinSpareServers = 5
    MaxSpareServers = 10
    ServerLimit = 500
    MaxRequestWorkers = 500
    MaxRequestsPerChild = 4000
    Timeout = 20
    Configuration Menu

    Save Configuration Menu

That's it ! enjoy the optimized Apache configuration to load your website faster without impecting your server resources like CPU/RAM.

Related Articles

How to Recompile Apache Using EasyApache from WHM?

You would required to recompile the Apache mainly when you attempt to perform one of the...

How to Upgrade Apache using EasyApache?

In this article we'll discuss how to upgrade Apache using EasyApache tool in WHM. EasyApache is a...

How to Generate a Certificate Signing Request (CSR) with OpenSSL?

OpenSSL is a common utility used to generate a pair of private key and public Certificate Signing...

How to Enable/Disable Apache/PHP Modules Using EasyApache3?

In this article we'll discuss how to enable/disable Apache or PHP modules using the EasyApache...

Locations of Common Log Files and Configuration Files for cPanel Services

This article covers the configuration file and log file locations of most common cPanel services....

  • 0 Users Found This Useful

Was this answer helpful?