nativeInstallerpimcore

Upgrade Pimcore

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.

NOTE: The Approach A sections referred to below do not apply to Bitnami native installers. Users of Bitnami native installers should refer only to the Approach B sections.

To upgrade Pimcore, follow the steps below:

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

  • Set the memory_limit variable in your installdir/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 installdir/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): installdir/pimcore
    • Approach B (Self-contained Bitnami installations): installdir/apps/pimcore/htdocs/
  • Execute composer update:

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

Last modification June 16, 2021