nativeInstallerprestashop

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 Mac OS X) or by clicking the shortcut in the Start Menu under “Start -> Bitnami APPNAME Stack -> Application console” (Windows). Learn more.

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/ctlscript.sh restart apache