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.

updates overwriting apache config

Discussion in 'EasyApache' started by thobarn, Feb 7, 2010.

  1. thobarn

    thobarn Well-Known Member

    Joined:
    Apr 25, 2008
    Messages:
    153
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    sanctum sanctorum
    Every time update script runs it is re-writing httpd.conf incompatibly with previous changes to httpd.conf and local templates. Example:

    Remove all Alias, ScriptAlias and ScriptAliasMatch lines
    Check-in modifications (/usr/local/cpanel/bin/apache_conf_distiller --update)
    Regenerate config (/usr/local/cpanel/bin/build_apache_conf )
    The modifications are conserved.

    That is, until the next update run. At next update run httpd.conf is recreated and the Alias, ScriptAlias and ScriptAliasMatch lines are back. Somehow update run ignores previously checked-in modifications.

    Edited to add:
    --------------
    Also overwritten is the index.html at /usr/local/apache/htdocs. Updates should not be touching that file!
     
    #1 thobarn, Feb 7, 2010
    Last edited: Feb 7, 2010
  2. terciofilho

    terciofilho Registered

    Joined:
    Apr 23, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi!

    Have you found a way to get your files not touched by an update?

    I need to remove the redirection to /webmail every time... and it's pissing me off!

    Thanks!
     
  3. hekri

    hekri Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    149
    Likes Received:
    2
    Trophy Points:
    18
    The same stiupid problem.


    Propabbly we will delete /usr/local/cpanel/bin/build_apache_conf
     
Loading...

Share This Page