Plesk

Running aum -u fails with the error and breaks Apache in Plesk

Symptoms

Cause

aum -u creates it's own configuration file /etc/httpd/conf.d/00_mod_security.conf which contains duplicate directives from /etc/httpd/conf.d/security2.conf.

Resolution

Note: aum -u it's a native modsecurity utility to update its rules that must not be executed on Plesk server because Plesk uses its own mechanism to update modsecurity rules.

  1. Connect to the server via SSH.
  2. Remove all from 00_mod_security.conf

    for CentOS/RHEL-based distributions:

    # echo "" > /etc/httpd/conf.d/00_mod_security.conf

    for Debian/Ubuntu-based distributions:

    # echo "" > /etc/apache2/conf.d/00_mod_security.conf

  3. Restart Apache:

    for CentOS/RHEL-based distributions:

    # service httpd restart

    for Debian/Ubuntu-based distributions:

    # service apache2 restart

  4. Create a Plesk database backup.
  5. Login to Plesk database:

    # plesk db

  6. Remove orphaned records from the Configurations table with the following query:

    delete from Configurations where status <> 'ok';