Debug Magento errors

Before running the commands shown on this page, you should load the Bitnami stack environment by executing the installdir/use_APPNAME script (Linux and MacOS) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). On OS X VMs, the installation directory is /opt/bitnami and OS X VM users can click the “Open Terminal” button to run commands. Learn more about the Bitnami stack environment and about OS X VMs.

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 installdir/apps/magento/htdocs/ -type d -exec chmod 775 {} \;
$ sudo find installdir/apps/magento/htdocs/ -type f -exec chmod 664 {} \;
$ sudo chown -R SYSTEM_USER:APACHE_GROUP installdir/apps/magento/htdocs/

NOTE: SYSTEM_USER and APACHE_GROUP are placeholders. Replace them to set the permissions properly. If you installed the stack using admin privileges, the APACHE_GROUP placeholder can be substituted with daemon.

Last modification September 6, 2018