Skip to content

Instantly share code, notes, and snippets.

@romuloctba
Created May 3, 2016 20:29
Show Gist options
  • Select an option

  • Save romuloctba/17263b5d0cedc6cfa654d2a8e698d2a6 to your computer and use it in GitHub Desktop.

Select an option

Save romuloctba/17263b5d0cedc6cfa654d2a8e698d2a6 to your computer and use it in GitHub Desktop.
Recomended CHMOD/File Permissions for WordPress
  • All directories should be 755 or 750.

  • All files should be 644 or 640. Exception: wp-config.php should be 440 or 400 to prevent other users on the server from reading it.

  • No directories should ever be given 777, even upload directories. Since the php process is running as the owner of the files, it gets the owners permissions and can write to even a 755 directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment