Skip to content

Instantly share code, notes, and snippets.

@nabilashraf
Last active May 8, 2020 13:18
Show Gist options
  • Select an option

  • Save nabilashraf/ed58eee67f697a9fc2031a8fc60652a9 to your computer and use it in GitHub Desktop.

Select an option

Save nabilashraf/ed58eee67f697a9fc2031a8fc60652a9 to your computer and use it in GitHub Desktop.
Reset WordPress Permissions on Linux

Bitnami applies the following default permissions to WordPress files and directories:

  • Files and directories are owned by user bitnami and group daemon.
  • Directories are configured with permissions 775 by default.
  • Files are configured with permissions 664 by default.
  • The wp-config.php file is configured with permissions 640.

Link

If permissions are wrong, use the chmod or chown commands to restore them to their initial state. For example, if TARGET is the WordPress application folder:

sudo chown -R bitnami:daemon TARGET

sudo find TARGET -type d -exec chmod 775 {} \;

sudo find TARGET -type f -exec chmod 664 {} \;

sudo chmod 640 TARGET/wp-config.php

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