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.

easyApache error

Discussion in 'EasyApache' started by ampunboss, Jun 7, 2013.

  1. ampunboss

    ampunboss Member

    Joined:
    Jun 12, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    I tried many times to upgrade apache, but always give me these error, and the configuration was restored. Please help. How to fix this problem?

    ----

    Building global cache for cpanel...Done
    Distilled successfully
    !! Failed to utilize existing Apache configuration file. Resetting Apache configuration to default. !!
    Distilled successfully
    !! Failed to generate a syntactically correct Apache configuration (/usr/local/apache/conf/httpd.conf.1370640422):
    An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.1370640422
    Exit signal was: 0
    Exit value was: 1
    Output was:
    ---
    ModSecurity: WARNING Using transformations in SecDefaultAction is deprecated (/usr/local/apache/conf/modsec_rules/10_asl_antimalware.conf:33).
    ModSecurity: WARNING Using transformations in SecDefaultAction is deprecated (/usr/local/apache/conf/modsec_rules/30_asl_antimalware.conf:33).
    ModSecurity: WARNING Using transformations in SecDefaultAction is deprecated (/usr/local/apache/conf/modsec_rules/30_asl_antispam.conf:33).
    Syntax error on line 311 of /usr/local/apache/conf/modsec_rules/30_asl_antispam.conf:
    ModSecurity: Found another rule with the same id
    ---
    !!
    !! Archiving successful build so it can be restored via --restore-archive once the httpd.conf are resolved !!
    !! 'safecopy(/usr/local/apache/etc, /usr/local/apache.ea3-buildok-confgen-failed)' did not return true !!
    !! Done Archiving successful build !!
    !! Restoring original working apache !!
    !! Executing '/scripts/initsslhttpd' !!
    !! Restarting 'httpd' ... !!
    !! 'httpd' restart complete. !!
    Building global cache for cpanel...Done
    !! Executing '/scripts/initfpsuexec' !!
    !! Executing '/scripts/initsslhttpd' !!
    !! Executing '/scripts/update_apachectl' !!
    !! Executing '/scripts/enablefileprotect' !!
    !!
    Here are some details that may be helpful:

    !!

    '/opt/lua/' is up to date but looks like it has local modifications.
    If you experience any trouble remove '/opt/lua/' so that it will be rebuilt fresh.

    !!

    !!
    !! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1370640020' !!
     
  2. fairiz

    fairiz Member

    Joined:
    Apr 17, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Seems like your mod security config causing the error. You need to erase custom config and re run easyapache.
     
  3. ampunboss

    ampunboss Member

    Joined:
    Jun 12, 2004
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Thanks. it works.
    I haven't run easyapache more than 1 year! old configs doesn't work well with new modsecurity.
     
  4. 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
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, removing those custom rules will allow EasyApache to complete. You can also consult with Atomic to obtain updated custom rules that work with the newer version of Mod_Security (2.7.3 as of today) included with EasyApache.

    Thank you.
     
Loading...

Share This Page