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.

build_apache_config error

Discussion in 'EasyApache' started by jandafields, Jun 13, 2009.

  1. jandafields

    jandafields Well-Known Member

    Joined:
    May 6, 2004
    Messages:
    426
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    When I build apache config, it errors because of this file:
    /var/cpanel/templates/apache1/main.local


    In this file, there are references to:
    Order [% main.directoryusrlocalapachehtdocs.order.item.order %]
    Order [% main.ifmodulemodaliasc.directoryusrlocalapacheicons.order.item.order %]
    ..
    ..
    ..
    etc

    All of the main section order.item.order variables are blank, because when it builds httpd.conf, it has this line:

    Order

    instead of this line:
    Order allow,deny

    So, apache complains about the syntax error.


    Background:
    Everything was working fine... then I got a new server install and copies all the cpanel stuff over. Everything works perfectly fine now except for that one issue.

    I have temporarily fixed it by changing the line in mail.local from:
    Order [% main.ifmodulemodaliasc.directoryusrlocalapacheicons.order.item.order %]

    to:
    Order allow,deny


    So... where does it get that variable from, why is it missing, and how to fix? I have upcp --force, and ran easyapache to recompile.

    I am using Apache 1.3
     
  2. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    The first issue I would address is your still running Apache 1.3 ...

    I would strongly advise going to at least a minimum of Apache 2.0
    because of a great many reasons least of which security.

    Other than that, if you are still having this issue I could probably
    help you look into things further but I would definitely consider
    upgrading up to Apache 2.0 or Apache 2.2.
     
  3. jandafields

    jandafields Well-Known Member

    Joined:
    May 6, 2004
    Messages:
    426
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    It won't compile Apache2:

    I've not changed the apache2 templates at all, they are default.

    Code:
    
    !!
    !! rawenv 'OPT_MIN_GID': '' before 'undef' - after '0' !!
    !! rawenv 'OPT_MIN_UID': '' before 'undef' - after '0' !!
    
    !! Start: Silent httpupdate request !!
    
    
    !! End: Silent httpupdate request !!
    
    !! Local template detected: /var/cpanel/templates/apache1/main.local !!
    !! Local template detected: /var/cpanel/templates/apache2/main.local !!
    !! Local template detected: /var/cpanel/templates/apache1/vhost.local !!
    Ending apache_conf_distiller. No changes have been made.
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    $Cpanel::AdvConfig::apache::directives::items{'<ifmodule'} failure. Unable to
    match directive <ifmodule's values for line:
    <IfModule >
    
    
    The directive's syntax is unknown to the distiller. If you are certain the
    syntax is valid then please contact cPanel support to have this issue remedied.
    Please refer to this message when making your query. Thanks
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    !! '/usr/local/cpanel/bin/apache_conf_distiller --update' failed with exit code '2304' !!
    
    
     
  4. jandafields

    jandafields Well-Known Member

    Joined:
    May 6, 2004
    Messages:
    426
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I figured it out... cPanel changed a lot of variable names. This isn't a problem if you are not using .local files.

    However, if you are using .local files like they suggest, then they update .default files and your .local files are now outdated, but they are still forced to be used.
     
Loading...

Share This Page