Error when using comodo modsecurity rules, but not when using owasp

SupermanInNY

Verified User
Joined
Sep 28, 2004
Messages
419
Hi All,

When I install modsecurity and select owasp, the build works fine.
But, when I select comodo, I get errors.
See below.


Executing /usr/local/directadmin/plugins/custombuild/admin/build modsecurity_rules..
Installing Comodo Rule Set for ModSecurity...

Downloading cwaf_rules-1.187.tgz...

#=#=#

##O#-#

##O=# #

#=#=-# #

-#O#- # #

-=#=# # #

-=O#-# # #

-=O#- # # #

-=O#- # # #

-=O#- # # #

Updating to latest CWAF client version

current version is up to date

update process finished!

Defaulting to Comodo WAF SecDefaultAction...

Installation of ModSecurity Rule Set has been finished.

Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

Done!

So, I ran the commands as instructed:


# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2021-12-11 22:29:06 IST; 12s ago
Process: 11305 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS)
Process: 30960 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS)
Process: 12799 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 12799 (code=exited, status=1/FAILURE)

Dec 11 22:29:06 server.mydomain.com systemd[1]: Starting The Apache HTTP Server...
Dec 11 22:29:06 server.mydomain.com httpd[12799]: httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf: Syntax error on ...
Dec 11 22:29:06 server.mydomain.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Dec 11 22:29:06 server.mydomain.com systemd[1]: Failed to start The Apache HTTP Server.
Dec 11 22:29:06 server.mydomain.com systemd[1]: Unit httpd.service entered failed state.
Dec 11 22:29:06 server.mydomain.com systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.


# journalctl -xe
--
-- Unit user-0.slice has finished starting up.
--
-- The start-up result is done.
Dec 11 22:30:01 server.mydomain.com systemd[1]: Started Session 47 of user root.
-- Subject: Unit session-47.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-47.scope has finished starting up.
--
-- The start-up result is done.
Dec 11 22:30:01 server.mydomain.com systemd[1]: Started Session 49 of user root.
-- Subject: Unit session-49.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-49.scope has finished starting up.
--
-- The start-up result is done.
Dec 11 22:30:01 server.mydomain.com systemd[1]: Started Session 48 of user root.
-- Subject: Unit session-48.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-48.scope has finished starting up.
--
-- The start-up result is done.
Dec 11 22:30:01 server.mydomain.com CROND[13086]: (root) CMD (/usr/local/directadmin/dataskq)
Dec 11 22:30:01 server.mydomain.com CROND[13087]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Dec 11 22:30:01 server.mydomain.com CROND[13088]: (root) CMD (/usr/bin/rdate time-c.nist.gov >date -s)
Dec 11 22:30:01 server.mydomain.com systemd[1]: Starting The Apache HTTP Server...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Dec 11 22:30:02 server.mydomain.com httpd[13106]: httpd: Syntax error on line 50 of /etc/httpd/conf/httpd.conf: Syntax error on lin
Dec 11 22:30:02 server.mydomain.com systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Dec 11 22:30:02 server.mydomain.com systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Dec 11 22:30:02 server.mydomain.com systemd[1]: Unit httpd.service entered failed state.
Dec 11 22:30:02 server.mydomain.com systemd[1]: httpd.service failed.
Dec 11 22:30:02 server.mydomain.com systemd[1]: Time has been changed
-- Subject: Time change
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The system clock has been changed to REALTIME microseconds after January 1st, 1970.
lines 1847-1901/1901 (END)

How to resolved this issue?
I prefer to use comodo.
 
Back
Top