virtualMachinepimcore

Upgrade Pimcore

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.

To upgrade Pimcore, follow the steps below:

  • First, enable the debug mode by following these steps.

  • Set the memory_limit variable in your /opt/bitnami/php/etc/php.ini file to 2048M. To know the total memory available, execute the command free -h. Modify the memory_limit value:

      $ sudo nano /opt/bitnami/php/etc/php.ini
    

    Edit the memory_limit value. It is recommended that you restore the default value after you upgrade Pimcore.

      memory_limit = 2048M
    
  • Navigate to the Pimcore installation directory.

    NOTE: Depending on your installation type, the Pimcore installation type will be located in one of the below paths:

    • Approach A (Bitnami installations using system packages): /opt/bitnami/pimcore
    • Approach B (Self-contained Bitnami installations): /opt/bitnami/apps/pimcore/htdocs/
  • Execute composer update:

      $ sudo su daemon -s /opt/bitnami/php/bin/php -c /opt/bitnami/php/bin/composer update
    
  • Once the upgrade has completed, revert the change to the memory_limit variable in your /opt/bitnami/php/etc/php.ini file to the previous value, and disable the debug mode.

Last modification June 16, 2021