Knowledgebase

Setting Correct File and Folder Permissions for WordPress Print

  • wordpress, permissions, uploads, cpanel, php, plugins, filemanager, htaccess, troubleshooting, support
  • 0

Permissions that are too loose let other processes write to your files; permissions that are too tight break uploads and updates.

The correct values

  • Folders: 755
  • Files: 644
  • wp-config.php: 600 or 640
  • .htaccess: 644

Never set anything to 777. If a plugin tells you to, that plugin is wrong and should not be trusted.

Fixing permissions in cPanel

  1. Open File Manager and go to public_html.
  2. Select all folders, click Permissions, set 755, and tick Recurse into subdirectories with apply to directories only.
  3. Repeat for files with 644 and apply to files only.
  4. Finally select wp-config.php on its own and set 600.

If uploads fail after this

Check that wp-content/uploads is 755 and owned by your cPanel user. Files uploaded by a different process may have the wrong ownership — open a ticket and we will correct it from the server side.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot