Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    May 2004
    Location
    USA
    Posts
    410
    cPanel/Enkompass Access Level

    Root Administrator

    Default build_apache_config error

    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. #2
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Lightbulb

    Quote Originally Posted by jandafields View Post
    I am using Apache 1.3
    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. #3
    Member
    Join Date
    May 2004
    Location
    USA
    Posts
    410
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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. #4
    Member
    Join Date
    May 2004
    Location
    USA
    Posts
    410
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 09-24-2007, 06:45 AM
  2. ERROR: Curl Error libcurl was built with SSL disabled, https: not supported!
    By ramystyle in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-21-2007, 04:52 PM
  3. Bind Error shutting down due to TCP receive error: connection reset
    By eliteds3 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-01-2006, 10:43 AM
  4. Replies: 57
    Last Post: 11-05-2005, 07:16 AM
  5. Replies: 4
    Last Post: 06-23-2005, 02:09 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube