Skip to main content
Firewall & EdgeModule: preload-micro-waf-private-storageWP 7.0+ & PHP 8.3+

Preload Micro-WAF Private Storage Setup

Explains how to store compiled Preload Micro-WAF scripts outside your public web root using private sibling paths or WEBCARE_WAF_STORAGE_DIR.

In Simple Words (What This Is):

Keeps your early-boot firewall files in a private folder outside public_html so visitors and misconfigured web servers can never read them.

Why this matters for your website:

Storing compiled security scripts inside wp-content/uploads/ risks exposure; WebCare Pro fails closed if no private storage path is writable.

Open Directly in Your WordPress Admin

Check Storage in System Doctor

Verify Preload Micro-WAF storage isolation status.

/wp-admin/admin.php?page=webcare-pro-settings&tab=doctor

Where It Lives in Your WordPress Admin

Server Armor — verify private outside-docroot storage for compiled Micro-WAF artifacts.

Every Option & Setting Explained

WEBCARE_WAF_STORAGE_DIR

Optional wp-config.php constant pointing to a private writable directory outside ABSPATH.

Recommended: Set on restrictive open_basedir hosts

Step-by-Step Setup & Verification

3 Steps
  1. 1Check System Doctor -> Preload Micro-WAF Storage.
  2. 2If your host restricts parent directory writes, create a private folder outside public_html (e.g. /home/user/webcare-waf).
  3. 3Define WEBCARE_WAF_STORAGE_DIR in wp-config.php and re-compile.

Reference Configuration / CLI

php
preload-micro-waf-private-storage reference snippet
// wp-config.php (place above "That's all, stop editing!")
define('WEBCARE_WAF_STORAGE_DIR', '/var/private/webcare-waf');

How It Works & How It Protects Your Website

Hosting Environment Paths

| Host Type | Recommended Private Path | | :--- | :--- | | cPanel / DirectAdmin | /home/USER/webcare-waf | | Plesk | /var/www/vhosts/DOMAIN/private/webcare-waf | | Docker / VPS | /var/private/webcare-waf (owned by www-data) |

Frequently Asked Questions

Why did Micro-WAF compilation report storage_inside_docroot?

PHP could not write outside ABSPATH (often due to open_basedir). Define WEBCARE_WAF_STORAGE_DIR pointing to an allowed private path outside your web root.

Direct 1-on-1 Assistance

Connect directly with Mir Alamin (WebCare Pro)

Need help tuning Nginx, Cloudflare 4+1 rules, or emergency malware remediation? Reach out directly for 1-on-1 senior engineering support.

Contact Mir Alamin