Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
É possível usar ambientes de execução personalizados para incluir mais funcionalidades em um app em PHP que é executado no ambiente flexível do App Engine. Para configurar
um ambiente de execução personalizado, substitua a seguinte linha no arquivo app.yaml:
runtime: php
pela linha:
runtime: custom
Também é preciso especificar uma imagem de base adicionando um Dockerfile no mesmo diretório que contém o arquivo app.yaml.
Por padrão, todos os programas em execução no ambiente flexível recebem solicitações de verificação de integridade.
A imagem base gcr.io/google_appengine/php responde à solicitação de verificação de integridade para que não seja preciso escrever o próprio gerenciador de verificação de integridade. Se você estiver usando uma imagem diferente, será necessário desativar as verificações de integridade ou escrever seu próprio código para processar solicitações de verificação de integridade.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-01 UTC."],[[["\u003cp\u003eCustom runtimes in the App Engine flexible environment allow you to extend the functionality of a PHP application.\u003c/p\u003e\n"],["\u003cp\u003eTo use a custom runtime, you must replace \u003ccode\u003eruntime: php\u003c/code\u003e with \u003ccode\u003eruntime: custom\u003c/code\u003e in your \u003ccode\u003eapp.yaml\u003c/code\u003e file.\u003c/p\u003e\n"],["\u003cp\u003eA Dockerfile in the same directory as the \u003ccode\u003eapp.yaml\u003c/code\u003e file is needed to specify a base image for the custom runtime.\u003c/p\u003e\n"],["\u003cp\u003eThe default base image \u003ccode\u003egcr.io/google_appengine/php\u003c/code\u003e automatically handles health check requests, but custom images require manual handling or disabling of health checks.\u003c/p\u003e\n"]]],[],null,["# Customizing the PHP Runtime\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nYou can use [custom runtimes](/appengine/docs/flexible/custom-runtimes) to add\nadditional functionality to a PHP app running in the App Engine flexible environment. To configure\na custom runtime, replace the following line in your [`app.yaml` file](/appengine/docs/flexible/reference/app-yaml): \n\n runtime: php\n\nwith this line: \n\n runtime: custom\n\nYou must also [specify a base image](/appengine/docs/flexible/custom-runtimes/build#base)\nby adding a Dockerfile in the same directory that contains the `app.yaml` file.\n\nVisit the [Custom runtimes](/appengine/docs/flexible/custom-runtimes)\ndocumentation to learn how to define a Dockerfile in a custom runtime.\n\nHealth checking\n---------------\n\nBy default, all programs running in the flexible environment receive\n[health check requests](/appengine/docs/flexible/how-instances-are-managed).\nThe base image `gcr.io/google_appengine/php` responds to the health check\nrequest, so you don't have to write your own health check handler. If you're\nusing a different image, you need to disable health checks, or write your own\ncode to handle health check requests."]]