Failed to update the ModSecurity rule set: httpd syntax error

Refers to:

  • Plesk 12.0 for Linux

Created:

2016-11-16 12:51:16 UTC

Modified:

2016-12-21 19:22:45 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Failed to update the ModSecurity rule set: httpd syntax error

Symptoms

There is an error on Plesk home page:

 Error: Failed to update the ModSecurity rule set: httpd: Syntax error on line 249 of /etc/httpd/conf/httpd.conf: Syntax error on line 8 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 215 of /etc/httpd/conf/plesk.conf.d/vhosts/example.tld.conf: Could not open configuration file /var/www/vhosts/system/domain.tld/conf/vhost.conf: No such file or directory

This file is present on server:

 # ll /var/www/vhosts/system/domain.tld/conf/vhost.conf
-rwxrwxrwx 1 root apache 23 May 10 16:53 /var/www/vhosts/system/domain.tld/conf/vhost.con

Also server was completely reconfigured using:

 # /usr/local/psa/admin/bin/httpdmng --reconfigure-all

But error is still shown.

Cause

Failed ModSecurity update key present in database.

Resolution

  1. Create psa database backup according to KB213904125

  2. Remove this record:

     mysql> delete from WebServerSettingsParameters where name='ruleSetUpdateFailed';
  3. Run ModSecurity update:

    # aum -u
Have more questions? Submit a request
Please sign in to leave a comment.