Howto make custom changes to your WHM/Cpanel Apache

From EZP Knowledge Base

Jump to: navigation, search

As of Cpanel version 11.x your Apache configuration is fully managed by the control panel. What this means is that you will lose all your custom configurations that you make in the Apache configuration file directly.

But to provide for the inclusion of custom configurations, Cpanel has 3 include files; namely:

  • Pre Main Include
  • Pre Virtual Host Include
  • Post Virtual Host Include

These act as hooks in the Apache configuration file to include custom configurations.
file:cusapache.png

Also Cpanel lets you configure:

1) The IP address on which the Apache process listens on

2) The memory limit which each individual Apache process must adhere to

3) The priority of various Apache Directory Index (index.html,index.php etc) in Apache configuration

All of this is configured through the "Apache Configuration" section under the heading "Service Configuration" in WHM.
file:cusapache2.png