If your site shows "403 Forbidden" or "500 Internal Server Error" right after you uploaded files, extracted an archive, or moved a site, the file permissions are probably wrong. They control who can read and change each file, and the server won't run files that are set too loosely.
The right settings
| Item | Permission |
|---|---|
| Folders | 755 |
| Files | 644 |
WordPress's wp-config.php |
640 or 600 |
Never set anything to 777. It lets anyone change the file, which is exactly what attackers look for.
Fix a few files yourself
- Log in to cPanel and open File Manager.
- Select the file or folder, then click Permissions in the toolbar.
- Enter the number from the table above and click Change Permissions.
A whole site is broken?
If lots of files are wrong, for example after extracting a backup or a zip of a site, contact us with your domain name. We'll reset the permissions and ownership across your whole site in one go, which is quicker and safer than doing it by hand.
Still getting an error?
Look at the error_log file in your site's folder in File Manager. If it doesn't point to a permission problem, see "WordPress shows a white screen or a 500 error."
