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

Follow

Comments

6 comments

  • Avatar
    Gjimi

    after updating Plesk / Atomic Basic ModSecurity, apache is completely down due to duplicate rule id.
    i.e. /etc/apache2/conf.d/00_mod_security.conf
    is being rebuilt.

    #chattr + i /etc/apache2/conf.d/00_mod_security.conf
    is a temporary fix. so that the file is no longer writable.

    0
    Comment actions Permalink
  • Avatar
    Artyom Volov

    Hello @Gjimi,

    Do you have any directives in Tools & Settings > Web Application Firewall > Settings > Custom directives?

    What exact duplicate rules are in /etc/apache2/conf.d/00_mod_security.conf?

    Could you check that there are no the same duplicate rules in a file /var/asl/data/templates/template-00_mod_security.conf?

    0
    Comment actions Permalink
  • Avatar
    Gjimi

    it's not about rule ... everything is loaded twice.

    so always two identical
    /etc/apache2/mods-enabled/security2.conf
    and again
    /etc/apache2/conf.d/00_mod_security.conf

    with content:
    <IfModule security2_module>
             SecDataDir /var/cache/modsecurity
             IncludeOptional "/etc/apache2/modsecurity.d/*.conf"
    </ IfModule>

    at 00_mod_security.conf was still something, but the file is no longer or is now empty and no longer writable.

     

     

    0
    Comment actions Permalink
  • Avatar
    Artyom Volov

    Hello @Gjimi,

    I suggest investigating this issue further in the scope of a support request.

    Please create a support request using instructions from the following article:
    https://support.plesk.com/hc/en-us/articles/213608509

    0
    Comment actions Permalink
  • Avatar
    Rodrigo Perez

    **SOLUTION**

    This problem occurs when you have security2 and unique_id modules enabled in mods-enabled directory.

    Simply fix this with (Debian/ubuntu):

    # a2dismod unique_id
    # a2dismod security2
    # service apache2 restart

    Plesk should do a check for these apache module configs when the modsecurity application is enabled.

    0
    Comment actions Permalink
  • Avatar
    Daria Gavrilova

    Hello @Rodrigo Perez,

    Thank you for your input!

    In the article it is described how to disable the module in ModSecurity itself.

    However the solution, which is provided by you, can be applied as well.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request