What are you trying to achieve? Did you misconfigure the ownership for
Please keep in mind that the Apache webroot is not
/opt/bitnami/apache2/htdocs. If you navigate there, you will see it has ownership of
bitnami:daemon, and directory permissions 755.
If you want to create an
htdocs directory with RW permissions, you need to grant permissions for the
daemon user to write as well, so permissions must be changed to 775 (only directories), or alternatively ownership must be changed to
But keep in mind that this only applies to the Apache htdocs directories, if you do it for all other directories (e.g. varnish, var, etc.) you may break the installation.
Also, in order not to lose data, you are recommended to do periodical backups. You can read about how to do them here: https://docs.bitnami.com/installer/infrastructure/lamp/#backup
I hope it solves your questions!