Skip to content

Instantly share code, notes, and snippets.

@StoyPenny
Last active February 11, 2020 21:16
Show Gist options
  • Save StoyPenny/92c8482f1ee8b2098e8b8b6cf9350c62 to your computer and use it in GitHub Desktop.
Save StoyPenny/92c8482f1ee8b2098e8b8b6cf9350c62 to your computer and use it in GitHub Desktop.
WordPress File Permissions

WordPress File Permissions

This file is intended to be a quick reference guide on what standard WordPress file permissions should be.

Files

All files should be 644. Use the following command from the root directory of the website:

sudo find . -type f -exec chmod 644 {} +

Folders

All folders should be 755. Use the following command from the root directory of the website:

sudo find . -type d -exec chmod 755 {} +

WP Config

wp-config.php should be 600, this will allow WordPress to see and use the file but prevent others from seeing the database information that is inside the file.

sudo chmod 600 wp-config.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment