How to use the Apache Distiller to Save Changes to Apache Config

By default, cPanel will rebuild the Apache config file when cPanel runs updates, which is nightly by default. When the Apache config file is rebuilt any manual changes made will be removed as it's overwritten. By running the Apache distiller before rebuilding the Apache config file, manual changes can be saved.

Running the Distiller

Using SSH to get to the command line, make your changes to the Apache config file.

This can be found at /usr/local/apache/conf/httpd.conf

Run the distiller using the following:

/usr/local/cpanel/bin/apache_conf_distiller --update

This will update the Apache configs default and your changes will not be overwritten.

This should only be used for specific configurations that are outside of the regular configuration