Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    439
    Likes Received:
    0
    Trophy Points:
    166
    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 =
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,525
    Likes Received:
    427
    Trophy Points:
    583
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,544
    Likes Received:
    9
    Trophy Points:
    268
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice