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 occured with mod suphp and mod_security

Discussion in 'EasyApache' started by webstyler, Jan 29, 2010.

  1. webstyler

    webstyler Well-Known Member

    Joined:
    Nov 20, 2003
    Messages:
    432
    Likes Received:
    0
    Trophy Points:
    16
    Hello

    we have a strange issue with rebuild apache throught easyapache

    we select our profile and build but get error in the last rows :(

    why ??

    --------------------------------------
    ...
    Building global cache for cpanel...Done
    Updating Apache configuration
    Updating Apache configuration
    Distilled successfully
    !! Failed to utilize existing Apache configuration file. Resetting Apache configuration to default. !!
    Updating Apache configuration
    Updating Apache configuration
    Updating Apache configuration
    Updating Apache configuration
    Distilled successfully
    !! Failed to generate a syntactically correct Apache configuration (/usr/local/apache/conf/httpd.conf.1264790278):
    An error occurred while running: /usr/local/apache/bin/httpd -DSSL -t -f /usr/local/apache/conf/httpd.conf.1264790278
    Exit signal was: 0
    Exit value was: 1
    Output was:
    ---
    httpd: Syntax error on line 43 of /usr/local/apache/conf/httpd.conf.1264790278: Syntax error on line 16 of /usr/local/apache/conf/modsec2.conf: Syntax error on line 1 of /usr/local/apache/conf/modsec2.user.conf: Include directory '/usr/local/apache/modsecurity.d' not found
    ---
    !!
    !! Archiving successful build so it can be restored via --restore-archive once the httpd.conf are resolved !!

    !! 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' !!
    !! Verbose logfile is at '/usr/local/cpanel/logs/easy/apache/build.1264789332' !!

    --------------------------------------

    seems is lost modsecurity.d directory.. right =
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,482
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    IMHO, this line shouldn't be in there, it should be added via the modsec2.conf file instead.

    Code:
    Include directory '/usr/local/apache/modsecurity.d' not found
    In this thread from last year we were chatting about setting up modsecurity, you might like to peek at it.

    http://forums.cpanel.net/f34/mod-security-136849.html
     
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Infopro is correct; the specified entry and directory are not part of a stock Apache installation via EasyApache, even with mod_security enabled in the EA3 build profile.

    I would remove the entry from the configuration file "modsec2.user.conf" and then reattempt the EasyApache build.
     
Loading...

Share This Page