App Service PHP Stack image

Thomas Sjödin Dahl 21 Reputation points
2022-05-03T14:51:14.24+00:00

Hi,

Do you know if Azure App Service is still using this image for Stack Settings PHP 8.0?

Azure App Service’s PHP 8.0 Runtime Stack uses the nginx/php-fpm Docker image:
https://github.com/Azure-App-Service/nginx-fpm

Link found on this page:
https://www.schakko.de/2021/09/08/deploying-php-8-0-applications-with-azure-app-service/

Thanks

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

Accepted answer
  1. ajkuma 22,416 Reputation points Microsoft Employee
    2022-05-04T10:44:01.783+00:00

    @Thomas Sjödin Dahl , Thanks for the great question. While I’m discussing this internally with our product engineering team.

    It appears that there’s a directive missing in the Nginx configuration files.

    port_in_redirect off;

    Kindly update the Ngnix config and then check.

    To better assist you on this, please provide more details about your scenario.
    What specific issue are you experiencing? Do you receive any error messages?

    Furthermore, Azure App Service on Linux images using PHP 8.x are now bundled with NGINX instead of Apache. The use of .htaccess files will not work for NGINX as these are used for Apache only. This will require the need to setup a custom startup script and modifying the existing NGINX site configuration.

    Checkout this doc -Configuring NGINX Rewrite Rules for Azure App Service blessed images running PHP 8

    Relevant discussion thread: Azure App Service: Unable to deploy PHP 8.0-based applications with Composer enabled


0 additional answers

Sort by: Most helpful