Edge for Private Cloud v. 4.17.01
In an Edge for Private Cloud installation of the Developer Services portal, you might get a notification that a new version of Drupal is available. A new version can mean a Drupal feature release, patch, security update, or other type of Drupal update. In the case of a security update, you want to upgrade your installation of Drupal as soon as possible to ensure that your site remains secure.
The procedure below describes how to update a Private Cloud installation of Drupal 7.x.y to another minor version (for example Drupal 7.54 to 7.56).
Please note the following:
This procedure only updates your installation of Drupal. It does not update the Apigee software that ships as part of the portal. For information on upgrading the Apigee portal software, see Upgrading the Developer Services portal.
- You have to run Drush commands from the root directory of the portal site. By default, the
Developer Portal is installed at:
Determining your current Drupal version
Before you start the Drupal update, you can determine your current Drupal version by running
the following command from the Drupal installation folder. By default, Drupal is installed in
> cd /opt/apigee/apigee-drupal/wwwroot > drush status | grep 'Drupal version'
You should see output in the form:
Drupal version : 7.54
If you installed Drupal in a directory other than /opt/apigee/apigee-drupal/wwwroot, make sure to change to that directory before running the drush command.
Updating the Drupal version
To update your Drupal installation:
- Change to the /opt/apigee/apigee-drupal/wwwroot directory, or the directory where you installed the portal.
- Make a full backup of all files, directories, and databases. Save the backup in a location
outside of the Drupal installation. For complete instructions, see
Back up the portal.
If you made modifications to files such as
sitesdirectory), you will have to reapply the changes after the update. You will also need to reapply any customizations made in the
- Put your site into maintenance mode:
> drush vset --exact maintenance_mode 1 > drush cache-clear all
- Install the desired version of Drupal by using the following command:
> drush pm-update drupal-7.56
Note: Replace 7.56 with the desired version.
Alternatively, you can run drush pm-update drupal to update to the latest Drupal core version. You can run drush pm-updatestatus to list available minor updates to Drupal core and contrib projects.
- Reapply any changes made to
- Reapply any changes made to the
- Take your site out of maintenance mode:
> drush vset --exact maintenance_mode 0 > drush cache-clear all
What if I encounter an issue during the update?
Restore your site to its previous state using the backup files that you created. Contact your Apigee support representative and provide any error messages that were reported during the update.