Debug PrestaShop 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 URL issues

If friendly URLs are not working, this is a common issue after updating the IP address/domain of Prestashop as explained in this section.

In order to workaround this issue, you must adapt the .htaccess configuration. That way, the different redirect/rewrite rules defined point to the right hostname. To do so, follow these steps:

  • Obtain the current domain configured by running the command:

    $ grep "PrestaShop current domain" installdir/apps/prestashop/conf/htaccess.conf
  • Update the domain by running the command below:

    NOTE: Replace the placeholders OLD_DOMAIN, and NEW_DOMAIN with the values obtained from the previous command, and with the new value you have chosen when updating the hostname on Prestashop, respectively.

    $ sed -e "s/OLD_DOMAIN/NEW_DOMAIN/g" installdir/apps/prestashop/conf/htaccess.conf
  • Restart Apache:

    $ sudo installdir/ restart apache
Last modification April 8, 2020