Solution:
I solved this by doing the following:
- Set htdocs owner to bitnami:bitnami
sudo chown -R bitnami:bitnami htdocs/
- Inside /htdocs, changed file and directories owner to bitnami:daemon
sudo chown -R bitnami:daemon
- Changed files and directories permissions
sudo find * -type d -print0 | xargs -0 chmod 0755 # for directories
sudo find . -type f -print0 | xargs -0 chmod 0644 # for files
- Changed wp-content directories permissions to 775
sudo find wp-content/ -type d -exec chmod 0775 {} \;
And with that now I’m able to edit and upload via FTP and in the WP admin dashboard.