Keeping your application secure and up to date is an important part of application maintenance. When a PHP version reaches the end of its security compliance lifecycle, Acquia upgrades Cloud Platform applications to the next supported default version automatically as part of regular maintenance. Acquia communicates these changes to customers by email and through the Software end-of-life schedule documentation.
- Do you need assistance with the PHP Upgrade? Contact your account manager about the Acquia Professional Services PHP Upgrade Assistance package. Acquia Professional Services can assist in upgrading your Drupal core version and PHP version to a security-compliant version.
- Do you want to upgrade yourself? If you choose to upgrade your PHP version yourself, Acquia recommends that you first upgrade your non-production environment to test for any incompatibilities in your application. Acquia recommends that you begin with your non-production upgrades as soon as possible to ensure you have time to test before upgrading your production environment. After you resolve the incompatibilities, upgrade your production environment before the end-of-life deadline. For instructions on how to upgrade your PHP version, visit Preparing for your PHP upgrade.
Drupal and PHP compatibility
If your application is facing compatibility issues that are preventing your PHP upgrade, you may need to upgrade your Drupal Core version to ensure that your application remains secure and functional.
To check the PHP versions supported by your current Drupal installation, visit the official Drupal PHP Requirements documentation on Drupal.org. If you need assistance to upgrade your Drupal application, contact your account manager to discuss how Acquia Professional Services team can provide additional support.
Resource Links
- Preparing for your PHP upgrade
- Configuring PHP settings
- Drupal PHP Requirements
- Software end-of-life schedule
- Acquia Support
Dev Resources
Common scenarios when upgrading PHP
Scenario: We want to skip a PHP version and upgrade directly to the newest release
Acquia does not recommend that you skip PHP versions. Upgrade PHP to the next sequential version, resolve any deprecations, and then upgrade to the subsequent version. Customers who use Acquia Pipelines must always run their pipeline using the immediate next PHP version before jumping ahead.
Scenario: The PHP switch sometimes fails or takes a long time to occur
The upgrade time depends on the number of dependencies in the repository. If the upgrade takes too long, file a Support and TAM case through the cloud interface.
Scenario: The new PHP version works in my local container, but my build fails in Acquia Pipelines
The order of operations is important. Check the logs to ensure that the dependencies update in the correct order.
Scenario: Drush Issues with new PHP versions
To continue to use Drush, you must use a version of Drush that is compatible with your active PHP version. For more information, visit Drush's documentation on Drush and PHP compatibility.
Acquia recommends that you require a site-local Drush as part of the codebase, rather than the home directory, and run commands with a specific major version of Drush. Acquia does not recommend that you run the globally-installed version of Drush because the behavior of cron jobs, Cloud Hooks, or other automated scripts may change unexpectedly when a new version of Drush becomes the default. For instructions on how to install Drush with Composer, visit Drush documentation.
composer require drush/drush