Share via

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.

0 comments No comments

Answer accepted by question author

Ajay Kumar N 28,261 Reputation points Microsoft Employee Moderator
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

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

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