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_conf_distiller is not working

Discussion in 'EasyApache' started by webofunni, Jun 12, 2009.

  1. webofunni

    webofunni Active Member

    Joined:
    May 6, 2007
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Hi All,

    I have made some changes to the Apache configuration file.

    Code:
    #UserDir public_html
    UserDir disabled
    UserDir enabled user1 user2
    After that I executed

    Code:
    /usr/local/cpanel/bin/apache_conf_distiller --update
    That gives

    Code:
    info [directives] 'local' datastore in use (/var/cpanel/conf/apache/local)
    Distilled successfully
    
    After that I tried /scripts/rebuildhttpdconf to test it. But it is replacing my changes.

    I am not sure what is mean by :

    Code:
    info [directives] 'local' datastore in use (/var/cpanel/conf/apache/local)
    Please help me to resolve it.
     
  2. webofunni

    webofunni Active Member

    Joined:
    May 6, 2007
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Any idea ?
     
  3. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
  4. webofunni

    webofunni Active Member

    Joined:
    May 6, 2007
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I ma using the latest Cpanel. It seems that the problem is with this :

    Code:
    info [directives] 'local' datastore in use (/var/cpanel/conf/apache/local)
    Do you know why it creates that warning/error ?
     
  5. RACKSET

    RACKSET Active Member

    Joined:
    Apr 28, 2006
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    localhost
    as a last solution you can do
    Code:
    rm -f /var/cpanel/conf/apache/local
    
    then
    Code:
    /usr/local/cpanel/bin/build_apache_conf
    
    hope this help others stuck there.
     
  6. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    To make the change you are making, try editing /var/cpanel/templates/apache2/main.local instead. If you don't have a main.local, copy main.default to main.local. This is how I generally do it - the distiller doesn't appear to lock in certain changes, so using the template is the best bet.
     
  7. MattCurry

    MattCurry Well-Known Member

    Joined:
    Aug 18, 2009
    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Houston, Tx
    Distiller

    The message

    "info [directives] 'local' datastore in use (/var/cpanel/conf/apache/local)"


    is completely normal.


    There is no need to remove this. It just shows that it is using a data store while doing the distillation. If you are seeing that the distiller doesn't work that is a different story all together, and you may need to open a ticket.
     
  8. WiredTree Joe

    WiredTree Joe Well-Known Member
    PartnerNOC

    Joined:
    Dec 13, 2006
    Messages:
    68
    Likes Received:
    1
    Trophy Points:
    8
    Location:
    Chicago, IL
    ^ This. If you have to make major changes to httpd.conf file, use the templates. Before EasyApache3 there was nothing that would rebuild the httpd.conf file, so you better of had some backups somewhere if anything happened to it.

    While it makes it hard to make simple changes kind of a pain, it was a step in the right direction on cPanel's part. Some doc links that I found to be wonderful on making custom changes inside and outside of vhosts. Nothing is more annoying when you add something to the httpd.conf and it won't save it so it survives a /scripts/rebuildhttpdconf.

    CustomDirectives < EasyApache3 < TWiki
    InsideVHost < EasyApache3 < TWiki
     
Loading...

Share This Page