Skip to main content
Backups & VaultModule: file-permissionsWP 7.0+ & PHP 8.3+

File Permissions & wp-config.php Hardening

Checks filesystem permissions and WordPress hardening constants to close common post-exploitation paths.

In Simple Words (What This Is):

Checks that sensitive files like wp-config.php are locked down and visitors cannot run PHP scripts inside your Media Uploads folder.

Why this matters for your website:

World-writable files (0777) or PHP execution in wp-content/uploads/ turn minor upload bugs into full server compromise.

Open Directly in Your WordPress Admin

Open Permissions & Hardening

Inspect file mode audits and 1-click hardening checks.

/wp-admin/admin.php?page=webcare-pro-backups&tab=server

Where It Lives in Your WordPress Admin

Permissions & Hardening — check wp-config.php, uploads execution, and file modes.

Every Option & Setting Explained

wp-config.php Mode Check

Verifies wp-config.php is 0640 or 0600 (never 0644/0666 on shared hosts).

Recommended: 0640 or 0600
Block PHP in Uploads

Prevents direct execution of .php files uploaded into wp-content/uploads/.

Recommended: Enabled

Step-by-Step Setup & Verification

3 Steps
  1. 1Navigate to WebCare Pro -> Backups & Vault -> Permissions & Hardening.
  2. 2Review any yellow or red permission warnings.
  3. 3Apply recommended 0755 (directories) and 0644/0640 (files) permissions.

How It Works & How It Protects Your Website

Recommended WordPress Permission Baseline

| Path | Recommended Mode | | :--- | :--- | | Directories | 0755 | | Standard PHP Files | 0644 | | wp-config.php | 0640 or 0600 | | webcare-waf/ | 0700 / 0600 (outside docroot) |

Frequently Asked Questions

Why does DISALLOW_FILE_EDIT matter?

It disables the built-in WordPress Theme/Plugin File Editor so even a compromised admin session cannot inject PHP directly from wp-admin.

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