Performance: File permission hardening
MEDIUM IMPACT
File permission hardening affects server security and indirectly impacts page load speed by preventing unauthorized file access or modifications that could slow down or break the site.
find /var/www/html/wordpress -type d -exec chmod 755 {} \; find /var/www/html/wordpress -type f -exec chmod 644 {} \; chmod 600 /var/www/html/wordpress/wp-config.php
chmod -R 777 /var/www/html/wordpress| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Loose permissions (777) | N/A | N/A | N/A | [X] Bad |
| Strict permissions (755 for folders, 644 for files) | N/A | N/A | N/A | [OK] Good |