sineater213

Registered
Jul 15, 2009
3
0
51
Hi I'm a new user and a newbie, whenever I make direct edits to httpd.conf and do the commands to rebuild it to verify that the changes stick they don't it just resets I have tried everything but I can't seem to figure it out. I read somewhere that it's cpanel that resets httpd.conf if so how can I fix this so that my changed are saved?
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
Basically there are a number of "Include" files throughout the httpd.conf where you can insert your own custom edits and changes.

If you need to make changes outside the include files, you can also update the templates

For some things you can add direct changes like LoadModule and IfModule sections but for any changes like that to the main httpd.conf, you need
to run the distiller script so that the changes are made permanent:
Code:
# /usr/local/cpanel/bin/apache_conf_distiller --update
The link from the previous poster should give you more information.