Error:The system experienced the following error when it attempted to install the “OWASP ModSecurity Core Rule Set V3.0”

Issue while installing Comodo's WAF rules in cPanel -

Error:The system experienced the following error when it attempted to install the “OWASP ModSecurity Core Rule Set V3.0” vendor: API failure: The system could not validate the new Apache configuration because httpd exited with a nonzero value. Apache produced the following error: httpd: Syntax error on line 224 of /etc/apache2/conf/httpd.conf: Syntax error on line 32 of /etc/apache2/conf.d/modsec2.conf: Syntax error on line 28 of /etc/apache2/conf.d/modsec/modsec2.cpanel.conf: Could not open configuration file /etc/apache2/conf.d/modsec_vendor_configs/OWASP/modsecurity_crs_10_setup.conf: No such file or directory 

Solution -

1. Manually edit /var/cpanel/modsec_cpanel_conf_datastore file with your favorite editor.
2. Removed all active configs, active vendors, disabled rules, and updates.
3. Just keep disabled rule.
4. Save the file.
5. Login to WHM >> Home >> Security Center >> Modsecurity Vendors >> Manage Vendors >> OWASP ModSecurity Core Rule Set >> click +install.
6. Modsecurity rules will be installed without any issue.

That's all!
  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Domain ****.com has outgoing email disabled.

I was getting below error message while sending emails - This message was created automatically...

How to configure Amazon S3 backups in WHM?

There is always issues on the server like Hard Drive Failures and its very important to keep your...

How to enable root login alerts on cPanel server?

For security reasons, you would like to get an alert to your mailbox if someone logins to the...

Auto Index is disabled for the directory, access denied : 403 forbidden

While accessing the directories of website (http://webiste_name/directory_name) getting 403...

JFolder::create: Could not create directory - Warning! Failed to move file. Unable to find install package - Joomla Issue

While installing Extension in Joomla I was getting below error message - JFolder::create: Could...

Powered by WHMCompleteSolution