vacancy

Well-Known Member
Sep 20, 2012
474
165
93
Turkey
cPanel Access Level
Root Administrator
Hello

My changes to /etc/apache2/conf/httpd.conf via ssh console are not permanent. Restoring old settings in rebuildhttpdconf or rebuildhttpd.

We used to update the distiller to make the settings permanent; in easyapache 4 this function does not work.

How do I make httpd.conf settings permanent via ssh?
 

quietFinn

Well-Known Member
Feb 4, 2006
1,327
141
193
Finland
cPanel Access Level
Root Administrator
Hello

My changes to /etc/apache2/conf/httpd.conf via ssh console are not permanent. Restoring old settings in rebuildhttpdconf or rebuildhttpd.

We used to update the distiller to make the settings permanent; in easyapache 4 this function does not work.

How do I make httpd.conf settings permanent via ssh?
Why don't you use the include files, as instructed in the beginning of httpd.conf:

Code:
#   To have your modifications retained, you should create/edit administrator-specific
#   include files:
#
#       /etc/apache2/conf.d/includes/pre_main_global.conf
#       /etc/apache2/conf.d/includes/pre_virtualhost_global.conf
#       /etc/apache2/conf.d/includes/post_virtualhost_global.conf
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston