Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cpanel:apache-distiller-to-save-changes [2015-11-25 17:48:09] (current)
rory.blanchard created
Line 1: Line 1:
 +====== 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.
 +
 +<note hint> This can be found at /usr/local/apache/conf/httpd.conf</note>
 +
 +Run the distiller using the following:
 +
 +<code>
 +/usr/local/cpanel/bin/apache_conf_distiller --update
 +/usr/local/cpanel/bin/build_apache_conf
 +</code>
 +
 +\\
 +This will update the Apache configs default and your changes will not be overwritten.
 +
 +<note important>This should only be used for specific configurations that are outside of the regular configuration</note>
 +
 +\\
 +\\