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 $ find TARGET -type d -print0 | xargs -0 chmod 775 $ find TARGET -type f -print0 | xargs -0 chmod 664 $ chmod 640 TARGET/wp-config.php