Hi,
If you are making any changes directly in the apache configuration file on cPanel servers then please don't forget to run the apache distiller to update the template, userdata and apache configuration data files. Otherwise, the changes will get revert back in next apache update.
For example, if you are editing virtualhost entry of any domain then use
the below command to update the userdata.
Quote/usr/local/cpanel/bin/apache_conf_distiller --update
This will prevent cPanel and Apache from removing any changes you made whenever Apache gets restart.
Or
When you need to edit the httpd.conf file or settings for a specific cPanel user you should do so from the below command.
Quote/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 below command.
Quote/scripts/rebuildhttpdconf
That's it. :)