Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

ModSecurity audit.log file is not rotated for domain in Plesk

 
domainsplesk for windowsplesk serversecurityserver

Symptoms

  • ModSecurity audit.log file is not rotated for example.com domain in Plesk > Domains > example.com > Logs > Manage log files.
  • The Log rotation option is enabled in Domains > example.com > Logs > Log rotation.
  • Plesk daily maintenance task executed properly on the server, at the configured time and without errors.

Cause

Incorrect permissions for the C:Program Files (x86)PleskModSecurityvhostsdomain_GUIDlogs folder and C:Program Files (x86)PleskModSecurityvhostsdomain_GUIDlogsaudit.log file.

Resolution

  1. Log into the server via RDP.
  2. Open reconfigurator.exe file in %plesk_dir%adminbin directory.
  3. Press Repair Plesk installation:
    mceclip1.png
  4. Select the Plesk Server Accounts, Plesk File Security and Plesk Virtual Hosts Security options and press the Check button:
    mceclip1.png

 

Manual Solution

  1. Log into the server via RDP.
  2. Start a command prompt as an Administrator.
  3. Run the command below to get domain GUID:

    C:> plesk db -Ne "select guid from domains where name='example.com'"

    Note: in the command above replace example.com with the name of the required domain

  4. Open %plesk_dir%ModSecurityvhostsdomain_GUID directory.

    Note: in the path above replace domain_GUID using the output of the command from step №3.

  5. Right-click logs directory > Properties > Security > Advanced > Permissions and set the same permissions as in the following screenshot:
    mceclip1.png
  6. Open the logs folder within the same directory, right-click audit.log file > Properties > Security > Advanced > Permissions set the permissions as below:
    mceclip2.png

    Note: in the examples above instead of IWPG_johndoe should be the system user of the affected subscriptions.

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Securing the WordPress Frontier with WP Guardian

Read More »

Introducing WP Guardian Vulnerability Protection: Now available for WP Toolkit

Read More »

What is Cloudflare and How To Set It Up For Your Site?

Read More »
Knowledge Base

Let’s Encrypt certificate installation fails for a domain in Plesk for Windows Server: The authorization token is not available

Read More »

How to add an email address / domain / top-level domain to the server-wide blacklist in Plesk

Read More »

A website hosted in Plesk for Windows Server is not accessible over HTTP, when “Require SSL/TLS” IIS setting is enabled: HTTP Error 403.4 – Forbidden

Read More »

Unable to open log of particular domain in Plesk: Internal error: Unable to open log file

Read More »

Hosting Wiki

  • Content Security Policy ( CSP )
  • Server Redundancy
  • Bare Metal Server
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Domain
  • Plesk
  • Web Server
  • DNS Server
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family