EasyApache 3 and /usr/local/apache/conf/httpd.conf

Legendary

Member
Aug 13, 2015
24
1
3
US
cPanel Access Level
Root Administrator
Hello,

I modified my /usr/local/apache/conf/httpd.conf file to stop /cpanel and /webmail from working (Rename /cpanel or /WHM become /newname).

I ran the following command
Code:
/usr/local/cpanel/bin/apache_conf_distiller --update
and things are working as intended even upon regeneration of the config file. However, my changes are lost whenever I run EasyApache. Is there any way to conserve my changes?
 

Legendary

Member
Aug 13, 2015
24
1
3
US
cPanel Access Level
Root Administrator
Hello,

You can try using the include editor to ensure the changes are preserved. Documentation on this is found at:

Include Editor - Documentation - cPanel Documentation

Thank you.
Thanks, but how do I ensure that lines deleted from httpd.conf don't reappear whenever I run EasyApache? I deleted the lines which make /cpanel, /webmail, etc. URLs work and I don't want them automatically added back to httpd.conf.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Thanks, but how do I ensure that lines deleted from httpd.conf don't reappear whenever I run EasyApache? I deleted the lines which make /cpanel, /webmail, etc. URLs work and I don't want them automatically added back to httpd.conf.
Changes to the Apache configuration that you preserve will remain after updates. Here's an additional document that explains the different methods of preserving the changes:

Advanced Apache Configuration - EasyApache - cPanel Documentation

Thank you.