Place the php.ini file in your application's base directory where your
app.yaml file is located. It is loaded when the PHP interpreter is
initialized, before running your application code.
The file follows the same syntax as other .ini files.
A simple example might look like:
; This is a simple php.ini file on App Engine; It enables output buffering for all requests by overriding the; default setting of the PHP interpreter.output_buffering = "On"
A list of the core directives, along with their changeable mode values, is
published on php.net.
You can override any PHP directive that has one of the following changeable mode
values:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-21 UTC."],[[["\u003cp\u003eYou can customize PHP interpreter behavior in your App Engine application by including a \u003ccode\u003ephp.ini\u003c/code\u003e file.\u003c/p\u003e\n"],["\u003cp\u003ePlace the \u003ccode\u003ephp.ini\u003c/code\u003e file in your application's base directory alongside the \u003ccode\u003eapp.yaml\u003c/code\u003e file for it to be loaded.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ephp.ini\u003c/code\u003e file uses the standard \u003ccode\u003e.ini\u003c/code\u003e file syntax to override PHP directives.\u003c/p\u003e\n"],["\u003cp\u003eYou can override PHP directives with changeable mode values of \u003ccode\u003ePHP_INI_SYSTEM\u003c/code\u003e, \u003ccode\u003ePHP_INI_ALL\u003c/code\u003e, or \u003ccode\u003ePHP_INI_PERDIR\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe extension directive allows for the enabling of dynamically loadable extensions.\u003c/p\u003e\n"]]],[],null,[]]