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.
Keeps your early-boot firewall files in a private folder outside public_html so visitors and misconfigured web servers can never read them.
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
Verify Preload Micro-WAF storage isolation status.
/wp-admin/admin.php?page=webcare-pro-settings&tab=doctor
Where It Lives in Your WordPress Admin
Every Option & Setting Explained
Optional wp-config.php constant pointing to a private writable directory outside ABSPATH.
| Option / Button | What It Does (Plain English) | Recommended |
|---|---|---|
| WEBCARE_WAF_STORAGE_DIR | Optional wp-config.php constant pointing to a private writable directory outside ABSPATH. | Set on restrictive open_basedir hosts |
Step-by-Step Setup & Verification
3 Steps- 1Check System Doctor -> Preload Micro-WAF Storage.
- 2If your host restricts parent directory writes, create a private folder outside public_html (e.g. /home/user/webcare-waf).
- 3Define WEBCARE_WAF_STORAGE_DIR in wp-config.php and re-compile.
Reference Configuration / CLI
php// 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.