기본적으로 가변형 환경에서 실행되는 모든 프로그램은 상태 확인 요청을 받습니다.
기본 이미지 gcr.io/google_appengine/php는 상태 확인 요청에 응답하므로 상태 확인 핸들러를 직접 작성할 필요가 없습니다. 다른 이미지를 사용하는 경우 상태 확인을 중지하거나 코드를 직접 작성하여 상태 확인 요청을 처리해야 합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(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."]]