How can I fix the error: Modsecurity is not configured. Modsecurity log file not found?

Overview

The error "Modsecurity is not configured. Modsecurity log file not found" typically indicates that the ModSecurity module is either uninstalled or has not been properly initialized for Juggernaut Firewall. Follow the procedures below to install, enable, and configure ModSecurity.

Prerequisites

  • Root or administrative access to the server
  • A Plesk environment with Juggernaut Firewall installed

Installation and Configuration

Execute the following steps to install ModSecurity and integrate it with your firewall configuration.

Step 1: Install ModSecurity via Command Line

// install modsecurity
plesk installer add --components modsecurity

// re-run the juggernaut installer to configure modsecurity for juggernaut
/usr/local/psa/admin/bin/modules/juggernaut/install.sh

Step 2: Enable ModSecurity in Plesk

  1. Navigate to Tools & Settings > Web Application Firewall (ModSecurity).
  2. Set the Web application firewall mode option to on.

Step 3: Configure Rule Sets and Protection Level

  1. Select the Web Application Firewall Settings tab.
  2. Choose a rule set and configuration profile. Select either Tradeoff or Thorough. Note: The Comodo ruleset is recommended for standard deployments, as OWASP rules are highly restrictive and intended for advanced users only.
  3. Click OK to save the settings.

Troubleshooting

  • If the configuration error persists, verify that the Juggernaut installer script completed successfully without interruption.
  • Confirm that the ModSecurity log directory exists and has appropriate read/write permissions for the web server process.
  • Restart the Apache or Nginx service if changes do not apply immediately after configuration updates.
  • modsecurity
  • 0 Користувачі, які знайшли це корисним
Ця відповідь Вам допомогла?

Схожі статті

How can I fix the error: The domain limit of this license key has been reached?

Overview The Admin and Pro editions of Danami products enforce a maximum domain limit within the...

How can I fix incorrect date and times displayed in the extension?

Overview The extension relies on accurate system and database timestamps to function correctly....

How can I fix the warning: This extension is deprecated. If you remove it, you will not be able to install it anymore?

Overview On July 25, 2025, WebPros and Danami concluded their partnership agreement regarding...

Why are /var/log/messages, /var/log/maillog and /var/log/secure empty?

Overview The absence of data in /var/log/messages, /var/log/maillog, and /var/log/secure...

How can I raise the open file limit for the login failure daemon?

Overview The Login Failure Daemon (LFD) may terminate unexpectedly when monitoring a high volume...