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.

Cpanel restricting httpd.conf editing?

Discussion in 'General Discussion' started by sineater213, Jul 15, 2009.

  1. sineater213

    sineater213 Registered

    Joined:
    Jul 15, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. serversignature

    serversignature Well-Known Member

    Joined:
    Nov 26, 2007
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore
  3. sineater213

    sineater213 Registered

    Joined:
    Jul 15, 2009
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
  4. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    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.
     
Loading...

Share This Page