Warning:
We do not recommend that you use this method. cPanel & WHM or EasyApache may overwrite your changes. Using EASYAPACHE INSIDE OF WHM IS THE RECOMMENDED WAY TO MODIFY THE APACHE CONFIG
If you must modify your httpd.conf Apache configuration file directly, perform the following steps:
httpd.conf file.Run the Apache configuration distiller script as the root user with the following command:
/usr/local/cpanel/bin/apache_conf_distiller --update |
-------------------------
The Apache configuration distiller script does not make changes to your Apache configuration. The distiller script updates the datastores in the/var/cpanel/userdata directory.
The Apache configuration distiller script does not guarantee that cPanel & WHM will not overwrite your direct modifications to your httpd.conf file.
To test whether cPanel & WHM will overwrite your modifications, perform the following steps:
httpd.conf file with your direct modifications./scripts/rebuildhttpdconf script to rebuild your httpd.conf file. If your changes are still present in your httpd.conf file, then cPanel & WHM will not overwrite your modifications.