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.

Apache autoupdated through WHM?

Discussion in 'EasyApache' started by pokermagic, Aug 22, 2013.

  1. pokermagic

    pokermagic Member

    Joined:
    Sep 1, 2010
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I have a dedicated box which I am the only administrator on. For some reason and I can't tell why this happens is that my apache httpd.conf file gets updated. This unfortunately messes up our site since we have specific configurations.

    It seems to just happen randomly and always just after midnight. It just happened tonight at 00:08 if I look at the file.

    My question is what could be automatically updating my apache? My only thought is through WHM and some configuration. Does anyone have any thoughts if apache is getting automatically update through WHM and if so how I can at least disable this so my site does not go down randomly?

    Regards,

    JR
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    I will suggest you update your changes in apache config and run the following command so that you should not face any issues after apache rebuild

    Code:
    /usr/local/cpanel/bin/apache_conf_distiller --update
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,682
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  4. mctekk

    mctekk Registered

    Joined:
    Mar 24, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hi Michael,

    Same thing happen to me, is there any way to avoid cpanel from overwriting the httpd.conf?

    I have some specific modification to httpd.conf and even after running /usr/local/cpanel/bin/apache_conf_distiller --update and recreating the httpd.con for some reason they don't stick.

    So I'm looking for a way to lock httpd.conf but cant find it.

    Thanks
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,682
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  6. mctekk

    mctekk Registered

    Joined:
    Mar 24, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Ok Thanks Michael . My last question , is there any way to avoid whm from overwriting httpd.conf?
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,682
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    There are several functions of cPanel/WHM that rebuild the Apache configuration file. It's not so much that it's overwritten, but rather it's rebuilt through:

    /scripts/rebuildhttpdconf

    Custom changes are preserved as long as you use the supported methods of making changes to the file.

    Thank you.
     
Loading...

Share This Page