vmware-marketplacewordpress

Understand WordPress filesystem permissions

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.

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

Watch the following video to learn more:

Last modification April 5, 2023