googleprestashop

Upgrade PrestaShop

NOTE: We are in the process of modifying the file structure and configuration for many Bitnami stacks. On account of these changes, the file paths stated in this guide may change depending on whether your Bitnami stack uses native Linux system packages (Approach A), or if it is a self-contained installation (Approach B). To identify your Bitnami installation type and what approach to follow, run the command below:

 $ test ! -f "/opt/bitnami/common/bin/openssl" && echo "Approach A: Using system packages." || echo "Approach B: Self-contained installation."

The output of the command indicates which approach (A or B) is used by the installation, and will allow you to identify the paths, configuration and commands to use in this guide. Refer to the FAQ for more information on these changes.

It is strongly recommended to create a backup before starting the update process. If you have important data, create and try to restore a backup to ensure that everything works properly.

You can upgrade PrestaShop using the “1-Click Upgrade” module.

Approach A: Bitnami installations using system packages

Follow these steps:

  • Access your Prestashop administration console using your browser. Navigate to the “Modules -> Modules & Services” menu and install the “1-Click Upgrade” module.
  • Once installed, click the “Update It” button for the “1-Click Upgrade” module. This brings up the checklist for performing the upgrade.
  • You should see a single red X on the list. This is because the site is not yet in Maintenance Mode. Click the button to set it to Maintenance Mode.
  • Click the “Upgrade PrestaShop Now!” link and wait until the upgrade process is finished.
  • Access the administration console again, navigate to the “Preferences -> Maintenance” menu and “Enable” your shop.
  • Check that your site is working correctly.

Approach B: Self-contained Bitnami installations

Follow these steps:

  • Modify the owner of the htdocs folder:

    $ sudo chown -R daemon:daemon /opt/bitnami/apps/prestashop/htdocs
    
  • If your PrestaShop version is older than 1.6, remove the .htaccess file in the htdocs folder:

    $ cd /opt/bitnami/apps/prestashop/htdocs
    $ sudo find -name .htaccess -delete
    
  • Access your Prestashop administration console using your browser. Navigate to the “Modules -> Modules & Services” menu and install the “1-Click Upgrade” module.

  • Once installed, click the “Update It” button for the “1-Click Upgrade” module. This brings up the checklist for performing the upgrade.

  • You should see a single red X on the list. This is because the site is not yet in Maintenance Mode. Click the button to set it to Maintenance Mode.

  • Click the “Upgrade PrestaShop Now!” link and wait until the upgrade process is finished.

  • Access the administration console again, navigate to the “Preferences -> Maintenance” menu and “Enable” your shop.

  • Check that your site is working correctly.

  • Modify the owner of the htdocs folder as below:

    $ sudo chown -R bitnami:daemon /opt/bitnami/apps/prestashop/htdocs
    
Last modification September 28, 2020