Debug Magento errors
Troubleshoot permission errors
When using the Magento command line tool, you may experience some problems related to permissions. If you get a 500 error in your browser, readjust permissions running the following commands:
$ sudo find /opt/bitnami/apps/magento/htdocs/ -type d -exec chmod 755 {} \;
$ sudo find /opt/bitnami/apps/magento/htdocs/ -type f -exec chmod 644 {} \;
$ sudo chmod +x /opt/bitnami/apps/magento/htdocs/bin/magento-cli
$ sudo chown -R daemon:daemon /opt/bitnami/apps/magento/htdocs/
Watch this video to learn how to recover application permissions: