Easyapache - error occured with mod suphp and mod_security

webstyler

Well-Known Member
Nov 20, 2003
450
0
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 =
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,545
12
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
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
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.