CIS Microsoft Azure Foundations Benchmark v1.4.0/AppService/110 of 115
9.6Ensure That 'PHP version' is the Latest, If Used to Run the Web App
Control family: AppService
Control description
Periodically newer versions are released for PHP software either due to security flaws or to include additional functionality. Using the latest PHP version for web apps is recommended in order to take advantage of security fixes, if any, and/or additional functionalities of the newer version.
How to implement
ResponsibilityCustomerYou configure and operate this in your own cloud accounts.
PHP versions reach end of support and stop getting security fixes. Apps that run on PHP are kept on the newest supported version they have been tested with, and moved before their version retires.
Before you start
The same on every cloud, before the steps in the tabs.
- Agree how quickly apps move to a new PHP version after its release, and how they are tested first.
Evidence
- The runtime upgrade standard for PHP apps
On Azure the tasks set the PHP version in each app's stack settings, then keep watch for versions nearing retirement.
Task 1Move the app to a supported PHP version
- Sign in to the Azure portal at portal.azure.com and open App Services, then the app.
- Select Settings > Configuration and the Stack settings tab (on some apps, General settings).
- Choose the latest supported PHP version that the app has been tested with.
- Select Save and confirm the restart, ideally on a staging slot first and then swap.
- Check it: the app runs on the new PHP version and its tests pass.
Task 2Watch for versions nearing retirement
- Open Advisor and its service upgrade and retirement recommendations.
- Look for App Service apps whose PHP version is due to retire.
- Plan each upgrade before the retirement date and record it.
Evidence
- The stack settings of each app, showing a supported PHP version
- The retirement recommendations, with no app on a retiring version
Not applicable. This benchmark covers Azure only.
Not applicable. This benchmark covers Azure only.
Console steps as of 5 November 2026. Not every step has been confirmed in a live console yet, and menus and labels can move between releases, so look for the nearest match if one has changed.