The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'EasyApache' started by Legendary, Jun 22, 2016.

  1. Legendary

    Legendary Member

    Joined:
    Aug 13, 2015
    Messages:
    24
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. Legendary

    Legendary Member

    Joined:
    Aug 13, 2015
    Messages:
    24
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    US
    cPanel Access Level:
    Root Administrator
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page