App Service PHP 8.1 stack is past end of life
End of life as of 2025-12-31. Replacement: App Service PHP 8.3 or later. Source: Language Runtime Support Policy - Azure App Service.
Check a version:
evergreen check pkg:generic/azure-app-service/php
| Azure App Service follows the community support timeline for each language stack: past the end-of-support date the app keeps running, but the platform stops providing security patches or related support for that runtime version. php.net lists PHP 8.1 as end-of-life since 2025-12-31, so a PHP | 8.1 app no longer receives a patched runtime. |
Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>
| Status | End of life |
| Severity | high |
| Ecosystem | serverless |
| Component | pkg:generic/azure-app-service/php |
| Affected versions | vers:semver/>=8.1.0\|<8.2.0 |
| Date from the source | 2025-12-31 |
| Replacement | App Service PHP 8.3 or later |
| Evidence last seen | 2026-11-03 |
| Reviewed | 2026-11-03 by arminazimi |
| Review due | 2027-02-01 (90 days after the last review) |
| Rule ID | serverless.azure-app-service.php-8-1 |
Sources
- Language Runtime Support Policy - Azure App Service (accessed 2026-11-03)
- PHP: End-of-Life Versions (accessed 2026-11-03)
Migration
Constraints
- App Service follows the community end-of-support date for each language stack and stops providing security patches and related support for that runtime version past the date.
- The platform controls the minor and patch version of a managed stack, so raising the stack version is the only way to get a patched runtime.
- The stack is declared in siteConfig.linuxFxVersion on Linux and siteConfig.windowsFxVersion on Windows; both are set with az webapp config set.
Steps
- Raise the App Service language stack. Set php to a supported stack version (see the replacement) with az webapp config set –linux-fx-version or –windows-fx-version, then redeploy the app.
- Align the stack declaration. Change the same stack in the deployment source too - the siteConfig resource in an Azure Resource Manager template, the azurerm_linux_web_app linux_fx_version or azurerm_windows_web_app windows_fx_version in Terraform, and the Bicep equivalent - so the next deployment does not reset php.
Verification
az webapp config show --resource-group <group> --name <app> --query linuxFxVersion: Confirm the app reports the new stack version.az webapp restart --resource-group <group> --name <app> && az webapp log tail --resource-group <group> --name <app>: Restart the app and watch the startup log for runtime errors on the new stack.
Detected by
The serverless detector. See Detectors and Compatibility.
Related
Other versions of this product
- App Service PHP 8.0 stack is past end of life
- App Service PHP stacks older than 8.0 are past end of life
Same ecosystem
- AWS Lambda .NET 10 runtime reaches end of life on 2028-11-14
- AWS Lambda .NET 5 (container only) runtime is end-of-life
- AWS Lambda .NET 6 runtime is end-of-life
- AWS Lambda .NET 7 (container only) runtime is end-of-life
- AWS Lambda .NET 8 runtime reaches end of life on 2026-11-10
- AWS Lambda .NET 9 (container only) runtime reaches end of life on 2026-11-10
- AWS Lambda .NET Core 1.0 runtime is end-of-life
- AWS Lambda .NET Core 2.0 runtime is end-of-life
Data
This page is generated from registry/serverless.json, rule serverless.azure-app-service.php-8-1, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.
Last updated