Skip to main content

mod_security completely messed up beyond repair

Comments

3 comments

  • Infopro
    Please feel free to open a ticket directly to cPanel Technical Support about this for fastest resolution.
    0
  • Nathaniel Evans
    Hi. I have the same problem. I recently upgraded to Easy Apache 4 and now I get this-- Error:The system experienced the following error when it attempted to install the "OWASP ModSecurity Core Rule Set" 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 223 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/configserver/00_configserver.conf: No such file or directory Please help. What am I doing wrong?
    0
  • cPanelMichael
    Hello @Nathaniel Evans, To update, it looks like this issue was addressed via a support ticket with the following commands:
    # mkdir /etc/apache2/conf.d/modsec_vendor_configs/configserver # touch /etc/apache2/conf.d/modsec_vendor_configs/configserver/00_configserver.conf
    Thank you.
    0

Please sign in to leave a comment.