Website File Permissions: What 755, 644 and 777 Mean and How to Fix Them
Permission errors cause 403, 500 and upload failures. Learn the safe values and how to set them in File Manager.
Every file has permissions that say who may read, write or run it. Wrong settings cause 403 and 500 errors, failed uploads and security holes.
The safe defaults
- Folders: 755. The owner can change them, everyone can enter and read.
- Files: 644. The owner can edit, others can only read.
- Sensitive files such as
wp-config.php: 600 or 640 where your host allows.
Why 777 is a problem
777 lets anyone on the server write to the file. Hacked sites often use 777 folders to plant malware. Never use it as a quick fix. See our hacked-site guide.
Change permissions in File Manager
Right-click a file or folder, choose Permissions (or Change permissions), and set the numbers. To fix a whole site, use your host's Fix permissions or Fix ownership tool if it has one, or a one-time command from SSH.
Ownership matters too
Files must belong to your hosting user. Files copied by a different user after a migration may need an ownership reset by your host.
When errors persist
See our 403 guide and our update failed guide.
Related guides
- WordPress Login Page Keeps Reloading or Redirecting (Can't Log In)
- How to Stop WordPress Spam Comments
- WordPress Site Health Warnings Explained: What to Fix and What to Ignore
- WordPress Security Checklist: 12 Steps to Protect Your Site