A PHP 7 app in App Engine is configured using an
file, that contains the runtime, handlers, scaling, and other general settings
including environment variables.
Specify all the runtime configuration for your PHP 7 app, including
versions and URLs, in the
app.yamlfile. This file acts as a deployment descriptor of a specific service version. You must first create the
app.yamlfile for the
defaultservice of your app before you can create and deploy
app.yamlfiles for additional services.
You can specify a unique name for your
app.yaml files, but then you must
specify the file name with the deployment
as well. For example, if you name your
app.standard.yaml, then you must deploy your app using either:
To learn more about structuring multiple services and
gcloud app deploy service-name-app.yaml gcloud app deploy app.standard.yaml
app.yamlfiles in your app, see Structuring Web Services.
app.yaml file requires only the
runtime element for a simple
PHP 7 app in the standard environment, for
# Use the PHP 7.3 runtime (BETA) by replacing "php72" below with "php73" runtime: php72 # Defaults to "serve index.php" and "serve public/index.php". Can be used to # serve a custom PHP front controller (e.g. "serve backend/index.php") or to # run a long-running PHP script as a worker process (e.g. "php worker.php"). # # entrypoint: serve index.php
app.yamlfile is in the YAML format.
All configuration elements
For a complete list of all the supported elements in this configuration file,