Upgrade CiviCRM

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

You can upgrade the application only without modifying any other stack components by following these instructions.

To upgrade Drupal, follow these instructions. During the process, you may encounter errors when attempting to verify permissions and clear cached files, as Bitnami’s default file permissions are different from those assumed by the CiviCRM documentation.

To resolve this, unpack the new files and then use the following commands to verify file permissions and clear cached files instead of the ones shown in CiviCRM documentation. Execute the following commands:

    $ sudo chown bitnami:daemon -R /opt/bitnami/drupal/
    $ sudo find /opt/bitnami/drupal/ -type f -exec chmod 660 {} \;
    $ sudo find /opt/bitnami/drupal/ -type d -exec chmod 770 {} \;
    $ sudo chmod 640 /opt/bitnami/drupal/sites/default/settings.php
    $ sudo chmod 750 /opt/bitnami/drupal/sites/default
    $ sudo chmod 750 /opt/bitnami/drupal/sites
    $ sudo rm -rf /opt/bitnami/drupal/sites/default/files/civicrm/templates_c/*

Once done, continue with the official documentation to upgrade the database and the application.

Last modification February 9, 2023