We strongly discourage the solution that implies modification of
Since Bitnami WordPress Stack 4.6.1-1
… it should be possible to edit files from the WordPress admin panel without any modification.
If you are using an older version of WordPress
… and you want to modify files from WP-admin panel you need to grant permissions to Apache to modify those files.
But by doing that you allow Apache to interpret other files that may be maliciously placed next to the files you want to edit.
That’s the reason why you need to change permissions back and forth if you want to stay secure.
For security reasons, WordPress files are not editable from the WordPress application itself [using WordPress’ built in Theme Editor]. If you are using a Virtual Machine or a Cloud Image, we would suggest to use a FTP client to edit the files remotely.
Another option is to change the permissions to be able to edit from the WordPress application temporary. Note that this configuration is not secure so please revert it after editing the files temporarily:
$ sudo chown -R daemon:daemon /opt/bitnami/apps/wordpress/htdocs
# To revert this change you can run the following command:
$ sudo chown -R bitnami:daemon /opt/bitnami/apps/wordpress/htdocs
Hope this helps.