Plesk

Error message on the Home page in Plesk: module unique_id_module is already loaded, skipping

Symptoms

Cause

The ModSecurity configuration file 00_mod_security.conf contains duplicated records.

Resolution

 

For CentOS/RHEL-based distributions

 

  1. Connect to the Plesk server via SSH.

  2. Open the file 00_mod_security.conf in a text editor. In this example, we are using the vi editor:

    # vi /etc/httpd/conf.d/00_mod_security.conf

  3. Replace "Include" in the lines:

    Include modsecurity.d/00*exclude.conf
    Include modsecurity.d/*asl*.conf
    Include modsecurity.d/99*exclude.conf

    with "IncludeOptional":

    IncludeOptional modsecurity.d/00*exclude.conf
    IncludeOptional modsecurity.d/*asl*.conf
    IncludeOptional modsecurity.d/99*exclude.conf

  4. Save the changes and close the file.

  5. Locate duplicated ModSecurity modules and disable them:

    # grep -ir security2_module /etc/httpd/ && grep -ir unique_id_module /etc/httpd/

    In case there is a module which is enabled twice in the output above, for example:

    /etc/httpd/conf.modules.d/00-base.conf:LoadModule unique_id_module modules/mod_unique_id.so
    /etc/httpd/conf.modules.d/10-mod_security.conf: LoadModule unique_id_module modules/mod_unique_id.so

    disable it by putting a # (hash) character at the beginning of the line in the file 00_mod_security.conf:

    #LoadModule security2_module ...
    #LoadModule unique_id_module ...

  6. Restart Apache:

    # service httpd restart

  7. Repair web-server configuration:

    # plesk repair web -y

  8. Log in to Plesk.

  9. Go to Tools & Settings > Web Application Firewall (ModSecurity) > Settings tab and click OK to refresh ModSecurity settings.

 

For Debian/Ubuntu-based distributions:

 

  1. Connect to the Plesk server via SSH.

  2. Open the file 00_mod_security.conf in a text editor. In this example, we are using the vi editor:

    # vi /etc/apache2/conf.d/00_mod_security.conf

  3. Replace "Include" in the lines:

    Include modsecurity.d/00*exclude.conf
    Include modsecurity.d/*asl*.conf
    Include modsecurity.d/99*exclude.conf

    with "IncludeOptional":

    IncludeOptional modsecurity.d/00*exclude.conf
    IncludeOptional modsecurity…

Exit mobile version