How to keep cPanel httpd.conf settings from being reset or removed

apache.conf .httpd

Have you made a change to the
file and it’s not sticking? This is because you are not supposed to edit that file directly on a cPanel server! Many linux guru’s have made this mistake just because they are not used to cPanel!

When you need to edit the httpd.conf file or settings for a specific cPanel user you should do so from the/var/cpanel/userdata/USERNAME folder.

After you update any of those files you need to tell cPanel to rebuild the apache configuration file, the easiest way to do that is to run this command:


If you want to be able to edit the /usr/local/apache/conf/httpd.conf file directly, you need to run the command below which will run the cPanel Apache Distiller. This will prevent cPanel and Apache from removing any changes you made whenever Apache gets recompiled.

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

smyles 56 37

Source: sMyles
Apache cPanel cpanel distiller cpanel httpd not saving hosting how to update httpd cpanel httpd reset httpd.conf httpd.conf httpd.conf uppdatera Linux cpanel httpd.conf Software Tutorials update httpd.conf