How to Upgrade PHP Version for WordPress Site on Azure App Service (Currently 8.3.20)

Megha Thimmappa 0 Reputation points
2025-08-07T14:36:27.0933333+00:00

Hi,

I have a WordPress site hosted on Azure App Service (Linux), and it's currently running PHP 8.3.20, which has known vulnerabilities.

I’d like to upgrade to a more secure version (e.g., 8.3.x or 8.4 if available), but I don’t see any newer versions listed in the App Service > Configuration > General Settings > PHP stack dropdown.

Can someone guide me on:

Whether a newer version is available or coming soon?

The process to upgrade PHP to a secure version?

Any workarounds if the latest version isn’t yet listed in the portal?

Any help or official guidance would be appreciated.

Thanks, Megha

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Shree Hima Bindu Maganti 5,480 Reputation points Microsoft External Staff Moderator
    2025-08-11T07:44:51.7966667+00:00

    Hi @Megha Thimmappa
    It looks like you're trying to upgrade PHP for your WordPress site on Azure App Service Linux, but you're running into some limitations in the portal.

    If you're on PHP 8.3.20 and want a newer version, use the Azure CLI to see all supported PHP versions:

    az webapp list-runtimes --os linux | grep PHP
    

    If a newer version is available, you can upgrade with the Azure CLI. For example, to upgrade to PHP 8.4, use:

    az webapp config set --resource-group <resource-group-name> --name <app-name> --linux-fx-version "PHP|8.4"
    

     Replace <resource-group-name> and <app-name> with your actual values.

    If you don't see the latest version in the portal or CLI, you might need to create a custom Docker container with your preferred PHP version. Check out how to do this here.

    f the version you want isn't available, consider setting up a staging slot to test a custom configuration without impacting your live site.

    Keep an eye on Azure's announcements for new PHP version releases, as they update their supported runtimes regularly.
    Let me know if you have any further assistances needed


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.