PHP Version update from 7.4 to 8

Kavya Batchu 1 Reputation point
2022-11-16T01:49:50.317+00:00

Hi There,

I want to upgrade php version from 7.4 to 8 on my azure web app(Linux) my website is in WordPress. When I try to do I was getting nginx 404 file not found error. I followed the steps in this article https://azureossd.github.io/2021/09/02/php-8-rewrite-rule/index.html but it doesn't work.

Can you please help us with what I can do to upgrade this version? I have to do it before November 28 as PHP 7.4 is not supported after that.
260600-image.png

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

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 15,791 Reputation points Microsoft Employee
    2022-11-16T04:23:07.103+00:00

    @Kavya Batchu We understand that you are attempting to update your Linux Web App from PHP 7.4 to PHP 8.0 but encountering a 404 error after doing so.

    Please note that you technically have time as php 7.4 apps will continue to run, even after 11/28. This is verified where it's shared, "Extended support for PHP 7.4 will end on November 28, 2022. After this date, your applications will continue to run, however any application hosted in App Service targeting PHP 7.4 will be out of support and at risk of security vulnerabilities that remain unpatched." Source

    In regard to the 404 error that you are receiving after updating your php 7.4 app to php 8, have you updated the target stack from PHP 7.4 to PHP 8.0 in the Azure Portal for your web app?

    Note that changing your runtime will trigger a restart of your web app.

    Update your App Service apps to use a supported version of PHP in the Azure portal:

    1. In the Azure portal, click the App Service blade. Select the app you want to update.
    2. In the Configuration panel, click the General settings tab.
    3. Under Stack Settings, click the drop-down menu under Minor version and select the PHP version you want (we recommend choosing the most recent version).
    4. Click Save.

    Please let us know if the above setting change resolves the issue.

    260717-image.png